LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need your help, How to write a program such as drag the objects to the front panel like using the LabVIEW Front Platte

Dear all:
 
Sorry for so long title.
 
I need your help with how to drag the objects and drop onto the front panel.
 
Like the LabVIEW front platte, i can choose the objects i can drop onto every where of the front panel.
 
Could drag and drop function can satify?
 
Any idea?
 
Thank you
 
 
0 Kudos
Message 1 of 8
(3,595 Views)
Maybe i didn't write it clearly, i just want to drag one object  and drop onto another panel,maybe subpanel
 
1.How to use drag and drop function to do this ?
 
Pls check the attachment
 
 
 
 
0 Kudos
Message 2 of 8
(3,565 Views)

You can't add a control to a VI which is already running. You can do it when the VI is idle using LV scripting, but that is no different than dropping a control from the palette and is not officially supported.

What is it that you are actually trying to accomplish? We might be able to offer a solution if we understand the entire problem.


___________________
Try to take over the world!
0 Kudos
Message 3 of 8
(3,558 Views)

Thank you tst 
 

Pls check the attachment

I will explain much more carefully

The process is as bellow:

  • there are two windows
  • when the program is running ,i can drag the left window picture to the right window. The left picture is dragged and dropped to the right
    whereever i want
  • both window could be close or open

I know we can use drag and drop to transfer the image data and the name. could i use the picture control?

could i use subpanel to accomplish two windows?

 

 

 

 

Message Edited by top58525785@163.com on 07-24-2007 06:40 AM

0 Kudos
Message 4 of 8
(3,547 Views)

I missed one point

  • In the right winow, the picture could be moved to everywhere of the right window too

 

0 Kudos
Message 5 of 8
(3,540 Views)

What you're suggestion is relatively complicated in LV. If you know of a maximum number of images, you can just create as many control and use property nodes to move them around.

If not, you will need to use the picture control. Attached is a very quick example of dropping images into a picture control (LV 8.0), but if you then need to keep handling the images in the control, you will need to maintain information about which image is on top, etc. It can be done, but it will require some work.


___________________
Try to take over the world!
Message 6 of 8
(3,531 Views)

Thank you tst

It seems like that

Dynamical to drag and add the Control objects onto the windows is difficult for LabVIEW.

so use the picture instead.

At he beginning ,i use the drag and drop function from the pict ring,and drop the pic to another pic indicator as the examples

how to drag the picture in the picture control?

Could the pictures in the picture control be auto connected in line if i want?

pls check the attachment

 

 

0 Kudos
Message 7 of 8
(3,519 Views)

What you want to do is relatively complicated and it seems that your knowledge of LabVIEW is relatively basic. I suggest you try searching this site and google for LabVIEW tutorials. Here, here, here, here, here and here are a few you can start with and here are some tutorial videos. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).


___________________
Try to take over the world!
Message 8 of 8
(3,509 Views)