LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programatically change module reference for inputs

Hi, I'm trying to create a generic Vi that will pack all data from an input module in to an array and pass the array out. The problem I'm having is how do I pass a reference of which Module I want to look at? If I pass a reference from /Mod2 (9205) to a Property Node, is it possible to get all 32 channels of data out in to one array?

 

My end goal is to have a generic Vi that packs the data from any input module in to an array. I'm not sure if this is so generic that its not really possible!

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

Hi LBee11,

 

Here is a KB article that describes what you are trying to do. To modify it for your purposes, you can have the user select the desired module from a control on the front panel and use that control in place of the DevNames array.

 

As you can see, the DAQmx Device property node also allows you to specify the kinds of channels you would like to read from and treat them separately (as you would likely need to in any system). Here is a list of the other properties available from this class.

 

Best,

 

Duncan W.

Message 2 of 2
(1,974 Views)