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

Using existing VI as a Sub VI

$
0
0

Hello everyone,

 

I am trying to use a VI that is used to control motors, totally functional right now. However I need to use it as a Subvi in my project, as it will have to be used in parallel with other hardware. As the VI is not of my authority I posted a screen shot only of how it is structured.

 

I have been trying to send data from a very simple VI to understand how to control the flow of the data between both VI's. From what I understood the while loop is a problem for me. Each time I press a button that accesses the subvi, it stays there forever. However, after removing the while, it doesn't do anything.

I tried using references and I was able to use one of the controls from the main vi. But then I don't understand how to change numbers of values.

 

I don't need to use the whole VI. Basically I need to send the "distance" for the motor to move, start moving and stop when it reaches there. Lately I need to use other sensors in parallel.

 

Anyone has some suggestion for what I should do or look for?

 

Thank you in advance!


Viewing all articles
Browse latest Browse all 69371


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