Hello everyone,
I am trying to acquire flow rate data from a sensor via the serial port of my cRIO in Labview.
I am using:
- Labview 2018 (including Real Time and DSC 2018 modules)
- RT cRIO 9040 - which includes a serial port RS 485 (http://www.ni.com/documentation/en/compactrio-controller/latest/specs-crio-9040/specs/)
- Ultrasound flow meter which supports the MODBUS protocol. The interface operates in half duplex mode, 8 data bits, 1 start bit, parity even, 38400k Baud and device address default 001. I only want to read the first holding register 400001.
I read several posts online and I am trying to use a I/O server to do so (http://zone.ni.com/reference/en-XX/help/370622M-01/lvmve/create_mb_ioserv/)
I can see the RS 485 port as 2-wire connection on NIMAX, I added the modbus serial I/O server (master) from the RT target in my project and I created the bound variable of interest (flow_data) in my "IO variables" library.
However, when i open the properties of my I/O server I can only pick the serial port in the range COM1 to COM32, which doesn't correspond with the name of my cRIO port I see on NIMAX.
How do I know which one is the correct port?
In my vi I only have the shared variable connected to an indicator.
When I try to run it using one COM port (which I am not sure is the correct one) I get the following error:
-1967353900
Shared Variable in Platform_master.vi<APPEND>
This error or warning occurred while reading the following Shared Variable:
\\.\IO_Variables\Flow_Data
\\.\IO_Variables\Flow_Data
I would really appreciate any suggestion to do so and solve my errors.
Thank you very much.
Gaia