03-02-2008 05:03 PM
03-03-2008 06:23 PM
Joe Friedchicken
NI Configuration Based Software Get with your fellow OS users
[ Linux ] [ macOS ]Principal Software Engineer :: Configuration Based Software
Senior Software Engineer :: Multifunction Instruments Applications Group (until May 2018)
Software Engineer :: Measurements RLP Group (until Mar 2014)
Applications Engineer :: High Speed Product Group (until Sep 2008)
03-03-2008 09:22 PM
03-04-2008 05:55 PM
Joe Friedchicken
NI Configuration Based Software Get with your fellow OS users
[ Linux ] [ macOS ]Principal Software Engineer :: Configuration Based Software
Senior Software Engineer :: Multifunction Instruments Applications Group (until May 2018)
Software Engineer :: Measurements RLP Group (until Mar 2014)
Applications Engineer :: High Speed Product Group (until Sep 2008)
03-05-2008 09:54 AM
Hi All-
You may also be interested to know that S Series devices have supported multi-device tasks since (if my recollection is correct) the NI-DAQmx 8.3.1 release. This means that you don't have to worry about exporting signals, configuring timebases, etc. If you have two (or more) S Series devices and a RTSI cable or PXI chassis configured in MAX that connects the two, you can simply create AI tasks using channel lists of the form "DevX/aiM:N, DevY/aiP:Q" or similar. NI-DAQmx will handle all signal routing and synchronization behind the scenes.
FYI, this feature is also supported for DSA boards but is not supported for MIO (i.e. M Series, E Series, B Series, etc).
Hopefully this helps-
09-24-2008 06:30 PM
09-25-2008 10:40 AM
09-25-2008 12:07 PM
09-26-2008 07:52 AM
Hi Shane,
It shouldn't matter if you're using LabVIEW or not. The C API of NI-DAQmx has the same functionality as it does in LabVIEW. As long as you're using this or whatever 3rd party tool you're using calls into the C API for NI-DAQmx, you'll be able to do what Zach mentioned. The NI-DAQmx C Reference Help can be found from the Start Menu>>Programs>>National Instruments>>NI-DAQ>>NI-DAQmx C Reference Help.
In there, you'll find the function that you've already been using, DAQmxCreateAIVoltageChan. This function allows you to specify physical channels, set the min and max voltage, as well as other things. As you can see in the reference help, it states that the taskHandle input is, "The task to which to add the channels that this function creates." As you can see, the voltage settings are being associated with the channel and not the task, so you can call DAQmxCreateTask to create your task and then add multiple channels to the task by calling DAQmxCreateAIVoltageChan multiple times. The rest of your NI-DAQmx calls, such as DAQmxCfgSampClkTiming, should take the task handle. I hope that clarifies Zach's post a little bit for you.
09-26-2008 08:14 AM
lion-o...
Now I get it. Very nice description. Thanks. I will give it a shot.
Shane