FieldPoint Family

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you choose a particular Channel from an Advise.vi to perform an Array Max & Min.vi on that particular channel only?

Reading all the channels for a FP-AI-100 through an Advise.vi but I need to read the Max & Min from channels 0 & 1. How is this done?

Thanks
0 Kudos
Message 1 of 2
(3,041 Views)
The easiest way is to use two copies of the Index Array function. You would wire the output from FP Advise.vi to the n-dimension array input of both Index Array functions. For channel 0, you would use the an index value of 0 (on the first Index Array) and for channel 1, you would use an index value of 1 (on the second Index Array). Alternatively, the Index Array function is what is called a growable array function, you can drag the bottom of the node downwards, adding outputs. In this case, you can set it for two outputs and only use one copy of the Index Array.

Considering that you are relatively new to FieldPoint and LabVIEW, I recommend that you consider using the FP Read.vi instead of the FP Advise.vi. The FP Advise.vi is a more advanced version of the
FP Read.vi and has more "gotcha's" in its use. To save yourself some debugging headaches it may be easier to use the FP Read.vi. The single biggest difference in coding between the two is that an FP Advise.vi in a loop, automatically times the loop, whereas an FP Read.vi in a loop requires a timer such as Wait Until Next ms Multiple.vi.

Regards,
Aaron
LabVIEW Champion, CLA, CPI
Message 2 of 2
(3,041 Views)