LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Drag&drop files from a PDA

Solved!
Go to solution

Hi,

I have an radio automated test tool (PCMCIA card) on a PDA at work (a DELL Axim). This test bench generate HTML reports.

I have no possibility to control the PCMCIA device as I can't program under Windows CE, and as the test bench manufacturer don't want to gives its API.

 

I want to get the PDA HTML files to my CVI application, I order to read the results.

 

So I connected my PDA on my computer and tried to drap&drop its files to a CVI panel (code below) :

- it works when the files/directories dropped on the panel are from my computer or local network Explorer window

- it don't works with the files dragged from the PDA Explorer window (Computer\Mobile Device\My Pocket PC). Then the path written inside Explorer is like "\Windows\StartUp"

 

Why ???

It seems that no drag&drop event is created when I drop files from my PDA.

 

Does anyone have an idea ? A similar experience ? Is it caused by "Microsoft ActiveSync" ?

 

A workaround is to drag the PDA files to my local disk using Explorer. But a such simple operation could be avoided !

 

Best regards,

 

Pascal

 

 

 

 The code is simple and taken from CVI help instructions :

 

int  CVICALLBACK PanelCallback(int panel, int event, void *callbackData, int eventData1, int eventData2)
{
    char **ppc = NULL;
   
    switch (event)
    {
        case EVENT_FILESDROPPED:
            printf("FIles dropped to the panel :\n");
            if (eventData1) {
                 ppc = (char **)eventData1;
                 while (*ppc) {
                   printf ("Selected File : %s\n", *ppc);
                   free (*ppc);
                   *ppc = NULL;
                   ppc++;
                 }
            }

            break;
    }
    return 0;
}

0 Kudos
Message 1 of 5
(4,201 Views)

Hi,

This event works for standard windows drag and drog. It doesn't work with the other type of transfert as ftp and ActiveSync transfert.

Regards

Manuel R
AE dans une autre vie
Message 2 of 5
(4,144 Views)

Merci pour la réponse !

 

I will be able to create my software, but the user will need to copy the PDA files on the local hard drive first. 

 

If possible, next releases of Labwindows/CVI should support more drag&drop operations will be better for my application.

Does Labview have a better support of this kind of operations ?

 

Regards,

Pascal

 

0 Kudos
Message 3 of 5
(4,119 Views)
Solution
Accepted by topic author tigroo92

You could set up Active Sync to sync the files from your Axim to your PC, so whenever the Axim is connected to the PC it will transfer files from the Axim to the PC.

Then use Lab Windows CVI to access those files right from the directory on your PC.

Message 4 of 5
(4,116 Views)

That's right.

I only use ActiveSync via the Explorer to update the software, and other development purposes.

 

I forget the automatic synchronisation... usefull ! And it will avoid user errors.

 

Thanks,

 

Pascal

0 Kudos
Message 5 of 5
(4,113 Views)