LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ni6000 Aanalog Input problem

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.

 

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

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

0 Kudos
Message 2 of 3
(1,036 Views)

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. 

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