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.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

RS232, Flow-Bus protocol

Hello evryone,
 
I am starting a new project based on communcating with a digital mass flow instrument, with an RS232 interface Flow-bus protocol(Bronkhorst manufacturer). I have to developpe a program with Labview. According to what I have already checked out ( Net, labview examples, and forum ), it seems that I have to retrieve and send data to the instrument through excell for example. Sorry but I am completly new to all of this 🙂 (dde application). Is it possible to communicate with the instrument using just the VISA solution?
 
any help would be really great,
 
regards,
 
David
0 Kudos
Message 1 of 9
(6,932 Views)

You should be able to. The question is whether or not the vendor will tell you how.

First step is to contact the vendor and ask for a copy their documentation on how to talk to their instrument over the serial port.

Next, it's possible that the vendor intended the Excel example to demonstrate how to access the device. Look at the Excel macros and see if you can tell how Excel is making the connection and then do the same thing. (Hopefully they don't have a custom DLL or the like).
 
If you would like help, post the Excel spreadsheet that can talk to the instrument and I will take a look at it.
 
Mike...
 

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 2 of 9
(6,923 Views)

As Mike said..

Also:

Do you have the developer (or API) manual?  Typically, you should have a list of commands that you can send to the instrument using serial port communication software such as "HyperTerminal".  If so, then you can manually try out a few commands using H-T.  The use the same commands to experiment with LabView code. 

If you are able to use software like HyperTerminal, then using the VISA serial communication tools will be the simple way of implementing your solution.  Here are some links which may provide clues on how to proceed.  You can also do a search on VISA Serial communication.

Happy wiring!!
 
JLV
 
LINKS:
 
Link 1: Although this one talks about an error, it does provide instructions on how to setup the VISA session:
http://forums.ni.com/ni/board/message?board.id=170&message.id=99660&query.id=0#M99660

Link 2: Here are some examples: (good starting point):

 
Link 3: more info:

Message 3 of 9
(6,913 Views)

Well there you go. It looks like you basically have two options: VISA which will be more efficient but might require more code to build command strings, and the company's DDE server which is simpler to use from the LV world, but much less effiecient and would possibly impose future compatability problems--like what happes if (when?) DDE goes the way of the dinosaurs?

Then also the DDE example pretty much stinks in terms of the quality of the code...

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 5 of 9
(6,893 Views)
Hi,
 
Thanks to JLV, mike, and unclebump fir ur help !!
 
I got Bronkhorst to send me  a Labview example. They seem to use the DDE protocole....
 
Would any of u know where I could find some DDE notes. I have the labview Basic I &II, and the intermediate book, but no explanations on how to use the DDE VIs?
 
Thanks a lot,
 
David
0 Kudos
Message 6 of 9
(6,861 Views)

Do a search in examples on "DDE". Also check Microsoft's website. There is a lot of info there.

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 7 of 9
(6,851 Views)

Hi, did you connect a loose-end rs-232 to a digital module or did you connect rs232 to usb directly into the PC?

0 Kudos
Message 8 of 9
(3,050 Views)

The original poster's last post was almost 13 years ago, so I wouldn't hold my breath for an answer.

0 Kudos
Message 9 of 9
(3,039 Views)