07-20-2020 07:13 AM
Hello All,
I created one subVI that need to acquire some voltage signals. Hardware is NI 6000 DAQ.
Actually VI works ok, but after some time, indicator freeze. No error is generated.
Vi is in attachment, maybe someone can advise what is going on here.
Thanks.
07-20-2020 07:26 AM
I assume you deliberately wired a True to the Stop terminal of the While Loop, defeating the purpose of the State Machine architecture, so you could "debug" this. The True, of course, should come from inside the Stop condition.
I your DAQmx Timing function, you left Samples/Channel unwired, so it took the default value of 1000 samples. Yet in the DAQmx Read, you specified reading N channels, 1 sample. Change this to N Channels, N Samples and wire in the number of samples (you'll get a different form of output, of course, but you should be able to handle a 2D Array or a 1D Array of Waveforms).
Bob Schor
07-20-2020 07:42 AM
Hello Bob,
yes, stop condition of while loop was just there because I tried some staff...
I set up VI like you said. For now it works. Thanks.
Just for my knowledge, can you please explain why my VI didn't work?
Best regards.