LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems at reading the serial port

I`m working with the example serial.vi, I´m sending the data 43H (Hexadecimal),which is the letter C in ASCCI. But I get in the dialog box a different simbol,
I send the data 79H, and I get the number 1 in the dialog box. I need to know what`s happening. Besides I have problems when I want to read more than 5 datas I get the serial error. Thanks a lot
0 Kudos
Message 1 of 6
(3,192 Views)
Can you send an example of your code?
0 Kudos
Message 2 of 6
(3,192 Views)
I sent a start bit, then 8 bits , then a stop bit.
43H es 01000011.
Another question with labview, can I create executable files?, I mean files.exe. Thanks a lot
0 Kudos
Message 3 of 6
(3,192 Views)
You can create executable files with either LabVIEW Base or FDS and the application builder or with the PDS.

About your serial problem. Are you sure that the settings like baud rate is the same on both sides. This could lead to incorrect readings and cause an error after a few bytes.

Be ware to disable the termination character if you do binary transfers.

Waldemar
Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
0 Kudos
Message 4 of 6
(3,192 Views)
I selected the right baud rate and This solved the problems. Thanks a lot. Besides I need to create a file.exe to run the VI in another computer, although this another computer doesn´t have labview installed. But I´m working with Labview 5.1, and where can I find the instruction FDS or PDS or the Labview Base. Thanks
0 Kudos
Message 5 of 6
(3,192 Views)
LabVIEW comes in several packages, namely the Base Package, the Full Development System (FDS) and the Professional Development System (PDS).

It doesn't matter if you use LabVIEW 5.1 but you need to know which package you are having now.

If it is a FDS or lower, you will need a separate Application Builder for creating executable files. And, PDS enables you to create executable from within the development environment.

Check with you local NI office, and they should be able to help you.
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 6 of 6
(3,192 Views)