HI - People I´ve a question... 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
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
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.