LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problems with serial communications

I am trying to connect an instrument with a serial port to my computer through labview. Instruments responds to function command strings. eg "f23,00; " When using VISA write, only the first charachter of the command string is sent to my instruments. I need to send the full command string at one time. What should be the VI block for this or what am I missing???
0 Kudos
Message 1 of 13
(3,975 Views)
what kind of instrument are u using?I have done such work before.Pls do not use VISA.If u have any question pls give me your E-mail box I'll help u.
Gemstone
0 Kudos
Message 2 of 13
(3,975 Views)
Hi , and thanks for your reply. My e-mail address is abhisheik@hotmail.com.
0 Kudos
Message 3 of 13
(3,975 Views)
What instrument are you using? Have you searched http://www.ni.com/devzone/idnet for an instrument driver? There are many instrument drivers available for download. They make instrument communication a lot easier.
0 Kudos
Message 4 of 13
(3,975 Views)
If you are unable to find an instrument driver and you are using LabVIEW 7.0, you can try the Instrument I/O Assistant Express VI. It makes instrument I/O and especially response data parsing much easier than writing all the code by hand.
0 Kudos
Message 5 of 13
(3,975 Views)
Thanks but i do not have Labview 7.
0 Kudos
Message 6 of 13
(3,975 Views)
What's wrong with using VISA? It's better (faster and more reliable) than the old "builtin" serial VIs (using "serpdrv").
0 Kudos
Message 7 of 13
(3,975 Views)
Shakes wrote in news:506500000008000000B6B60000-
1068850981000@exchange.ni.com:

> I am trying to connect an instrument with a serial port to my computer
> through labview. Instruments responds to function command strings. eg
> "f23,00; " When using VISA write, only the first charachter of the
> command string is sent to my instruments. I need to send the full

Problems with handshaking?

Use a property node and the property "Serial Settings->Serial Flow Control"
To check it, read from the property. (To set it, write to the property.)
For me it was default to None, if that is then it is not handshaking which
is the problem.

--
Rolf
0 Kudos
Message 8 of 13
(3,975 Views)
hi rolf, thanks for the reply. I am new to Labview so i will try it and come back to you. Can you give me your e-mail adress so i can send my VI to you for your comments????
0 Kudos
Message 9 of 13
(3,975 Views)
Shakes,

You can post your vi as an attachment in this thread. That way, many people can help you. 🐵

JLV
0 Kudos
Message 10 of 13
(3,975 Views)