Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Extra FF character in serial communication

Hi,

 

After upgrading the LabView 8.6  to LabView 2010 the following problem appeared:

The correct response to a read command is: A5FF 0201 0001 32FF 0000 0000.

But now with LabView 2010  extra FF characters are addded: A5FF FF0201 0001 32FF FF00

 

What is happening. Can you help me with this problem ?

 

Thanks,

 

Manuel

0 Kudos
Message 1 of 13
(4,238 Views)

please send the offending vi. I don't see a difference without it.

Maybe you have integers of the wrong data type

greetings from the Netherlands
0 Kudos
Message 2 of 13
(4,235 Views)

This is the vi

0 Kudos
Message 3 of 13
(4,231 Views)

More information:

Linux Fedora 9

And the Visa configuration vi

0 Kudos
Message 4 of 13
(4,227 Views)

don't see anything disturbing so I guess that something else has been changed too.

Probably the lower level visa driver?

greetings from the Netherlands
0 Kudos
Message 5 of 13
(4,220 Views)

I install LabView 2011 in another computer and the result in the same.

If I add a delay of at least 30 ms between writing and reading works fine.

0 Kudos
Message 6 of 13
(4,215 Views)

A typo error, is 2010 Not 2011

0 Kudos
Message 7 of 13
(4,212 Views)

I guess that it is te underlying serial driver in linux that has difficulties, in principle your program is not to blame

greetings from the Netherlands
0 Kudos
Message 8 of 13
(4,204 Views)

Have you tried slowing down the communication? You may have an "iffy" cable, or noise being injected into the cable. Does the same thing happen if you use, say, a simple serial communications program?

0 Kudos
Message 9 of 13
(4,194 Views)

After LabVIEW updates and the problem started I place a spy hanging on the line of communication and the data are good, no noise.

I test with simple serial communication between two computers. If the data has more than 10 characters and at least one FF. When reading adds an extra FF.

0 Kudos
Message 10 of 13
(4,188 Views)