LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

The generation has stopped to prevent the regeneration of old samples.

Hi. I have made a program where I am sending a sine signal into analog output on the MyDAQ. This output controls a motor and a log the data from analog input 0 and 1 (which are connected to some sensors). This works, but I want to configure the sampling rate to 40Hz per second. From the DAQ assistant VI that receives the inputs, I have "1 sample (on demand)". I tried putting this to N, where I configured "samples to read" =10 and "rate"=40. I honestly don't know what the the samples to read does. I also have a DAQ assistant for the output signal, and it seems like it interferes with the sampling. 

 

Please help me to get a better understanding of the configuration of the sampling in the DAQ assistant.

 

Thank you in advance!

0 Kudos
Message 1 of 3
(3,028 Views)

I see there are some errors in my text.. Here is a fixed version:

Hi. I made a program where I am sending a sine signal into analog output on the MyDAQ. This output controls a motor and I log the data from analog input 0 and 1 (which are connected to some sensors). This works, but I want to configure the sampling rate to 40Hz per second. From the DAQ assistant VI (that receives the inputs), I have "1 sample (on demand)". I tried putting this to N samples, where I configured "samples to read" =10 and "rate"=40. I honestly don't know what the the samples to read does. I also have a DAQ assistant for the output signal, and it seems like it interferes with the sampling. 

 

Please help me to get a better understanding of the configuration of the sampling in the DAQ assistant.

 

Thank you in advance!

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

Hello Kristaje,

 

Please see this forum where a similar question has been asked about the meaning of various DAQ Assitant functions:

https://forums.ni.com/t5/LabVIEW/Samples-to-Read-and-Rate-Hz/td-p/2573525

 

I hope this will help!

 

Adam.

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