LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a good way to test if it is a headerline, and if so: Remove it?

Perhaps this is written somewhere else on the forum. If so, please direct me towards it.

I am a newbie to LabView. We are doing our final project with this tool, so therefore I would like to know if it is good way to test for headerlines?

We have designed a program that reads strings on the serial port. The string is given from a ADAS unit (It is used in meteorlogic science)

The string is divided into the separate values and logged in a .txt file. But for ca.every 50 string read, we get a line with a value at start and only zero's. (I believe this is the headerline?) The next line is also shifted two times to the left. The data's are there, but not correct hence the shift.

The packag
es recieved from ADAS are given approxomately every 10th second.

If anyone could give me a direction or a hint, I would be most grateful.

Thank you for taking the time to read this question,
best regards,
Flair
0 Kudos
Message 1 of 2
(2,522 Views)

Hello Flair,

There are a few ways you can go about doing this: If you know the precise location of the "headerline," you can "skip" that line when you do the reading.

If you do not know the exact location, you could either check each line as you read, or do a search-and-replace on the entire file replacing the "headerline" with nulls, for instance.

The functions in the Strings function palette should help you with the above.

If you're still having problesm, maybe you can post here a sample input text file with all the details of how you want it parsed, and someone _might_ write a sample VI for you.

Regards,

Khalid


0 Kudos
Message 2 of 2
(2,522 Views)