LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Producer and consumer loop writing the same block again and again.

Hi Everyone,

 

I am trying to read data from a NI PXI-5114 digitizer. I am using a producer and consumer loop for writing the data into a TDMS file.

Fetch is used to get the data in blocks from the module. Each block approximately consists of 1048571 samples.

Now the issue is while writing the TDMS, it is writing the same block again again although FETCH is set to "read pointer". Please see the Read_TDMS file.

Where you think it is going wrong??

 

Thanks

Kiran

modified-niScope_Stream_to_Memory-NId.png

Read_TDMSp.png

 
 

 

0 Kudos
Message 1 of 3
(2,168 Views)

Fetch  fetches the latest ..... exactly like playing fetch with a dog.  With a dog, you need to throw the ball AGAIN! or maybe throw a different ball.    

 

What you have done is thrown 1 ball one time . (Trigger) and the dog (Scope) observed that single event.  Then , of course FETCH! gets the same thing again and again and again....<good doggy!>

 

Now that you have had a "V8" moment <kudos to whomever links an "I could have had a V8!" Commercial from YouTube >  fix the trigger problem and use a "READ" instead of a "FETCH"


"Should be" isn't "Is" -Jay
0 Kudos
Message 2 of 3
(2,139 Views)

Hi JpB,

 

Sorry for the delay in reply.

I am new to Labview. I found this program in one of the topic and modified and using it.

I cant find the trigger for ni scope acquisition in the program.

Can you help??

 

Thanks

Kiran

0 Kudos
Message 3 of 3
(2,068 Views)