05-04-2020 05:00 AM - edited 05-04-2020 05:09 AM
Hello,
I have a programm that works at finite sample mode, but will not when I use continuous mode. As far as Im concerned the difference between the two modes are how they acquire the data samples - the continuous mode continues to run even after the required samples are logged, correct? Meanwhile the finite mode will only acquire a certain number of samples set by the number of samples to read. Is there anything else I have to change?
Do I have to put my daqmx read vi in a loop? (for example I would like to let my programm acquire data for only 1s, how do I do that? Right now I have set my programm with sample rate 100kHz and # of samples 100k, in order to get my duration of 1s)
Maybe someone here will have an idea, would appreciate any help!
Jun
Solved! Go to Solution.
05-04-2020 05:08 AM - edited 05-04-2020 05:14 AM
Hi Jun,
so there is a problem in your VI, but you cannot attach this VI?
Which kind of help do you expect then?
@Jun_l wrote:
I have a programm that works at finite sample mode, but will not when I use continuous mode.
Before editing your message you had an "error -20077", but you surely meant "error -200077": invalid value for a DAQmx property.
Even after editing the message the VI is still missing…
05-04-2020 05:16 AM - edited 05-04-2020 05:17 AM
Hi GerdW, sorry I seem to have messed up here and somehow added my next question in the edit message column, now my first question is gone - which was how my programm stopped running after forced shutdown despite same settings. I managed to solve it by changing the mode from continuous mode to finite sample (which is my original code).
Hence my second question (again):
I have a programm that works at finite sample mode, but will not when I use continuous mode. As far as Im concerned the difference between the two modes are how they acquire the data samples - the continuous mode continues to run even after the required samples are logged, correct? Meanwhile the finite mode will only acquire a certain number of samples set by the number of samples to read. Is there anything else I have to change?
Do I have to put my daqmx read vi in a loop? (for example I would like to let my programm acquire data for only 1s, how do I do that? Right now I have set my programm with sample rate 100kHz and # of samples 100k, in order to get my duration of 1s)
Attached is my vi.
Sorry for the mix up!!!!
05-04-2020 05:24 AM
Hi GerdW, there was a mix up before I posted my second question in the edit button:
my first question is solved: I had continuous mode on instead of finite samples, which is my original code. I have another question but will post it on a new thread instead..