Jump to content

Xnode Dirty Dot


jacobson

Recommended Posts

A while ago I developed an Xnode that has an ondoubleclick ability which opens up a configuration window. I noticed that every time that ability was called, even if you immediately closed out of that configuration window that it would produce a dirty dot in the owning VI. This seemed to happen with the ondoubleslick and onoperateclick abilities even if there were no replies or added code to the abilities themselves. I attached my Xnode which demonstrates this behavior. 

 

I was wondering if there was any way to prevent a dirty dot in the owning VI if nothing has changed in the Xnode's state or generated code.

 

-Matt J

Random Xnode.zip

Edited by jacobson
Link to comment

All I can say is you're not crazy, and there probably isn't anything we can do about this.  I modified your OnDoubleClick2 in the hopes that adding a cancel output, which would then not add any states (like get terminals and redraw), but as you stated the dirty dot appears even if you don't add those states.  

 

Next I looked at the VI property Modifications >> Block Diagram Mods Bitset, this tells you what on the block diagram is unsaved.  If the value is 0 then there are no unsaved changes.  This value is still 0 when the OnDoubleClick2 VI is ran, so the bit is being set after the OnDoubleClick is done running, which to me means there isn't really anything we can do about it.  The second time I double click the XNodes it does have a non zero value, meaning it is reading the bit sets on the calling VI.  But even if we were able to clear those bits indicating a modification was made, those bits aren't set until after the VI runs.

 

Oh and another thing I checked was maybe in newer versions of LabVIEW there was an OnDoubleClick3 which fixes this, but in 2015 there isn't.

Link to comment

Thanks for the input. I kind of expected that we wouldn't be able to change that behavior because some of the LabVIEW Xnodes do this but I figured I would ask since my Xnode is much simpler than a lot of the ones used in the development environment.

 

Looking forward to the presentation next week hooovahh.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.