LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Drag and drop issue

Hi Alvarion_…,
yes you are right. I see it. I think it is not possible, because the other drag process is not yet ready.
But you can solve this if you insert the timeout event. Create a shift register on your while loop, connect a "-1" to it and connect it to the timeout input. Take another wire and connect it to the event structure. Wire all cases directly to the other side and then to the shift register. But in your "tree" event, where now your subvi is, connect a number greater "-1" to the timeout. Take the subvi and insert it into the timeout event. The advantage is now, that the other event is ready and you can call your sub vi with the drag and drop function. Connect in the timeout event a "-1" to the timeout wire. It should work, because you don´t use the timeout event.
 
Hope it helps.
Mike
0 Kudos
Message 11 of 15
(751 Views)
Hi,
Thanks!
I know its annoying but....(i think you knew ill ask for it) can you do a small exsample?
0 Kudos
Message 12 of 15
(748 Views)
Hello again mike...

Thanks! its working great!
Hope you didnt started the exsample i asked.....i understood the idea after all, very simple but i hope i will note need the time out case....
Now if you doint mind......Can you explain me why the drag didnt worked?

0 Kudos
Message 13 of 15
(746 Views)
Hi Alvarion_…,
attached you will find a short example.
I´m not really sure, but i think windows can handle only one drag and drop event at the same time, so if the first drag event is not really ready you can´t start a new one. And your event is first finished if your event was executed.

Hope it helps.
Mike
0 Kudos
Message 14 of 15
(739 Views)
HI,

It helped alot!
both in the implemention and also with understanding the issue.
0 Kudos
Message 15 of 15
(715 Views)