From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

programming software for NI device

Hello,

 

I would like to make some tests of the communication between PC and the CompactRIO via MODBUS TCP/IP, and I have the serial interface modul (4 ports) NI 9871.

 

The question is that aside from the Labview, could I use the other software like Scilab or Python to program and to achieve the communication MODBUS (read and write data of the automat)?

 

In effect, I have already the programmes of modbus which run successfully in Scilab and Python.

 

Thanks in advance.

0 Kudos
Message 1 of 4
(4,148 Views)

The program on the PC side could be anything that follows the MODBUS protocol over TCP/IP.  But I'm pretty sure the cRIO is going to have to be LabVIEW.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 4
(4,146 Views)

If I convert the Scilab or Python code to C, could Labview support them?

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

@mengjing620 wrote:

If I convert the Scilab or Python code to C, could Labview support them?


I'm not sure what you mean by "support".  If you are referring to LabVIEW calling other code, you will need to compile into a dll.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 4
(4,097 Views)