LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

serial communication with Labview

I have to communicate with an old "home-made" device, via serial interface. In order to correctly open the serial port, in Qbasic, I had to use the following command: OPEN "com1: 9600,n,8,1,CD0,CS0,DS0" FOR RANDOM AS #1. If I don't insert "CD0,CS0,DS0" in my command line, I'm not able to communicate with my device. Does anyone know how I can do the same thing with Labview 6.1? I'v already tried the standard Labview functions, but they do not work.
Thank you.
Bye Carmen
0 Kudos
Message 1 of 8
(3,215 Views)
I'm guessing CD is DCD, CS is CTS, and DS is DSR? In that case, these are inputs - what is Qbasic doing when you issue these commands/options?
0 Kudos
Message 2 of 8
(3,215 Views)
Hello
You can try to set the modem indication lines by means of property node. The attached example shows how to do this.
hope it helps
regards
Pawel
0 Kudos
Message 3 of 8
(3,215 Views)
I'm sorry, Pawel, but I can't open your vi because my Labview version is 6.1. Please, can you save it as previous version?
Thank you so much.
Carmen
0 Kudos
Message 4 of 8
(3,215 Views)
In your OPEN command, you are setting some of the handshaking things for a zero timeout, which you probably already know. Are you using the "old" Serial vi's (not VISA)? The serial port vi's have the handshaking lines disabled by default. I'd try this: Open up Serial Port Init.vi, inside there is Serial Port Reset.vi. From there you can Enable the handshaking lines RTS, DTR, CTS, DSR, etc. Perhaps just enabling those lines will fix you problem.
It's probably do-able with VISA but I've never tried.
Richard






0 Kudos
Message 5 of 8
(3,215 Views)
Maybe pawel can save his vi as 6.1. The property node is probably a better method. And VISA is always a better choice if you can use it.
Richard






0 Kudos
Message 6 of 8
(3,215 Views)
Hello

I am sorry, I do not have previous version, but I made an image for you (see attachment).
regards
Pawel
0 Kudos
Message 7 of 8
(3,215 Views)
great! it works with both solutions: yours and Pawel's.
thank you very much!!!
Bye Carmen
0 Kudos
Message 8 of 8
(3,215 Views)