LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Verify a DAQmx Task is a particular type of task

Solved!
Go to solution

I'm trying to find a method in LabVIEW to verify that a DAQmx Task contains a particular type of task.  For this particular application, I want to verify that a DAQmx Task is a Digital (Line) Output before executing it.

 

Regulating the IO Filtering of a DAQmx control is an option for me, but this code will be used by other programers and I would like to add this extra check w/ error handling in the event that the Task to does verify to be of the correct type.

 

Thank you for your input.

-Nic

0 Kudos
Message 1 of 4
(3,043 Views)

You could use the DAQmx Channel Property Node and read the ChanType property. If it's the Digital Out of a line, Digital Output

Message Edited by Broken Arrow on 12-22-2009 11:49 AM
Richard






Message 2 of 4
(3,036 Views)
Solution
Accepted by topic author hecmar.arreola

Use the Channel Property-> Channel Type property node and it will tell you what type of task it is.

 

Cheers, Matt

 

channel type.png

Message Edited by mtat76 on 12-22-2009 11:48 AM
Message Edited by mtat76 on 12-22-2009 11:49 AM
Message 3 of 4
(3,035 Views)
Ah ha!  Thanks you guys!  Didn't occure to me that a DAQmx Task can be fed to a DAQmx Channel property node.
0 Kudos
Message 4 of 4
(3,027 Views)