LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

code snippet problem: creates wrong snippet

I had a small code example and then created two subVIs from the example.  When this was done there was some cleaning up of the sub VI code that had to be done where I mostly cleaned up some pathways and labelling for clarity.  Then I selected the code on the block diagram of the sub VIs (one at a time) and created a code snippet of the new code on the block diagram.   The code snippet shows a png file of the original code!  I thought I forgot to save the file or some such nonsense and went back into the sub VIs and brought them back up and saw that the block diagram had all the changes that I incorporated!  I saved everything again and restarted my LabVIEW 2009 software and created another code snippet:  still the original block diagram is saved to the snippet and I cannot even see that block diagram anymore.  In desparation I made everything into a small project and tried again to no avail.

 

Am I dealing with a bug?

0 Kudos
Message 1 of 4
(2,914 Views)

Hi

 

Hard to say what can be causing this without knowing what is in the VI. There is a documented problem when trying to use snippet with property nodes so that could be one thing. Would it be possible for you to post your VI and a snippet? 

 

Best Regards

 

David

NISW

0 Kudos
Message 2 of 4
(2,886 Views)

It is a small snippet and it does contain property nodes, a local variable and semaphores to demonstrate resource sharing.

 

Egads!  I just realized that a code snippet does not do what I thought!  I really thought that a snippet was a png screenshot, but the IDE is doing more than that.  It seems that it is trying to show much more than a simple screen shot!  This does seem like a strange thing to do unless I can embed a snippet of code into another VI and actually run it - is that the case?

0 Kudos
Message 3 of 4
(2,873 Views)

hounddog wrote:

It is a small snippet and it does contain property nodes, a local variable and semaphores to demonstrate resource sharing.

 

Egads!  I just realized that a code snippet does not do what I thought!  I really thought that a snippet was a png screenshot, but the IDE is doing more than that.  It seems that it is trying to show much more than a simple screen shot!  This does seem like a strange thing to do unless I can embed a snippet of code into another VI and actually run it - is that the case?


Yes just drag it into a diagram.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 4
(2,866 Views)