RS232 Terminal

VISA; TCP/IP, CAN and similar protocols
Ответить
Аватара пользователя
Eugen Graf

Activity Professionalism Silver Black
guru
guru
Сообщения: 6502
Зарегистрирован: 13 ноя 2007, 02:20
Награды: 4
Версия LabVIEW: 2009
Откуда: Saarbrücken
Контактная информация:

RS232 Terminal

Сообщение Eugen Graf »

VI to communicate over RS232 interface

Изображение



RS232_Terminal.vi [click to download]
Аватара пользователя
Eugen Graf

Activity Professionalism Silver Black
guru
guru
Сообщения: 6502
Зарегистрирован: 13 ноя 2007, 02:20
Награды: 4
Версия LabVIEW: 2009
Откуда: Saarbrücken
Контактная информация:

Re: RS232 Terminal

Сообщение Eugen Graf »

Update:
Display Mode
Autowrapping

Изображение


Download
masturah
beginner
beginner
Сообщения: 29
Зарегистрирован: 16 янв 2008, 20:55
Версия LabVIEW: 8.0
Откуда: malaysia
Контактная информация:

Re: RS232 Terminal

Сообщение masturah »

i already try this program.but when sending the word document file it appear coding number.it is true?or can u explain to me step by step how to use the program.because i'm still confuse. :suicide:
Аватара пользователя
Eugen Graf

Activity Professionalism Silver Black
guru
guru
Сообщения: 6502
Зарегистрирован: 13 ноя 2007, 02:20
Награды: 4
Версия LabVIEW: 2009
Откуда: Saarbrücken
Контактная информация:

Re: RS232 Terminal

Сообщение Eugen Graf »

I tryed to send a DOC file from one PC to other with my RS232 Terminal. I got no problems. It works fine. What do you think with
"it appear coding number" ?

To send a file from one PC to other:
1) connect both PCs over crossover RS232 cable
2) start my RS232 Terminal on both PCs
3) select COM number and open interfaces on both Terminals
4) klick "log into file" button and write e.g. MyWordFile.doc into the appeared dialog window
5) klick "send file" button on other PC and select the Word File you want to send
6) wait while sending file
7) klick "log into file" button again to stop receiving and closing received file

Ready :wink:
justin_b31
interested
interested
Сообщения: 2
Зарегистрирован: 14 май 2009, 07:27
Версия LabVIEW: 8.6
Контактная информация:

Re: RS232 Terminal

Сообщение justin_b31 »

this is a wonderful program! Many thanks! I have spent days trying to find such a VI.

I am however having 2 issues .. See attached pic

I spent 2 hours trying to locate the "square" and the duplicate typed character.
Example: I type "i" and a i-square-i displays, however my RS232 device recognizes a single i.

I also cannot determine where the extra line feed is orginating from when I hit <enter>.
Example: When at the first top. prompt, if I type <enter> I get the following display:
top.

top.

I have echo and CR>LF turned off because it just "doubles" the characters I see

TIA!
Justin
Вложения
easy232.JPG
Аватара пользователя
Eugen Graf

Activity Professionalism Silver Black
guru
guru
Сообщения: 6502
Зарегистрирован: 13 ноя 2007, 02:20
Награды: 4
Версия LabVIEW: 2009
Откуда: Saarbrücken
Контактная информация:

Re: RS232 Terminal

Сообщение Eugen Graf »

Hi Justin, would you switch the display mode to hexadecimal, so you will see what the square means in hex.

The VI shows you ASCII characters, but if the code of the character is not from the ASCII table, you will see unknown characters like this square.

I think the square is something like "acknowledge" from your device. It says ok I received your command.
justin_b31
interested
interested
Сообщения: 2
Зарегистрирован: 14 май 2009, 07:27
Версия LabVIEW: 8.6
Контактная информация:

Re: RS232 Terminal

Сообщение justin_b31 »

genius! :drink:

in Hex "i" = 69 0869
in backslash "\" i = i \bi

So, on the ASCII table this is a backspace?

One other thing, request really. On the send file command, this is to write the contents of the file to the RS232 port?
Аватара пользователя
Eugen Graf

Activity Professionalism Silver Black
guru
guru
Сообщения: 6502
Зарегистрирован: 13 ноя 2007, 02:20
Награды: 4
Версия LabVIEW: 2009
Откуда: Saarbrücken
Контактная информация:

Re: RS232 Terminal

Сообщение Eugen Graf »

Yes, you can send a file over RS232 using this button. And you can log incomming data from RS232 to a file using the button in the near of them.
Ответить

Вернуться в «Communcation with devices»