Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to get the total number of channels/lines configured in a task?

Hi,

            Is there any fuction to get the total number of channel count configured for a particular task for PCI 6229?

For eg Task1 uses 5 digital input line. Is there any function to get the total number of lines configured for the Task1 when I pass the taskHandle of Task1.

 

Regards

NB

0 Kudos
Message 1 of 3
(3,083 Views)

Hello Nagraj,

 

I think what you want to do is to use DAQmx Read property node Advanced -> Number of Channels. This property returns number of channels you have configured in your task.

 

Number of Channels.jpg

 

I hope it will help 🙂

 

 

regards,

Martin

Certified-LabVIEW-Developer_rgb.jpg

Message 2 of 3
(3,081 Views)

Hi Stefo,

         I am using CVI for my application. I got the solution for my question. 

int32 DAQmxGetTaskAttribute (TaskHandle taskHandle, int32 attribute, void *value, ...);

Using the above function we can obtain the task attributes.

 

Regards

NB

0 Kudos
Message 3 of 3
(3,078 Views)