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

Calling a SubVI without providing a reference to the objects inside the SubVI?

$
0
0

Hi all,

 

Suppose I have a SubVI that plots Y1 vs. X1 and Y2 vs. X2 on the same XYGraph. See the attachment.

The XYGraph property node is linked to the XYGraph. It sets the line width and point style for each curve on the XYGraph.

 

If I call this SubVI 4 times in another code (to make 4 diferent XYGraphs (XYGraph1, XYGraph2, XYGraph3, XYGraph4, each containing two curves for Y1 vs. X1 and Y2 vs. X2)), 

why would I need to create 4 different references for the 4 different XYGraphs? 

 

The question really is this: if the property node is explicitly linked to the XYGraph in the SubVI, why would the property node need to be updated via a reference if the SubVI is called

multiple times to make multiple XYGraphs? Wouldn't the SubVI take the inputs, plot the curves the XYGraph, update the property nodes and then produce a final XYGraph with

updated properties?

 


Viewing all articles
Browse latest Browse all 66670

Trending Articles



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