07-20-2009 08:19 AM
07-20-2009 08:36 AM
Hi irfocus,
how do you call your vi? Normally if you didn't change the vi options, then it should work as you expect. Do you use a loop inside your sub vi? If yes, then you should initialize the shiftregister.
Can you upload you vi?
Mike
07-20-2009 08:39 AM
Hi irfocus,
usually vis are set to not appear on call. You probably set the vi properties to "show frontpanel on call" and "close FP afterwards". Turn both items off!
Second:
Your problem of "non-initialized control" seems related to the use of shift registers. But without seeing any code we can only guess what's wrong. So please attach your vi!
07-20-2009 08:39 AM
Firstly, to avoid your subVI became visible when is called, uncheck "Show front panel when called" available in the VI properties (right click on icon of SubVI), Category : Window Appearance then select Custom then press "Customize..."
For your problem about initialization, it depends on your code:
- Do you use Shift register and if yes, think to intialize these if you want always the same conditions to the start of calculation.
- Do you use global variables as entry of your calculation?
- ... to see with your code