LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

PCI-6534 error in data

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

0 Kudos
Message 1 of 2
(2,597 Views)

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.

 

VI Snippet.png

If you are using LV2009 you can just click&drag the VI Snippet into LV.

 

Thanks!

Message Edited by Morini on 10-22-2009 10:27 AM
-----------------------------------------------------
Dennis Morini
District Sales Manager
National Instruments Denmark
http://www.ni.com/ask
0 Kudos
Message 2 of 2
(2,563 Views)