LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Change physical Channel set in task within VI

Solved!
Go to solution

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

   

0 Kudos
Message 1 of 2
(2,474 Views)
Solution
Accepted by topic author sherzaad

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.


"Should be" isn't "Is" -Jay
0 Kudos
Message 2 of 2
(2,453 Views)