Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69331

How to reset a while loop based on a value change event?

$
0
0

Hello all,

 

I'm working towards a labview program that sends voltage out of a laptop via USB 6008, the voltage is amplified by an op-amp, then it comes back into the laptop. I've created a working circuit and program, but my current challenge is how to reset the average of the voltage values coming into the laptop after the user changes the numeric control (which controls the voltage going out). In other words, I need to be able to reinitialize the sum and iteration count to 0 every time this occurs.

 

I've looked up resetting of iteration counters via shift registers, but I'm not sure that would work in this case, but I'm also not sure how to reset the sum of an array (if possible). I've spent a good deal of time reading these forums and tutorials from various sites, so I think that it can be done with the proper nesting of case structures, event structures, and while loops, but I'm not sure how. I'm new to LV, just started learning it mid-January, so any help is appreciated.

 

Thanks in advance,

 

Graeme


Viewing all articles
Browse latest Browse all 69331

Trending Articles