03-08-2011 06:25 AM
Hello,
i would like to use a cRIO system with different cSeries modules.
Is it possible to have some kind of module recognition inside the FPGA code?
The Controller will be used with different modules installed and the software should be able to work with all different setups.
I know that the Scan Engine supports this, but i would like to program my own FPGA.
Regards
Gerd
03-08-2011 06:52 AM
Hi Gerd,
There is a property Node for the Module that you can use in your FPGA Coding.
Ironically there is more information available for FPGA than in Scan Engine. You can get the cRIO Module ID, Serial Number, Vendor ID whereas in Scan Engine you can only get the Module ID, providing that the scan engine supports the module.
Note that the Module ID Number is NOT the same as the NI Number, you have to use a look-up table to convert Module ID into cRIO Module type.
Here is some code that I usually use. If you set up a chassis with 8 Modules you can create a bitfile that you can use on any cRIO that has that type of FPGA Backplane without having to recompile each time. Your RT can call the bitfile first then call whichever FPGA bitfile or compiled FPGA vi that is relevant to the particular configuration that is found.
Hope this helps.
Cheers
Stephen