LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Setting a Tag of an object is not captured in Undo/Redo

I am working with Tags in VI Scripting and noticed that the changes to the tag (via the Tag.Set Tag Property on a GObject) is not captured in the Transaction.Begin Undo / Transaction.End Undo.  Here is how you can see this in LabVIEW 2015 using the attached VIs (I haven't tried it in newer versions):

 

1) Open all three VIs.

2) Using the "Set Tag VI.vi" set the "String in" control to any value and Run.

3) Notice the Free Label in the "Example VI.vi" changed to that value.

4) Run the "Get Tag VI.vi"; notice the "String out" is that value.

5) Set the "String in" control to a different value and Run.

6) Notice the Free Label in the "Example VI.vi" changed to the new value.

7) Run the "Get Tag VI.vi"; notice the "String out" is now the new value.

😎 In the "Example VI.vi" select Edit-->Undo Tag Set.

9) Notice the Free Label in the "Example VI.vi" changed back to the previous value set in Step 2.

10) Run the "Get Tag VI.vi"; notice the "String out" did not change to the value set in Step 2 but is still the value set in Step 5.

 

Just wondering if this is fixed in newer versions or what peoples' thoughts were.

Quentin "Q" Alldredge

Chief LabVIEW Architect, Testeract | Owner, Q Software Innovations, LLC (QSI)
Director, GCentral | Admin, LabVIEW Wiki | Creator, The QControl Toolkit
Certified LabVIEW Architect | LabVIEW Champion | NI Alliance Partner



Download All
0 Kudos
Message 1 of 2
(2,391 Views)

Hi TheQ,

 

Thanks for posting to the forums!

 

I was able to confirm the same type of behavior in LabVIEW 2017. It looks like the Get Tag VI is updating with the last run value of the Set Tag VI regardless of if the value was changed using an undo in the Example VI. I do not know if this is expected behavior or not, but I can confirm what you are seeing.

0 Kudos
Message 2 of 2
(2,322 Views)