04-11-2019 03:26 AM
I have created 2 tasks:
one to output a square wave to a digital channel (DO) and another to sine wave to an analog output (AO)
I can see that within the DAQ assistant if I right-click on the channel in the 'configuration' tab, I get the option to 'Change Physical Channel'.
No sure if possible but this is what I would like to build:
in VI:
1. have a DAQmx Task dropdown menu - to allow used to select the DO or AO task.
2. a second dropdown menu listing the corresponding DO or AO channels from which user can select. this parameter would then 'Change Physical Channel' in the task.
3. a button to output the signals (that's the 'easy' part! ;P)
Any advice on how to build such a VI would be appreciated.
Sherzaad
Solved! Go to Solution.
04-11-2019 06:05 AM
That will not work. DO & AO use different polymorphic instances of DAQmx Write.vi. the instance must be known at compile time.
OTOH, you could use a case structure to write either an analog task or a digital task.