mdsplus icon indicating copy to clipboard operation
mdsplus copied to clipboard

Add Tag with LabVIEW

Open gronchi opened this issue 2 years ago • 2 comments

Is there a way to add tags to nodes using LabVIEW? There are the 'tree find tags.vi' and 'tree remove tag.vi' in the LabVIEW library, but I couldn't find a way to add tags to nodes.

gronchi avatar Mar 17 '22 17:03 gronchi

I do not think the Labview API supports any Tree Editing operations of which add_tag is one. In general you should not be editing the tree in the course of day to day operations. Tree edits should be done on the model, or well after the fact to ammend previous shots. This is because they require exclusive access to the tree.

Where are you from/working? Feel free to join the MDSplus discord:

https://discord.gg/4gt6RbhHDm https://discord.gg/4gt6RbhHDm

-Josh

On Mar 17, 2022, at 1:00 PM, G. Ronchi @.***> wrote:

Is there a way to add tags to nodes using LabVIEW? There are the 'tree find tags.vi' and 'tree remove tag.vi' in the LabVIEW library, but I couldn't find a way to add tags to nodes.

— Reply to this email directly, view it on GitHub https://github.com/MDSplus/mdsplus/issues/2455, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABY5AZJGVIRQDKRB2I5TNLLVANQJ7ANCNFSM5Q7N7AZA. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you are subscribed to this thread.

joshStillerman avatar Mar 18 '22 00:03 joshStillerman

It actually supports tree editing: you can build an entire tree with substructures and nodes from scratch in LabVIEW by using "Tree Create (Mode)", "Tree Add Node" and "Tree Set Default". But I totally agree that it's better to use a prebuilt model tree during operations instead of creating it on the fly in LabVIEW.

gronchi avatar Mar 28 '22 22:03 gronchi

Please use other tools for tree edititng

In general, you do not want to edit the trees on the fly in a multiuser environment

joshStillerman avatar Mar 29 '23 19:03 joshStillerman