LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NI VISA LabVIEW cannot control external pump

Maybe check the hardware connection first, the RS232 connector of the pump is DB9, not DB25.

0 Kudos
Message 11 of 19
(614 Views)

Um.. the pump only has a db25. The manual says use a db25 to db9 cable and that’s what I did. And it does support RS232.

0 Kudos
Message 12 of 19
(609 Views)

Please check the manual page 3-23, the DB25 is for analog control.

I guess there are some model with RS232C, some are not.(page 7-1, 7-2)

Message 13 of 19
(601 Views)

You are right! 
Let me check how to work with that db25 I/O….

0 Kudos
Message 14 of 19
(595 Views)

Hello,

Did you manage to resolve this issue? I'm experiencing the same problem. I have a DB25 port on the back of my pump, which I'm converting to DB9 and then connecting to an NI RS232/USB serial interface. The pump powers on, but I'm unable to adjust the speed—it’s stuck on the priming speed.

0 Kudos
Message 15 of 19
(339 Views)

@Mohaimin_95 wrote:

Hello,

Did you manage to resolve this issue? I'm experiencing the same problem. I have a DB25 port on the back of my pump, which I'm converting to DB9 and then connecting to an NI RS232/USB serial interface. The pump powers on, but I'm unable to adjust the speed—it’s stuck on the priming speed.


Did you read the last two posts before yours? The DB25 is probably not a serial port as you thought but instead contains analog and digital signals to control the pump. Most serial ports on pumps are DB9 and many manufacturers make different models, some with and some without remote control options. And the remote control options vary from only digital IO to switch it on and off, to analog IO to control its pump speed and RS-232 or RS-485 to control it from a computer. Models without any remote control option are usually a few 100 bucks cheaper and each remote control opotion makes the device 200 or more bucks more expensive.

Rolf Kalbermatter
My Blog
Message 16 of 19
(326 Views)

@wen88  ha scritto:

I also changed it to \n and the flow control to RTS. (Flow control changed to RTS in device manager and NI MAX as well)

now the vi returns error 1073807339 for every VISA write function.


A timeout on write seems to indicate that the device never raised the Clear To Send line in response to the Request To Send from the PC.

Either the protocol is not RTS/CTS after all (I cannot open the pump manual because of Access denied) or the cable (or the 25to9 adapter) is not the right one. Check the connection on your cable+adapter. RTS pin must be connected to the CTS pin on the other side and vice versa. See https://en.wikipedia.org/wiki/RS-232#RTS,_CTS,_and_RTR , namely the table in section Data and control signals

 

Nevermind. I "forgot" to properly read all messages.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 17 of 19
(296 Views)

It could of course be a different model, but in this manual on page 3-23 it clearly documents that the DB25 is NOT a serial port! Page 4-2 shows the different connectors and the difference between a Style A device (only having the DB25 analog and digital remote control connector) and the Style B device with two additional DB9 connectors which are the serial port in and out for daisy chaining multiple pumps together. Some models also have an USB port but it is not really clear if that supports a virtual RS-232 port or uses a proprietary USB protocol.

 

As to the communication, the serial protocol is described from page 3-30 to 3-27. It's kind of involved because of the Linkable Protocol to allow controlling multiple devices over one single serial port through daisy chaining, but most of the difficulties are avoided when only controlling one device.

Rolf Kalbermatter
My Blog
0 Kudos
Message 18 of 19
(289 Views)

Check this post 

Solved: LabVIEW Communication w/ Masterflex Pump (DB25-USB) - NI Community

 

I created a  LabVIEW driver for L/S model, feel free to use it. 


It works fine.. In case the pump still not working check the DB9 Cable, The serial communications  use the DB9 connector. DB25 DOES NOT WORK FOR SERIAL.

 

Ensure that the DB9 pins are properly connected  2, 3, and 5. 

 

0 Kudos
Message 19 of 19
(255 Views)