LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Simple comport problem

Solved!
Go to solution

Hi there,

 

I have problem with finding the difference between example vi and my own. I just want to sent a simple ascii code with 3 characters and CR LF at the end. If I run "Basic Serial Write and Read.vi" from the examples it works fine. BUT, if I build it up by myself, even if I use the same components, it sends \r \n as characters not as commands.

Can anybody have a look on it?

 

mfg Rainer

 

LV 8.5.1

0 Kudos
Message 1 of 3
(2,736 Views)
Solution
Accepted by topic author deepearth

Hi Rainer,

where do you insert your string to write? If you use the "Schreibpuffer" input, then you should change the display type to "code display" and insert then the "\r\n". Right click on the control (in the FP) and select "\ Code display".

At the moment you send "\n" as last sign. If you don't want it, then change the boolean constant to false. 

 

Hope it helps.

Mike

Message Edited by MikeS81 on 01-23-2009 03:39 PM
Message 2 of 3
(2,734 Views)

Hi MikeS81,

 

thanks for your very fast answer. Sometimes the "hardest" problems have the easiest answers.

 

mfg Rainer

0 Kudos
Message 3 of 3
(2,725 Views)