LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

two vi in one vi

HI - People
I´ve a question...Smiley Sad and a problem
I had created a vi for calculation/counting.
If i put it once in an other vi -> no problem, it runs ok.
if i put the same vi a second time in my vi, the results of each calculation vi will be wrong. (same result for both)

How can i change the variables of the calc-vi, that it is possible to use the calculation-vi twice or more in an other vi




0 Kudos
Message 1 of 5
(3,031 Views)
Have you specified any terminal to the connector pane of your sub VI?
On the block diagram of your calling VI:
Did you wire any values to terminals of the sub VIs?
 
If you haven't specified any terminals to the connector pane of your sub VI it will use the default values for each control on the front panel when called. This would explain what you see.
Regards, Guenter
0 Kudos
Message 2 of 5
(3,018 Views)

You should post your code so that people here have a more clear understanding of your problem and can provide you with better answers.

Good luck

Jeff


Using Labview 7 Express
Message 3 of 5
(3,015 Views)
Does your calculation subVI use shift registers?  It sounds like you might need to make your subVI reentrant; go into the VI properties, find the Execution category, and check the "Reentrant execution" box.  As others said, however, it will be easier to give you a good answer if you post your code.
0 Kudos
Message 4 of 5
(3,010 Views)
    nathand your are right. Thanks for the information

ThoFu:manwink:
0 Kudos
Message 5 of 5
(2,959 Views)