08-03-2014 05:41 AM - edited 08-03-2014 05:42 AM
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.
08-03-2014 07:28 AM
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...
08-03-2014 11:54 AM
08-04-2014 03:02 AM
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.
08-04-2014 04:39 AM
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.
08-04-2014 04:31 PM
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...
08-06-2014 04:33 AM
Hi GoviRe.
Have a look at the attached code
I haven't verified the output file, I will leave that up to you.