11-16-2009 08:12 AM
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?
11-17-2009 05:51 AM
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
11-17-2009 11:15 AM
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?
11-17-2009 11:36 AM
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