Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Manipulating large number of channels Analog/Digital-Suggestion needed

I am handling 30 analog inputs and 24 Digital inputs and 15 Digital outputs.

In one while loop I just use Create channel NChannel, 1D output, Read/write and clear, just the basic programming style.

Is there some method I can manipulate large number of channels by some for any other loop?

I need it for improving my programming skills and also the VI is very big.

Any suggestion to improve programming skills.

0 Kudos
Message 1 of 2
(2,705 Views)

It depends on how you're using these inputs and outputs. To understand your issue, are you using multiple DAQ devices to do this? Are these ports being used at multiple rates in separate tasks?

 

Remember that one DAQ device can only have one DAQmx task associated with it at a time. So if you're only dealing with one device, you'll have to work with that single task throughout the whole operation. Another basic piece of advice I have is that you should keep your "Create Virtual Channel" and "Clear" outside the while loops if possible. You don't want to be calling them within the loop. Have you taken a look at some of the DAQmx examples in LabVIEW?

 

 

Ravi A.
National Instruments | Applications Engineer
0 Kudos
Message 2 of 2
(2,687 Views)