LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

serila port problems

Hi all ,

 

Im a nebie in LV and im using LV6.1

i m writing a program.This should act like a hyperterminal.

Im communicating with a board.I must send commands via labview instead of hyperterminal and should receive back the preprogrammed messages from the board.

 

 

I created a VI that works sequentially

 

1. initializes the port with baud 19200

2.write a command

3.wait for some milliseconds

4.read the serial port

 

 

The problem now is that

 

I place the command in the front panel (string control field)followed by "Enter: character

 

1.Now when i execute only after repeated too many many pressings of => RUN button(maybe 50 or 100) the board responds correctly.Till then it shows the results of the previous command.

 

2. The string indicator (which shows the data received) each line is being overwritten.. i want the new line to come in the next below position.

can some body help

 

Please post a jpg file incase u r posting a vi ( I use old version of LV6.1)

0 Kudos
Message 1 of 2
(2,505 Views)

You can not be sending the 'Enter' character. In order to send a '\' code, you need to right click on the control and select '\' Codes Display.

 

 You would need a shift register to hold all of the responses. Use a concantanate string to add the new response to the previous. Add the shift register to the for loop.

Message 2 of 2
(2,498 Views)