08-25-2014 02:02 PM
hello,
LV2013
When i use "create snippet from selection", why this snippet does not keep the original value of "vi properties / allow debugging" ?
If the original VI has "allow debbuging" OFF ... the snippet changes the value of "allow debbugging" to ON. Why ?
Is this a small bug ?
(Sorry for my bad english, i do my best.)
Solved! Go to Solution.
08-25-2014 02:17 PM - edited 08-25-2014 02:21 PM
What is the property of the VI you are dropping the snippet into BEFORE you drop the snippet into it?
A snippet is a portion of code, it isn't a VI in itself, so I wouldn't expect it to carry along VI properties.
08-25-2014 02:18 PM
I'd say not a bug, but rather it is an ill-defined operation.
Whereas a snippet does use a VI to transport code from one BD to another, the fundamental operation is to move the code itself, not any underlying settings from one VI to another. I do not expect copy and paste of code from one VI to another to change any settings of either VI, and snippets are just adding a more persistent "clipboard". In fact, I would argue it would be quite confusing if adding code to a VI changed these settings.
08-25-2014 02:27 PM
Yup expected behavior. If you wanted to share a VI then share that VI not the snippet. But to be fair a VI is embedded in the PNG file so I'd be interested if the extracted VI contained these properties from the original VI.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
08-25-2014 04:33 PM
@ RavensFan
What is the property of the VI you are dropping the snippet into BEFORE you drop the snippet into it?
A snippet is a portion of code, it isn't a VI in itself, so I wouldn't expect it to carry along VI properties.
Indeed, you are absolutely right.
I had not thought of this way of seeing things.
+1