04-05-2008 10:14 AM
04-05-2008 10:21 AM
Hi neiviv,
what type of data do you initialze? If you set some control values and initialize shift registers you should use a state mashine to do it. Put your initialization in the first called case. Now you can call the case everytime you want reinitialize your vi.
Mike
04-05-2008 10:24 AM
04-05-2008 10:24 AM
04-05-2008 11:16 AM
Hi neiviv,
i´m not sure what you mean. Can you upload your vi?
Mike
04-05-2008 11:35 AM
Hi Mike.
Attachment is a sample of summary VI that i create. At first, i initialize the value for x and y to 5. So everytime when i start to run the program the value is displayed as x=5, y=5.
So, what i wish to do is that i wish this x and y values can always equal to 5 everytime when i rerun the VI(not clicking on the button which stop the while loop, is the arrow button on top of the VI which display run or run continously).
Is it possible to do so?
Thanks once again for ur help.
04-05-2008 11:35 AM
Hi Mike.
Attachment is a sample of summary VI that i create. At first, i initialize the value for x and y to 5. So everytime when i start to run the program the value is displayed as x=5, y=5.
So, what i wish to do is that i wish this x and y values can always equal to 5 everytime when i rerun the VI(not clicking on the button which stop the while loop, is the arrow button on top of the VI which display run or run continously).
Is it possible to do so?
Thanks once again for ur help.
04-05-2008 11:37 AM
Hi Mike.
Forget to tell u that the shift register has nothing to do in changeing the x and y value.
04-05-2008 11:48 AM - edited 04-05-2008 11:48 AM
Hi neiviv,
what do you mean with rerun the vi. If i start your vi, the cursor starts with 5, 5. After restart it, it is again 5, 5. So what do you want to change?
Mike
04-05-2008 02:31 PM
I usually put this in my startup section of code.