LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Scan From String Problem

Hi everyone,
I am very new to the LabVIEW scene and have been set with the task as a part of my thesis to create a system that displays and records a bunch of data from sensors fitted in an aircraft. The data is transmitted serially at 500Hz and is in the form <header 3bytes (AA55AA)><Identfier 1byte><data 10 x 2bytes (10 channels)><end 1byte (FF)><checksum 2bytes>.

I have managed to capture the data and successfuly parse out each of the 10 channels. But i'm experiencing a problem with scanning from the incoming string. Initially when I run the program it works fine with all the data being placed in the appropriate text boxes and updating. However channel 1 (only testing one channel input) after about 2mins of operation starts to become selective about the second byte of data that is displayed. i.e normal operation would be channel 1 displaying say A102, A109, A104, A10A in hex. As the operation continues it will stop displaying some values of the second byte i.e. if the same string were to come in on channel 1 again it will only display A102, A1  , A104, A10A. This will continue to progressively get worse as it continues to run. say A102, A1  , A104, A1  .

I have included my vi, there may be some error that I haven't picked up on but as far as I know I can't see any reason for this bizzare error to result. Any help would be greatly appreciated.

Stirling


0 Kudos
Message 1 of 7
(2,633 Views)
I forgot to add that this is running on LabView 8.2.1 on Windows 2000. I have not installed any service packs onto the operating system as of yet (if that has been known to cause problems). Thanks again
Stirling
0 Kudos
Message 2 of 7
(2,631 Views)

I think everything should work fine.

i have done a small change using in the code just try it out.

if problem persist then it will be better if you record the data from serial port (say for 5-10 mins) in a text file and then post that file on forum. may be we can help you out in better way

Message Edited by Tushar Jambhekar on 04-05-2007 04:25 AM

Tushar Jambhekar
tushar@jambhekar.com

Jambhekar Automation Solutions
LabVIEW Consultancy, LabVIEW Training
Rent a LabVIEW Developer, My Blog

0 Kudos
Message 3 of 7
(2,625 Views)
Thanks for your help Tushar,
However I have been able to duplicate the problem by using a string input in place of the serial aquisition, it seems it refuses to display 0A 0C and 0D. I have made some further modifications to the code to continue progressing so please ignore the mess in the block diagram. I have enclosed a picture of these hex characters dissapearing on me.
Thanks again!
Stirling

Message Edited by stirlsilver on 04-08-2007 12:11 AM

Download All
0 Kudos
Message 4 of 7
(2,600 Views)

0 Kudos
Message 5 of 7
(2,584 Views)
try to use this
may work...
and let me know the feedback

Tushar Jambhekar
tushar@jambhekar.com

Jambhekar Automation Solutions
LabVIEW Consultancy, LabVIEW Training
Rent a LabVIEW Developer, My Blog

0 Kudos
Message 6 of 7
(2,548 Views)
Maybe we should keep everything in one place to avoid duplicate answers and efforts:
 
 
0 Kudos
Message 7 of 7
(2,541 Views)