LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to drop items from a tree on to a string control While LabVIEW is running...:(

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  

0 Kudos
Message 1 of 4
(1,319 Views)

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

0 Kudos
Message 2 of 4
(1,288 Views)

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.

0 Kudos
Message 3 of 4
(1,279 Views)

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.

Using Labview 2022, Windows 10
0 Kudos
Message 4 of 4
(1,260 Views)