07-07-2008 02:32 AM
07-07-2008 02:43 AM - edited 07-07-2008 02:44 AM
Hi Ridwan,
from where do you want to drag the images into your vi? Is it another vi, or do you want to drag the file name from a listbox to an image control and show the selected image?
Mike
07-07-2008 02:56 AM
Hi Mike,
I am using LabVIEW to interface with a projector using an API provided by the vendor.
How the VI works is as stated below:
Firstly, before the user runs the VI, he has to indicate how many pictures he intends to load so that when the VI runs, the projector can allocate sufficient memory for the pictures to be loaded.
After this, how I envision the program to work is that after the user clicks on run, a folder option will open from windows. The user will then select all the files he wants and maybe double click it or maybe drag and drop into a listbox (I don't know how to use a list box also). Then the IMAQ will start processing the files.
Anyway, thanks for the prompt reply Mike. This problem has been plaguing me.
Ridwan
07-07-2008 03:17 AM
Hi Wan81,
you can use an array of path control. A path control allows to drag a file into it.
Hope it helps.
Mike
07-07-2008 06:18 AM
07-09-2008 03:56 AM
Hi guys,
I guess Ton is correct. I've tried an array of path already but it does not enable me to drag and drop multiple files at the same time because you can only open 1 file at a time right?
Really not sure how else i can implement drag and drop of multiple files.
Ridwan
07-09-2008 06:53 AM
07-09-2008 10:23 PM
Hi Ton,
I've been to the GToolBox Website and which VI should I try to implement this drag and drop of files function?
Thanks again in advance
Ridwan
07-09-2008 10:27 PM
Oh Wookay,
Found it. It is a revised VI. Will give a try later in my lab and update on my progress.
Thanks Ton for the link
Ridwan
07-11-2008 03:42 AM