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

Simultaneous Execution of For Loop and While Loop

$
0
0

Hi guys,

 

I was wondering if anyone could explain to me how LabVIEW runs parts of a VI in terms of sequencing.  I am trying to create a simple sinusoidal signal using the simulate signal block and I want to be able to step up its amplitude in an automated fashion.  To do this I figured I could just use a for loop that increments the amplitude and feeds the new amplitude to the simulate signal block.  When I run it however, the signal does not update the amplitude until after the for loop has been through all of its iterations.  Only then does the signal update with the last value of the amplitude that the for loop had iterated to.  I am pretty new to LabVIEW, so I'm unsure how to change this so that the signal will update in real time with the values the for loops outputs.  I attached a picture of my VI for reference.  I'm not sure if this is even the most efficient way to go about this, so any help is much appreciated.  Thanks!


Viewing all articles
Browse latest Browse all 69083

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>