LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Bronkhorst EL-FLOW prestige with Labview

Solved!
Go to solution

Hello everyone!

 

I am trying to start up a MFC from Bronkhorst with Labview. I have download the Drivers from the Company and I have tried to run one of the examples there. When I run this code I get the following error:

 

Error -1073807339 occurred at VISA Read in Bronkhorst FLOW-BUS.lvlib:FLOW-BUS RW.vi->Bronkhorst FLOW-BUS.lvlib:Read Setpoint (Percentage).vi->Bronkhorst FLOW-BUS Instrument Control Application.vi

Possible reason(s):

VISA:  (Hex 0xBFFF0015) Timeout expired before operation completed.

 

Anyone knows how to fix this issue or where to start checking? I appreciate any help. If anyone Needs more Information, please let me know.

 

Some useful Information:

- The MFC is using a RS232 conection and a USB to Serial converter.

- I have checked that I'm calling the right Instrument in VISA.

- Controller Manual: https://www.bronkhorst.com/files/downloads/manuals_english/917084--manual_el-flow_prestige.pdf

- I have checked already Baudrates.

 

0 Kudos
Message 1 of 3
(4,052 Views)
Solution
Accepted by topic author apdelrisco

Doing VISA Reads to an Instrument depends critically on understanding and following the Manufacturer's "Instrument Guide" that describes the Communication Protocol and Command Structure (I've wrestled with this problem with a number of different instruments).

 

What has always worked well for me is to start by not using LabVIEW, but by using MAX (the Measurement and Automation Explorer).  MAX can "talk" to a VISA port, which means you can test all of the following:

  • Setting up the VISA port with Baud Rate, Parity, and other Serial parameters.
  • Set Flow Control as per Manufacturer (when in doubt, use None)
  • Set I/O Settings, especially Termination Character if Device uses it.  You'd like Send End on Writes, Enable Termination Character, use it on Reads, and make it Line Feed (but check your Manual to see what your Instrument sends).
  • Once you've "set up", go to the Input/Output section and start trying to Send/Receive Commands.  You'll see it is set up to send "*IDN?\n" (which I think is a query, Please tell me your ID, terminated by a Line Feed).  If you click "Write", this gets sent to your Instrument.  Then click Read, and see if you get anything back.  If not, you'll get a Timeout or some other such error.  Now the fun begins -- figuring out what went wrong ...

Using MAX, you can configure your VISA Port, try to "talk to" and "listen to" your device, and if there are errors or unexpected results (like you send "Hello", and it says "iasj*32:#S", i.e. gibberish"), you know something is "not quite right" (gibberish is often "Wrong Serial Parameters" -- pay attention to Baud Rate (easy to get right, just by following the manual) and Parity (this one can fool you ...).

 

Bob Schor

Message 2 of 3
(4,026 Views)

Hi, I am facing the same problem than you, but I cannot work out what setting in the FLOW BUS RW.vi is wrong. I have the error in the Read Setpoint (percentage).vi and in the Read Measure (percentage).vi.

Could you please tell me what you had to change to make it work? 

I can communicate well while using the FlowDDE +Flow View, but I need the labview routine to automize the protocol.

Thanks for your help! 

0 Kudos
Message 3 of 3
(3,629 Views)