05-25-2017 02:13 PM - edited 05-25-2017 02:14 PM
I'm working on a project where I need to dynamically create shared variables based on which C series modules I have plugged into a cRIO 9035. I'm looking for a way to programmatically extract the default name of each module I/O that is plugged in. For example, I'm looking for a way to get the string " Mod1/AI0" , "Mod1/AI1" etc, off of the FPGA target so I can use it for a .ini file on the host.
Does anyone know of a feasible way to do this?
05-30-2017 02:59 PM
Here's a forum post I found with someone asking a similar question:
[FPGA] Programatically Obtain FPGA Channel Information?
http://forums.ni.com/t5/LabVIEW/FPGA-Programatically-Obtain-FPGA-Channel-Information/td-p/1628710
If you only need the names of the channels as strings (e.g. "Mod1/AI0"), you could write your own database that contains the names of the channels on each module based on module ID.
C Series Module IDs (FPGA Interface)
http://zone.ni.com/reference/en-XX/help/370984R-01/criodevicehelp/module_ids/
I don't think there's a better way to do it. As Dragis recommended, this could be something to post on FPGA Idea Exchange.
06-14-2017 12:27 PM - edited 06-14-2017 12:28 PM
Ignore comment, created in error.