Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

sSeries module recognition

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

0 Kudos
Message 1 of 2
(3,040 Views)

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.

 

 

cRIO Module Identifier.png

 

Hope this helps.

Cheers

Stephen

0 Kudos
Message 2 of 2
(3,039 Views)