LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Check if a cRIO Module is plugged in?

Hi all,
 
I'm currently programming a small data logger based on a cRIO system. There are two AI Modules always used and I want to add the possibility to plug in a third module. The FPGA and Host VIs should realize if this third module is there or not. If it's there, the system should automatically acquire from all three modules, if not, only from the first two.
 
The idea is to first check in the FPGA VI if the third module is plugged, generate a boolean indicator (plugged TRUE/FALSE) and then use this one in the rest of the VIs to disable the code for the third module if it's not there.
 
My question: Is there a possibility to check in the FPGA VI if there is a module present in a specific slot? What does the "Module ID" Property node return when there is no module plugged or does it generate an error? I didn't find anything yet.
 
Anybody got ideas?
 
Thanks a lot,
 
Stefan
0 Kudos
Message 1 of 3
(4,914 Views)
Hi Stefan,


@StGl wrote:
My question: Is there a possibility to check in the FPGA VI if there is a module present in a specific slot? What does the "Module ID" Property node return when there is no module plugged or does it generate an error? I didn't find anything yet.



FPGA nodes that are associated to cRIO modules and their channels (I/O nodes, I/O Property nodes and I/OMethod nodes) will return the module communication error - code 65536 - if no module is detected. You can use this information to determine whether a module is present or not in a specific slot.

Just for completeness, in case that the module detected is different than the one specified in the LV Project, error 65537 is generated.

JMota
Message 2 of 3
(4,913 Views)

Thanks JMota,

that's the right information for me - so I will just check for an error as I want to detect a specific module type. Nice to see that I was thinking in the right direction...

 

Thanks a lot!

 

Stefan

Message Edited by StGl on 08-06-2007 06:30 PM

0 Kudos
Message 3 of 3
(4,908 Views)