Discussion:
Strange undo behavior
(too old to reply)
wd8ivl
2008-07-17 18:40:07 UTC
Permalink
Hello list,
I have the Tools>Options>Enviornment>Maximum Undo Steps per VI set to 99. If I create a new vi, or open a sub vi of my main vi, I can undo all I want (haven't tried all 99).
But in one of my Main VIs (that has a bunch of subVIs), I only have one undo step. After that, ctrl-z is dead and the Edit Undo pulldown turns grey.
This Main VI has been edited on several PC's (all running LV8.2).  Could this have anything to do with it?
Mike
JoeLabView
2008-07-18 12:10:05 UTC
Permalink
The undo list is not related to the fact tht a vi has been edited over a number of different PC's.
 
There are cases where the undo list is cleared (after a save).  And cases where items cannot be undone.  I can't remember specifics, but I have noticed a pattern.
 
I think if you have the configuration set to automatically save before running the vi that it will clear the undo list.  I'll try to pay more attention to the cases and post here (if I can remember) ;)
 
R
johnsold
2008-07-18 12:40:07 UTC
Permalink
This post might be inappropriate. Click to display it.
JoeLabView
2008-07-18 12:40:08 UTC
Permalink
Thanks for the list Lynn.
Wiebe@CARYA
2008-07-18 13:17:03 UTC
Permalink
Post by wd8ivl
This Main VI has been edited on several PC's (all running LV8.2). 
Could this have anything to do with it?

That shouldn't matter. But as soon as you save a vi, there are no more
undo's. The undo steps are not stored, and once you save the nr. of undo's
is 0.

I've noticed that sometimes the undo's are reset after a sub VI changes.
E.g. if a connector pane of a sub VI changes, all callers of the subVI
cannot undo any previous steps. It doesn't always happen, but every now and
then (when it's least convenient) it happens. It's too random to dig into...

Regards,

Wiebe.
wd8ivl
2008-07-18 13:40:06 UTC
Permalink
Hello list.
I appreciate the input from all of you.
What I see it that I can drop multiple controls or indicators on the front panel, or drop multiple functions (like +, -, =, or even subVI's) and then immediately try to undo them, I can only undo the last one I dropped. It's the same with wires...I can only undo the last wire I placed or moved, and I can only undo the last thing I deleted.
Mike
Wiebe@CARYA
2008-07-18 14:55:59 UTC
Permalink
Something must have corrupted something...

What happens when you copy paste everything in a new VI? Or when you save
the VI as a different VI?

Do you have specific nodes in your diagram, like FPGA xnodes, variants, type
defs, strict type defs, etc? What happens if you delete them?

If the VI has been editted on different PC's, are the all the same versions,
or do they differ (e.g. 8.2.1 and 8.2 can open each others VI's, but might
have caused the corruption).

Regards,

Wiebe.
wd8ivl
2008-07-18 14:40:09 UTC
Permalink
Wiebe,
Thanks for the reply...
Since I started writing it, passed it off to someone else, and then got it back, I'm not at all sure what the other guy (a college kid new to LV) may have done to it.
If I copy it to a new file name, it still has the problem.
If I copy and paste it to a new vi, it still has the same problem.
All of the LV versions are the same...installed from the same CDs.
All of the source VIs are stored on the company network, so the project and all of the VIs get loaded from the same place.
I can live with it...because I don't make many mistakes so I don't need the undo that often (HAHA)...but it's bugging me.
Mike
skorskor
2008-08-05 14:40:05 UTC
Permalink
The exact same thing started happening to me yesterday, I can only undo one step, regardless of what that step is (like you were saying, even moving wires). I can't figure it out, and it's driving me nuts!
Wiebe@CARYA
2008-08-05 17:10:02 UTC
Permalink
You can always try if deleting the ini file helps. (If you make a backup
first, you can copy paste stuff back untill the problem reoccurs. Remember
to close LabVIEW before saving the ini file, or LV will overwrite your
changes).

Regards,

Wiebe.
Mythilt
2008-08-05 17:10:06 UTC
Permalink
Check Tools->Options->Environment and make sure that Maximum Undo steps isn't accidently set to 1.
 
Edit:
Oops, just saw in the Opening post that you set it to 99.  Does it have the same effect when you set it to default or 10?  99 might be over a limit or something.Message Edited by Mythilt on 08-05-2008 12:54 PM
wd8ivl
2008-08-05 19:40:05 UTC
Permalink
Jon D,
 
I can set the undo to any number, but only in this one vi (the main vi of my program) I have only one undo.  The subvi's all have multiple undos, and other vis I open have multiple undos. 
 
And if I open this one vi on other PCs, it still has only one undo...
 
Strange!
 
Mike
 
 
Brian_A
2008-08-06 19:10:06 UTC
Permalink
Hi All, As was mentioned earlier in this thread, there are a few known instances, and possibly some stranger unknown ones, where the Undo list is cleared.&nbsp; There was a fix applied in <a href="http://www.ni.com/labview/" target="_blank">LabVIEW 8.6</a> to try to address this issue.&nbsp; Hopefully the behavior you are seeing is now fixed in 8.6!&nbsp; And I apologize for any inconvenience this has caused. Cheers,
wd8ivl
2008-08-07 12:40:07 UTC
Permalink
Brian,
&nbsp;
So I guess the undo list is somehow tied to the VI, and this particular VI will not allow an undo list greater than one item.&nbsp;&nbsp; Strange...
&nbsp;
Thanks,
Mike
skorskor
2008-08-07 13:10:05 UTC
Permalink
Just curious Mike - what is the function of your VI? Mine is using ActiveX to&nbsp;work with some&nbsp;Excel spreadsheets, in LabVIEW 8.5.
wd8ivl
2008-08-07 13:10:06 UTC
Permalink
It's the main vi of my application.&nbsp; It's got about 200 subvi's in it...and all of them can have multiple undos...but the main has only one.
&nbsp;
Mike
&nbsp;
&nbsp;

Continue reading on narkive:
Loading...