LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Re-Initialize after rerun the VI

We can initialize the data at the very first time we run the VI. Is it possible for us to reinitialize the VI again after we rerun the VI without closing/restart the VI?
 
Thanks got ur time and info. I do appreciate ur help. Thanks alot
0 Kudos
Message 1 of 20
(3,903 Views)

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

0 Kudos
Message 2 of 20
(3,900 Views)
Sorry for lag information. I am trying to initialize a waveform value(cursor). I can only initialize the value at the very first time only when i run the VI, but after i stop and rerun the VI, i did not work. I wish to make the waveform cursor value intialize automatically everytime i run the VI.
 
Thanks for ur time of reading and helps.
0 Kudos
Message 3 of 20
(3,898 Views)
Sorry for lag information. I am trying to initialize a waveform value(cursor). I can only initialize the value at the very first time only when i run the VI, but after i stop and rerun the VI, i did not work. I wish to make the waveform cursor value intialize automatically everytime i run the VI.
 
Thanks for ur time of reading and helps.
0 Kudos
Message 4 of 20
(3,897 Views)

Hi neiviv,

i´m not sure what you mean. Can you upload your vi?

Mike

0 Kudos
Message 5 of 20
(3,885 Views)

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.

0 Kudos
Message 6 of 20
(3,880 Views)

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.

0 Kudos
Message 7 of 20
(3,880 Views)

Hi Mike.

Forget to tell u that the shift register has nothing to do in changeing the x and y value.

0 Kudos
Message 8 of 20
(3,879 Views)

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



Message Edited by MikeS81 on 04-05-2008 06:48 PM
0 Kudos
Message 9 of 20
(3,873 Views)

I usually put this in my startup section of code.

 

 

0 Kudos
Message 10 of 20
(3,849 Views)