01-06-2015 03:48 PM
Oh no - I was hoping to be able to avoid this ClassName-string CaseStructure-thing...
Would there be any issue with data types other than numeric in terms this reverting to a "standard representation"? For string possibly the different display styles or something?
01-07-2015 06:22 PM
I put together a version of this plugin that shouldn't have any issues with the new item losing configuration. I apologize for the code messiness and lack of comments, I only had a little while to put this together.
It's saved in LabVIEW 2013. Place these files in your Quick Drop plugins directory. The default shortcut is Ctrl-J.
01-08-2015 04:34 AM
Nice one! Had trouble understanding the temporary CTL, but that's really smart stuff!
01-08-2015 11:55 AM
Thanks. The smarts of the scripting code came from my colleague AristosQueue... I just massaged his code into a Quick Drop shortcut.
01-10-2015 06:08 PM
Just found out that the new shortcut VI had trouble with Arrays existing TypeDefs. It can convert TypeDefs into an array no problem, but the reverse action gives an error 1154 when trying to replace the array with the array element from the newly created object in the temporary CTL... I inserted a case structure that passes the path of the TypeDef instead of the temporary CTL path whenever this function has to deal with an array of a TypeDef. Seems to do the trick.
Please find the llb with the modified subVI in question ("Execute Change To Array Or Element.vi") attached. Replace it with the existing "_ChangeToArraySupport.llb" in the "LabVIEW 201*\resource\dialog\QuickDrop\plugins" folder.
01-12-2015 01:08 PM
Thanks for discovering the issue and posting a fix, comrade.