06-07-2010 02:59 PM
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.
Solved! Go to Solution.
06-08-2010
06:41 PM
- last edited on
07-10-2024
07:44 AM
by
Content Cleaner
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
06-09-2010 09:04 AM