LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial write/read showing only half of the characters

I've been using a SmartFusion SoC and programmed it to print out the characters that it receives, all from the UART/Serial port, using an interrupt routine.

 

The program works perfectly well with HyperTerminal, but when I'm using the example in LabVIEW 6.1, the output box only displays half of the characters, as shown in the attached file. LabVIEW can read a message coming from the program very well so I'm think that it might be an issue with how LabVIEW writes the message to the SmartFusion.

 

Any help will be hugely appreciated, I'll send you cake!

 

(The cake is a l...!)

0 Kudos
Message 1 of 4
(2,627 Views)

I really doubt the issue is with LabVIEW.  I would investigate the SmartFusion side of things.  You are saying it is using some sort of interrupt routine.  It seems to me that is is missing some interrupts.

 

To be sure, connect a serial loopback adapter to your PC's serial port and see how your LabVIEW program behaves.

0 Kudos
Message 2 of 4
(2,614 Views)

Hmmm... it's interesting because it's missing exactly half of the message, with "Sample string" coming out to be "Sml tig" (ie something like "SSaammppllee" comes out as "Sample"). I'll try to get the loopback or a serial scope of sorts working to see what's going on tomorrow, I guess. I guess I can also check to see what goes in SmartFusion by saving a buffer of inputs and breaking the program to see what's going on.

 

Also I've just realised that I've been repeating myself, oh well

0 Kudos
Message 3 of 4
(2,603 Views)

Nevermind, it seems that it's just the way I've programmed the SmartFusion, since they sent me a way to get sample programs and their sample UART program works a whole lotta better than mine, so it seems that it's just because of my subpar programming after all... :S

0 Kudos
Message 4 of 4
(2,578 Views)