LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

default value

Hi i have 3 vi's... the problem is that is i need to set it to default value at first..

for example:

i have a , b and c vi's.

let say i start from a to b..the b vi will have the default value... then from b to c .. c will have the real data

let say if i go back to the page b from c it should show the value which i get from c..

 

it somethg like this a to b(default value)

                               c to b( real data)

 

how this can be done? plz help

0 Kudos
Message 1 of 3
(2,606 Views)

Your description is not clear.  How are you calling these 3 vi's?

 

Is one or more of them a subVI being called within the others?  How is the real data being passed in?

 

If you have a subVI and it has controls that are connected to the connector pane, if when you use the subVI you wire to the connector pane of the subVI icon, data gets passed in.  If the terminal of the subVI is unwired, then the subVI uses the default value for that control as it is stored in the subVI.

0 Kudos
Message 2 of 3
(2,588 Views)

jeyanthi wrote:

 

let say i start from a to b..the b vi will have the default value... then from b to c .. c will have the real data

let say if i go back to the page b from c it should show the value which i get from c..


Are you working with VIs or Tab Pages...?!

 

If VIs, then you can use the Method "Default Values:Reinitialize All To Default Method" from the Application Control palette.

If it is a Tab Control, you have to use the Pages reference property & then index all the Controls' references inside a For loop & use the method for Controls to Reinit them to default values.

 

See the attached pics.

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 3 of 3
(2,575 Views)