Quantcast
Viewing all articles
Browse latest Browse all 69132

Multiple loops in event structure

Hello,

 

I am trying to write a program that uses data from an overhead camera to drive a differentially steered robot around a track. I'm new to LabVIEW and I have a question with getting the event structure and while loops to work like I would like. My code currently has three while loops running in parallel, one to process the image into the needed data, one to use that data to locate the robot and the last one to provide commands to the robot. I am trying to add in a calibration subVI that will recalibrate the camera upon start up and whenever the user clicks the calibrate button. Basically I would like to stop/pause the three while loops then run the subVI, then start the loops back up using the updated data from the subVI. 

 

I was thinking that an event structure would be the best way to accomplish this but I can't seem to get it to work properly. I have provided a dummy version of the main VI. If anyone could point me in the right direction on how to do this and also if anyone knows a good place for tutorials for this kind of thing that would be great.

 

Thanks in advance

~Nick


Viewing all articles
Browse latest Browse all 69132

Trending Articles



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