LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Automatically removing header segments from the existing LVM file

Hello,

I have a LVM file containing sampled data of two channels (sampled at a the same rate of 100Hz) without x values(time) with many header segments.I wonder is it possible

1) to change automatically (not manually because it contians so many header segements) the LVM file such that it contains only first header while removing all other header segments.

2) how to add x(time) values to the existing LVM file

Thanks.

 

0 Kudos
Message 1 of 7
(3,675 Views)

Addressing your questions in order: 

1. No

2. No

 

You can write a small program that reads the file and resaves it in whatever format you desire.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 2 of 7
(3,655 Views)
Why didn't you save the timestamp data in the first place?
0 Kudos
Message 3 of 7
(3,639 Views)

Hi GoviRe.

 

 

There is no easy way of doing this. I would recommand you to follow mikeporter's suggestion: Write a small application in LabVIEW, that reads in the file, manipulate the data in the way you want, and then save the data to a file again.

 

You can also try to post your file here, or a sample file, and we can try to help you.

 

Best Regards

Alex E. Munkhaus
Certified LabVIEW Developer (CLD)
System Engineer
0 Kudos
Message 4 of 7
(3,610 Views)

Hello,

Thankyou all for your suggestions.I am not sure of how to do this.Can someone help me otu with the labview implementation for the atatched file.

 

0 Kudos
Message 5 of 7
(3,601 Views)

Read the entire file as one long string. Now search for the start of each header. You'll notice that each header starts with "Channels". No delete the line where you found the start of the header and the following 9 line (a header is 10 lines long).

 

Repeat this process until you find no more headers.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 6 of 7
(3,575 Views)

Hi GoviRe.

 

 

Have a look at the attached code Smiley Happy

I haven't verified the output file, I will leave that up to you.

 

Best Regards

Alex E. Munkhaus
Certified LabVIEW Developer (CLD)
System Engineer
Download All
0 Kudos
Message 7 of 7
(3,532 Views)