07-30-2020 04:38 AM
Hey Guys,
I want to drag the desired tree item from the tree structure and drop it on the string control.
It's happening when the labview is not running.
But it's not happening when it is running.
Help me guys.
Attaching my VI
07-30-2020 07:47 AM
Well, don't know about "Drag and Drop", but if you click on a Tree item (such as "ch2") and wire the NewVal to a String Indicator, when you run your VI, the String Indicator will say "ch2". Doesn't it make more sense to "select by clicking on the item you want to select" than to "select by typing the name of the item you want to select, with possible mis-spellings, in a "Drop a channel from Tree" String Control"?
Bob Schor
07-30-2020 08:36 AM
Hey Bob Schor,
Actually i've shared just an example VI explaining my problem.
But in real scenario, my tree is having 16 values whereas the number of strings are eight.
So drag and drop only will serve my purpose.
Help me in that direction.
Thank you.
07-30-2020 10:31 AM
What you're seeing in edit mode will not necessarily be native when running.
All you have is a registration to the string drop event. You need to register for the tree drag event to obtain the text being dragged, then at the string drop event insert the value.
The Labview guide here gives you a step-by-step on how to do this.