LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

data acquisition..........reading input with execution highlighting

Solved!
Go to solution

To me synchronisation means input and output tasks would start at the same time and each output value is read at input at same phase. I agree that @2Ms/s for every 8 samples generated 1 would be read. So does it mean that I would lose 7 samples ? or would I run into the buffer overrun as the read vi is slower than output vi  ?

Rajnikant Singh
Iowa State University (Research Assistant)

0 Kudos
Message 21 of 29
(1,561 Views)

You don't "lose" the samples, the output still clocks out all the samples at 2 MHz.  The input only clocks samples in at 250 kHz though, so your input buffer won't have a point for each of the output samples.  You won't have a buffer overrun/underrun.

 

 

Best Regards,

John Passiak
0 Kudos
Message 22 of 29
(1,551 Views)

"so your input buffer won't have a point for each of the output samples"

 

Then what happens when the input buffer doesn't have a point for each output sample. ?

Rajnikant Singh
Iowa State University (Research Assistant)

0 Kudos
Message 23 of 29
(1,548 Views)

I'm not sure I follow.  The sample is still generated, but you don't read that particular sample back in.

 

Best Regards,

John Passiak
0 Kudos
Message 24 of 29
(1,545 Views)

so I would lose the samples ? then coming back to original question How would I read all the samples without losing them ? 

Rajnikant Singh
Iowa State University (Research Assistant)

0 Kudos
Message 25 of 29
(1,528 Views)

I still don't follow your question.  You don't "lose" the samples--they are all still generated.

 

Obviously you won't read a sample for each one generated if your input sample clock rate is a fraction of your output sample clock rate, if this is what you mean by "losing" samples then you would just make both output and input task run at the same rate.

 

 

Best Regards,

John Passiak
0 Kudos
Message 26 of 29
(1,516 Views)

To me losing samples meant not reading all the samples which are being generated, so I wanted to know if I can read all the samples generated ?

Rajnikant Singh
Iowa State University (Research Assistant)

0 Kudos
Message 27 of 29
(1,508 Views)
Solution
Accepted by raj_iastate

You will read samples at the rate you specify for your input task.  You will generate samples at the rate you specify for your output task.  If you want to read every sample generated exactly one time then these clocks need to be at the same rate.

 

 

Best Regards,

John Passiak
0 Kudos
Message 28 of 29
(1,505 Views)

Thanks for all the answers

 

Best Regards

Raj

Rajnikant Singh
Iowa State University (Research Assistant)

0 Kudos
Message 29 of 29
(1,489 Views)