LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
jpi@zodiac

a LabView Option: discard changes that was made on frontpannel programmaticly

Status: Declined

Any idea that has not received any kudos within a year after posting will be automatically declined. 

I think everyoner knows this problem:

 

You maker a VI with a frontpannel and you have some elements on the Frontpannel, like editfield or Listbox etc...

Now in your VI you changes the proppertys of this elements programmaticly. To test your VI you execute it via run in your development enviroment.

After running your VI you get a "*" in your title bar (for changes you made programmaticly). After closing your VI, LV ask you, if you want to save. Now you didn't want to save canges, because you made them programmaticly.

So you can press No, but then ather changes you made will lost!

 

So an Option in LebView: "discard changes that was made on frontpannel programmaticly" would be nice! 

3 Comments
Intaris
Proven Zealot

Some FP changes can affect the code running on the BD (replacing one control with another etc.)

 

I don't see this being as useful as you perhaps think.

 

Now if we had an option to discard "cosmetic" changes (changes which do not affect the actual code - label position, font and so on) then perhaps yes.  Maybe even the option to run a LVMerge on the VI in memory and the saved VI on disk would be nice.  That way we get a dialog to pick and choose what exactly we want to keep.

AristosQueue (NI)
NI Employee (retired)

a) If you do not pass in the 0x2 option into Open VI Reference, there's no tracking of changes.

b) You can use the Begin Transaction and End Transaction methods on the VI so that you can use Undo to roll back the changes when you're done running. LabVIEW does not track those changes by default because recording transaction actions is fairly expensive. It seemed better as a policy to make that opt-in rather than opt-out so that programatic actions had better performance.

Darren
Proven Zealot
Status changed to: Declined

Any idea that has not received any kudos within a year after posting will be automatically declined.