LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Triggered acquisition using DAQ assistant PROBLEMS. (LV8)

It seems like every LV guru has gone on vaction except for Paul c. Very dissapointing.
 
Surely someone has made a VI that changes the sampling rate dynamically?
0 Kudos
Message 11 of 13
(686 Views)
Hi Vr6Fidelity,

I'm guessing you have the base package of LabVIEW that doesn't include event structures.  The next best way to do this would probably be using a  case structure to only stop, reset the rate, and start the task when you click on a boolean button.  This means that your task isn't stopping, setting the rate, and starting every iteration of the loop and only when you specifically want the rate changed.  The reason I had the sample clock rate set outside the loop is because I want to start the task at a specific rate and keep it going at that specific rate until the user selects that he wants to change the rate.  This means that I won't be changing the rate every iteration of the loop.  The property node is simply changing the specifications of the task that have been already created outside the loop.  Once inside the loop, it will only change the task property when selected to do so by the boolean switch.  In addition, I have changed the mechanical action of the switch on the front panel to be latch when pressed.  This will make it so when you click the button it will only change the rate once and the switch will go back unclicked.  So, when you click the button, the true case of the case structure will only execute for one iteration of the while loop.

I hope this helps,
Paul C.
0 Kudos
Message 12 of 13
(667 Views)
But I actually DO want to change the rate every iteration. Its only 4 times a second.
0 Kudos
Message 13 of 13
(664 Views)