When you change your chassis programming mode setting for your cRIO device and deploy the chassis setting, where is this token or setting stored on the cRIO system?
I would like to be able to programmatically read this information, modify and reboot the device programmatically if needed.
Solved! Go to Solution.
To clarify, do you mean you want to read/control whether the device is in Scan Interface mode vs FPGA Interface mode, or active vs configuration mode within Scan Interface mode?
I want to read/control whether the chassis is in Scan Interface Mode vs FPGA Interface Mode. Sorry for not being clear in my original post.
I am fine with having to go through a reboot process as that can be commanded from the RT code if it ends up being something in an INI file that can be modified and picked up when the controller restarts.
There is no existing information or an official way of how to programmatically produce this behavior that you want.
It might be worth you sharing why you want to programmatically swap between scan interface and FPGA just in case there are suggestions as to how to work around ?
Have you looked at hybrid mode - where you can select some of IO modules to be accessedible via Scan Interface mode and other modules through user-built FPGA VIs.
I'm trying to determine what is changed when you click DEPLOY in the project and the RIO backplane changes from Scan Engine Mode to FPGA mode. We ARE using HYBRID MODE - buuuuut if the chassis is in Scan Engine Mode you can't load the bitfile programmatically. This is the source of my question
The project has to be setting a flag somewhere when you hit Deploy and it puts the chassis in FPGA Mode or Scan Mode depening on your selection.
The work-around is to manually deploy the setting from the Project Explorer and go from there..but I can detect the issue programmatically when I try to deploy a bitfile and the chassis is in the wrong mode. Its a shame it can't also be fixed programmatically.
Did anyone ever figure out how to do this programatically? I'm running into the same issue. I have a component definition file I use to install my rt startup on several cRIOs through MAX. I'd like to avoid having to open up a project every time I reinstall the software to change the programming mode from Scan Engine to FPGA...
Haven't figured it out yet - might need to revisit on current implementations.
A quick check of the Systems Palette referenced didn't show a way to do this.