I recently bought a PS5444B. Everything is running well with the provided software Picoscope6.
I'm trying to use the SDK to communicate with a PS5444B. I recently downloaded the SDK 5000 from this site. I'm trying to run the simplified example:
- Code: Select all
printf("PS5000 driver example program\n");
printf("\n\nOpening the device...\n");
status = ps5000OpenUnit(&(unit.handle));
printf("Handle: %d\n", unit.handle);
if (status != PICO_OK)
printf("Unable to open device\n");
printf("Error code : %d\n", status);
exit(-1); // exit program - nothing after this executes
I tried to compile this with gcc (GCC) 4.6.2 (MinGw) under windows 7 (x64, processor intel i5). The compilation is ok. The link is made with "PS5000.lib".
However, when I run the code, after the splashscreen, I get:
"Opening the device...
Unable to open device
Error code : 3"
I also tried in C# and I got a similar behaviour. I wonder if this is not related to the 32-bits/64-bits compatibility issues.
How can I make sure my program uses the same dll's than the PicoScope 6 software ? How can I make sure I use the correct dll. I'm not too sure to understand how the link is made.
Maybe I need to copy certain files in the system directories, could you provide a complete description of the list of these files?
Could you help me with this ? Are there other troubleshooting tests I could perform ?