10-22-2008 05:42 AM
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;
}
Solved! Go to Solution.
10-29-2008 11:20 AM
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
10-31-2008 09:22 AM
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
10-31-2008 09:31 AM
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.
10-31-2008 09:55 AM
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