LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Unwanted data row in file

I've created two vi's that write a header and then write data under the headers. Both vi's use the same code to collect the data. The difference is in the creation of the headers and the naming of the channels in the choose channel vi. The choose channel vi produces an unwanted row of data under the header which happens after the header information is written. I paused the program after the header information was written and it wasn't there yet. Is there something that I'm missing when naming channels that may cause this?
 
Thanks for the help.
Download All
0 Kudos
Message 1 of 7
(3,093 Views)

I know some folks have looked at this without responding. Do I need to add more information? Has anybody gotten the same results that I did?

Any help is appreciated.

0 Kudos
Message 2 of 7
(3,060 Views)

The problem resides in the sample rate and the wait millisecond function. If I increase the samples being read in choose channel.vi  to 10000, rows of 0 do not show up. If in turn I get rid of the wait millisecond function rows of 0 show up everywhere using a rate of 10. Using a sample rate of 10 and a 200 millisecond wait a only get the row of zero at the beginning.

Any suggestions on how to get rid of the first row of zero and make sure I'm not losing any data?

Thanks

0 Kudos
Message 3 of 7
(3,045 Views)
This looks like a simple timing issue. If you force the wait to occur sequentially it should eliminate the problem:




Message Edited by smercurio_fc on 05-29-2008 03:54 PM
0 Kudos
Message 4 of 7
(3,029 Views)
We created a wait with error to streamline the placing the wait in line with other vi's.

Edit: And the wait won't wait if there is an error.


Message Edited by Drewski on 05-29-2008 05:04 PM
0 Kudos
Message 5 of 7
(3,018 Views)
Thanks.
 
I will experiment with these in the morning and let you know how they work out.
0 Kudos
Message 6 of 7
(3,004 Views)
Thanks guys. The sequence step worked. I wasn't able to view the other solution since I'm using 7.1. Once I upgrade I will take a look at it.
0 Kudos
Message 7 of 7
(2,979 Views)