02-24-2017 04:36 AM
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!
02-24-2017 06:12 AM
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!
03-02-2017 10:29 AM
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.