To download NI software, including the products shown below, visit ni.com/downloads.
This example shows how to use the NI System Configuration Python API (nisyscfg) package to read or set the programming mode of modules in a cRIO device with the NI Linux Real-Time OS. This can be useful if LabVIEW is not the main programming language being used in an automated test scenario.
Description-Separate-2
opkg install python-pip
python -m pip install nisyscfg
If the previous line errors out, you can try using "sudo easy_install pip==9.0.3" instead.
You could also leverage a similar script and execute it remotely using SystemLink salt states. If included in a SystemLink custom salt state, the state can be defined as:
mycommand:
cmd.run:
- name: python <script_location>
- runas: admin
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.