02-01-2018 09:58 AM
I am using multiple pxie-6368 cards and would like to either read or write data with a common task. I'm getting error that device doesn't support a common task.
I can read AI across multiple cards with common task. Is this ability limited to AI only ?
Is there a method I can use to read or write digital data across multiple cards ?
Thanks
02-01-2018 11:08 AM
The most straightforward way I'd recommend is to share a sample clock from a master DIO task that all the other tasks use, *and* make sure the master task is started last.
Configure (but don't start) the master task with it's "normal" sample clock, and let's just say the master task is on "Dev1". To let DAQmx handle all the routing, drop down a DAQmx Timing property node and read the property Sample Clock-->Terminal. Wire that to the all the other tasks' DAQmx Timing.vi as the sample clock "source" signal. (I generally also query and wire up the sample rate). You can start the other tasks right away and they won't do any sampling until they get sample clock signals after you start the master task.
There are ways to route the sample clock signal explicitly to a specific PXI backplane trigger line, but it's usually simplest to let DAQmx manage such things automatically behind the scenes.
-Kevin P
02-01-2018 12:11 PM
Kevin,
Thanks. I am not using LABVIEW, so I plan on implementing your suggestion in ANSI C.
02-06-2018 12:22 PM
Kevin,
Are there limitations with ANSI C... where I can't achieve the same signal routes as with LABVIEW ?
Still getting errors when trying to synchronize Digital Outputs across two PXIE-6368 devices.
If you know or have sample code, please pass along.
Appreciate your assistance
02-07-2018 01:14 PM
You should be able to get to the same results in ANSI C as in LabVIEW--what errors are you getting?
As far as sample code goes, I might take a look at the ANSI C examples. They can be a bit tricky to find, but the path should be roughly like this: Start » All Programs » National Instruments » NI-DAQmx » NI-DAQmx Examples » DAQmx ANSI C.