LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial Communication using LabView

I am trying to communicate with a mass flow controller using LabView - serial comm (RS232). The communication works fine with Hyperterminal so I know that both the COM port and the instrument is working fine. I have LabView 8.2 on my office pc and I tried "Basic serial write and read.vi" to communicate with the instrument and it worked fine. Now, I have LabView 7 on teh lab machine and I tried running the same program on Labview 7 and it gave me an error saying this program was written on a more recent version of LabView and it cannot run it.
 
Then I tried writing the same program myself and the program complied fine on Labview 7, but it did not write to the instrument at all. The problem is the string control (not the CF and LF characters). I tried running my program on LabView 8.2 and itstill didnt write to the instrument, until I copied the string control from "Basic serial write and read.vi" to my program. But my program with the the string control from "Basic serial write and read.vi" still doesnt run on LabView 7. Could anybody tell me what the difference is between the string control used in "basic serial write and read.vi" and the one provided by Labview 7? Also what can I do on LabView 7 to write to the instrument?
 
I would appreciate any help at all.
 
Many thanks.
0 Kudos
Message 1 of 4
(2,512 Views)
Hi sr1857,
there should be no difference. I think the labview 7 version has also the "basic serial read and write" example. Did you try it?
Mike
0 Kudos
Message 2 of 4
(2,507 Views)
When you wrote the program youself, you probably did not right click on the string control and select '\' Codes Display. If you don't do that, then you do not send a CR and LF. The same example in 8.2 exists in 7 so you could have simply used that.
0 Kudos
Message 3 of 4
(2,504 Views)
Thanks Dennis. It was the \ codes display. I activated it and the program is working fine. Thanks again!!
0 Kudos
Message 4 of 4
(2,490 Views)