10-14-2009 05:31 AM
Hi,
I have the PCI-6534 with onboard memory. I am trying to collect data (16-bit) with an external clock (10 MHz), put them in a buffer, and save them to a file. The program doesn't complain about buffer underflow or anything, so I guess that part is ok.
But when I look in the file with the data 2 things are strange...
1. Everytime a new set of data is added to the file labview writes some dummy data in between the packages (0xFF).
2. Sometimes it seems labview destroys the data. When I look maybe the first 5 MB of data are good and then the next 1 MB is wrong and then it turns good again.
Can anyone explain or has any ideas?
I have attached my VI.
Regards,
Morten
10-22-2009 03:26 AM - edited 10-22-2009 03:27 AM
Hi Morten,
Your code looks ok. I have modifiedthe code a bit, where I have changed the Queue from Variant to the RAW 1D U8 you are reading from the hardware. I have also added a Close File function after the Consumer loop so the File reference now closes after the VI execution. You can try to run this VI to see if tis helps.
If you are using LV2009 you can just click&drag the VI Snippet into LV.
Thanks!