08-10-2009 01:15 PM
As described by Darren I tried to create an Undo action:
But unfortunatly the Referenced VI does not show an 'Undo' action named CCT:Clean Up.
Anyone got this working?
Ton
08-14-2009 06:03 PM
I'm kind of having the same problem. See the two threads referenced below.
http://decibel.ni.com/content/thread/3661?tstart=0
http://decibel.ni.com/content/thread/3611?tstart=0
Are you running this from the JKI RCF or just as a stand alone script?
08-15-2009 03:49 AM
Hi Ed,
No, I run this code clean, but nothing happens somehow.
Ton
PS the URL you typed are correct however the HTML code sends you to the wrong page, here are two correct links, 1Undo Oddness and 2Relink to VI problem.
Allright there is a serious bug in the URL insertion of NI, it strips out the 'content' part of the URL...., used the 'Browse history' feature
10-02-2009 08:28 AM
Is anybody able to show code (in 8.6) that creates a good undo record?
Ton
10-05-2009 12:23 PM
This is a bug with the BD.Cleanup method of the VI class...for whatever reason, calling this method, even inside an Undo transaction, fails to create the transaction, and erases the Undo stack. I have filed CAR# 190202 on this issue. The problem occurs in both LabVIEW 8.6 and 2009. The workaround is to call the Clean Up Diagram method of the TopLevelDiagram class instead:
-D
10-06-2009 12:52 AM
Thanks Darren,
I will try this out later.
I have tried this out and it works like expected.
If I read your post correctly, no 'undo' on the VI reference is correctly interpreted, or is this only valid for 'CleanUp'?
Ton
10-06-2009 10:27 AM
You should be able to undo other actions on the VI class just fine. It's just the BD.Cleanup method that doesn't work with undo transactions properly...
-D