03-20-2024 04:22 PM
Hi, new to labview here I'm writing a program that has a resistor (R1) decrement by 10 each time for 10 iterations the program runs and is then plotted on a waveform graph but no matter how i try to get it to work it never does -10 for each iteration of the loop, the best i could get it to work was to do all 10 loops at once leaving me with 10 version of a -100 rather than -10 for each version. Any ideas?
Solved! Go to Solution.
03-20-2024 04:42 PM
forgot to add what I've done so far as reference to what I am running now.
03-20-2024 07:12 PM
Try putting everything into one FOR loop instead.
(Also place the controls before the loop, because they should probably not change during the iterations. Please use graphical code, not formula nodes....)
03-20-2024 07:19 PM
03-20-2024 07:38 PM
Yeah that works great! Thanks a ton you saved me a massive headache, one small question though, when I tried to use a minus with the shift register it just spat out the same value over and over was it because I had the constants inside the loop?
03-21-2024 02:26 AM
You wired to the outside of the shift register, so you only get the final scalar result. I wired via an autoindexing tunnel, giving me an array of all values at the end, one for each iterations.
This is all beginner stuff, so make sure to go over the basic learning resources listed at the top of the forum.