Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Partial message displayed

Solved!
Go to solution

Hi All,

 

I am new to labview and get a lot from this forum. Here is the problem i meet now.

I use ez430-rf2500 to transfer data from end devices to computer and display it in labview.

The data is tranferred by package. But I get partial message of package with following program.

Plz give some suggestions where the problem is.

 

Thx,

Li

0 Kudos
Message 1 of 5
(3,616 Views)
Not much to go on. You are not configuring the serial port and the default is that the termination character is enabled so the read willl stop as soon as it's seen. Could your data have a LF in the middle? How do you know that there are exactly 256 bytes available to read. You are not doing a VISA Bytes at Serial Port to check.
0 Kudos
Message 2 of 5
(3,608 Views)

Not sure about configuring the serial port. I did it according to this tutorial. http://zone.ni.com/devzone/cda/tut/p/id/4478

The beginning one third data is missing. Is that means there is not enough time to display whole message and it finish in advance when the termination character is enable? I set the message length and 256 is enough for it. How to check serial port with doing a visa bytes?

0 Kudos
Message 3 of 5
(3,600 Views)
Solution
Accepted by topic author sunli567

That tutorial has nothing to do with what you are doing. You just need to think of your USB-RS232 converter as a standard serial port.

 

Have you tried any of the serial examples that come with LabVIEW? Look at those and see how the functions are used.

Message 4 of 5
(3,598 Views)

Dennis, thanks for your suggestion.

I add the configure setting. And I find my mistake that visa close in while loop. It cause display uncomplete.

0 Kudos
Message 5 of 5
(3,583 Views)