Discussion:
How do I pass multiple virtual channels to labview DAQmx
(too old to reply)
Norbert B
2006-05-19 08:40:18 UTC
Permalink
gumby,
you can store the physical channel information in teststand as strings and pass them to a "init DAQmx"vi you create to build your task. you can there combine the channelstrings to a single channelstring (please check out the DAQmx-examples for multiple channel configuration) and pass this to the creat virtual channel vi. now add timing and trigger infos, and you then can measure the correct channels. if you want to use these channelsettings in several vis of your application, you would like to pass the reference to the DAQmx to teststand. please remark that the reference is no pointer but a struct (container). in teststand 3.5 you will be prompted to create an appropriate datatype for this parameter if you hit the correct button.
 
Norbert B.
Norbert B
2006-05-22 07:40:16 UTC
Permalink
gumby,

you can create "virtual channels" for DAQmx as well. these are called
"global channels" then (to differ between trad DAQ and DAQmx) and a new
kind of global configuration is added called "task". Infact, a task
includes at least one virtual channel (which does not need to be
defined as global channel!) and contains one timing and trigger-info
for all included channels.
therefore, you can do the same with DAQmx as with trad. DAQ but you
have to change the VI itself to DAQmx of course (including the
channel-input control!).
the disadvantage of defining channels/tasks in MAX is that you always
have to share these settings as well if deploying your application. if
that is not of an issue for you, please feel free to use MAX for
predefining all your channels/tasks for the application.

Norbert B.

Loading...