02-16-2017 09:05 AM
Hi GerdW,
thanks for all your answers.
I implemented miki121 solution for my 8 inputs, I will have the problem with fast signals, but at least will work for the slow ones.
What I see, is for the project i am working, it doesn´t go out the loop, how can I get out of there?
I will explain the project a little bit, we have two devices ni6008, one is used for the problem described above (counting pulses of a digital input signal) but at the same time we have another ni6008 which measures the voltage on its 8 inputs.
Then we want to record the results in an excel file every second with the 16 values. The problem now, the excel doesn´t save any value because it is still waiting to the values from the pulses (I tried only the voltage ones, and it works saving in excel) but if i add this VI, it never saves. Setting the light to follow where the code goes, it never goes out from the loop, so I can not take the values from there, and then save them in the excel.
Thanks for your answers,
Regards
02-16-2017 09:59 AM
Hi sarcanji,
general advice: when there is a problem with YOUR VI you should attach YOUR VI…
for the project i am working, it doesn´t go out the loop, how can I get out of there?
It seems you need to obey the dataflow…
Ever heard of notifiers or queues? (Or put all DAQmx code into just one loop, but in the end a producer-consumer scheme will serve you better!)