LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

compactRIO: Selecting Channel Dynamically

Solved!
Go to solution

Hello,

 

I would like to control multiple power supplies using compactRIO AI/AO modules. The problem is I need a solution which can scale nicely based on how many power supplies are being controlled by a perticular cRIO system. There might be 5 on one system and there might be 40 on another so I dont want to have to change the program every time, I would rather just have a simple configruation file for each power supply. I figured I could set up all the power supply settings and readbacks in to a multidimensional array then have a loop process each entry in the array. Speed might be a bit of an issue since you can't process this in parallel but speed isn't too big of a concern right now.

 

My problem with this plan is that I do not know how to select a channel from the FPGA dynamically, without that doesn't seem like my idea would work. Does any one have some suggestions about how to deal with this? Is there a way to select which channel you want to aquire data from programmably? Or is there a better method for making a program like this which can deal with a undefined number of power supplies? Help and feedback would be greatly appreciated.

0 Kudos
Message 1 of 3
(2,838 Views)
Solution
Accepted by topic author Pawel_Kowalski

Pawel

 

You can build a program using Scan Mode that will dynamicly assign channels based on which modules are present.

 

This White paper gives a general overview of how this works

 

 

and this example goes into more detail

Programmatic Discovery, Configuration, and Access of CompactRIO Scan Mode I/O in LabVIEW

 

 

-Hunter

Message 2 of 3
(2,812 Views)
Looks very interesting, I'll try that out. Thanks!
0 Kudos
Message 3 of 3
(2,790 Views)