LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQ read freezing

Get rid of the DAQmx Property nodes:

  • You are not using the available samples per channel
  • In your Read you specify 150 points, so total samples seems unneeded. The total samples is the number of times the loop ran * 150, you can use the index in the while loop, just add 1 and multiply by 150 for total points.
  • If the example VI ran without issues, then probably not a device or driver problem.

Keep that loop as simple as possible for testing.

Message 11 of 12
(102 Views)

Just did what you suggested. I put the equations in a parallel loop, removed properties and only keep state machine equations in the loop. 

 

It seems to run smoothly for now. Will need to do real testing in the lab to be sure. I just don't like having to use queue to transform the data and then notifier to plot them... Would have preferred using less intermediate step as possible since the plot need to be " real time". 

 

Any how, it's still unclear why the -1 worked without freezing before doing any modifications.

 

Thanks for your help! Will test that in the lab soon. 

0 Kudos
Message 12 of 12
(95 Views)