10-30-2006 04:58 PM
10-31-2006 10:32 AM
10-31-2006 12:50 PM
I'll try to answer your questions.
a) Yes that is correct, the source files are avaliable for download at http://www.picotech.com/software.html.
b) I have found some issues with the available settings in the DLL Import wizard, one is there is no availble choice for setting the parameter type to array. This is available when you right click on the CLN and select configure. I checked the configurations of the open unit and close unit nodes and they look the same. I have also noticed that the block diagrams created with the DLL Import wizard are very messy with overlaping wires and poor wire routing.
c) The original wrapper I created was done quickly and I only created the functions I needed at the time, I was attempting to create a proper Insturment Driver project and wanted all of the functions to be created, this is why I was using the import wizard.
I am still at a loss as to why disconnecting the instrument from the USB port prevents this crash from happening.
For now I have reverted to the 7.1.1 wrapper converted to 8.20 as I do not have time to continue investigating this issue.
Thank you for your response.
10-31-2006 03:41 PM
10-31-2006 03:48 PM
Re: your comment: I have found some issues with the available settings in the DLL Import wizard, one is there is no availble choice for setting the parameter type to array.
The DLL Import Wizard does indeed allow you to set the parameter type to array.
On the Configure VIs and Controls page, select a parameter. Then select Pass Type to be "Pass by Array". This will allow you to set the array size. If the Input/Output type is set to just Output, you can tie the size to another array parameter.
10-31-2006 03:49 PM
Re: your comment about the messy diagrams. Thanks for the feedback. We'll see what we can do about it for future releases.
Noel Adorno
10-31-2006 04:48 PM
10-31-2006 05:31 PM
OK, got dll and header file. Thanks for posting them. I'm wondering if the installer was smart enough to know that the clean machine I was installing on didn't have a C compiler and hence didn't install the header files.
Which function are you referring to? I randomly selected one of the functions that seemed to return an array (ps3000_get_values). See attached screen capture for parameter settings in the dialog. I suspect I'm barking up a different tree than you are. But, maybe if we talk in pictures or specific functions/parameters we'll eventually converge.
Thanks for your patience.
Noel Adorno
11-01-2006 10:36 AM
Now using the wrapper converted to 8.20 I received this crash. DSTM.cpp(160) see attached log.
11-02-2006 04:01 PM
Greetings Andrew:
It is interesting to note that you are able to call the DLL in the earlier version of DLL. Were you able to reproduce the crash on DSTM at the line number. It will be really helpful for us if you were able to give us the smallest snippet of the code using the DLL import wizard. The log file is definitely helpful, and reproducing the crash will be ideal. You mentioned the USB port and how removing it prevents the crash possibly giving us a clue about driver / interrupts caused due to the usb port and the instrument connected.
Thanks for all the feedback and co-operation.
Best regards
Avi Harjani