Hello,
Here are the details of the system I use:
Chassis: NI PXIe - 1071
Controller: NI PXIe-8820 Embedded controller
First Device: NI PXI - 5922 Oscilloscope ===>Dev1/ai0:1
Second Device: NI PXI - 4462 ====>Dev2/ai0:3
I also have the SMB 110 cable with me.
For data acquisition, I use Python 'nidaqmx' package.
My aim is to read the data from these two devices at the same time.
I have two questions:
1. Is it possible to use SMB cable for the above mentioned two devices for external triggering. If not, are there any other alternatives I am left with?
2. Is data streaming possible for this devices for the system specifications I mentioned above..?
The code is as follows:
with nidaqmx.Task() as task:
task.ai_channels.add_ai_voltage_chan('Dev1/ai0')
task.timing.cfg_samp_clk_timing(Samples_Per_Sec=10000, source="", active_edge=Edge.RISING,sample_mode=AcquisitionType.FINITE,
samps_per_chan=10000)
data=task.read(samps_per_chan=10000)
Typically, I do know that the two devices of the same type triggered automatically. But I suppose its not true for two devices of different type.
For ex: If I try to change my above code using both devices
with nidaqmx.Task() as task:
task.ai_channels.add_ai_voltage_chan('Dev1/ai0,Dev2/ai0)
task.timing.cfg_samp_clk_timing(Samples_Per_Sec=10000, source="", active_edge=Edge.RISING,sample_mode=AcquisitionType.FINITE,
samps_per_chan=10000)
data=task.read(samps_per_chan=10000)
I get an error saying "One or more devices do not support multidevice tasks".
Thanks,
Swapnil