Calling ps4000OpenUnitEx crash the program

Post general discussions on using our drivers to write your own software here
Post Reply
Edgar
Newbie
Posts: 0
Joined: Tue Mar 09, 2010 7:08 am

Calling ps4000OpenUnitEx crash the program

Post by Edgar »

I try to use the function ps4000OpenUnitEx(&handle,serial_number) to get the serial number. But calling this function cause the program to crash.
Using the function ps4000OpenUnit(&handle) works fine and I can also run the function ps4000GetUnitInfo.

I have a scope of type 4424 and the software runs on a 64 bit Windows 7 machine.

What is wrong ??

Chris
Site Admin
Site Admin
Posts: 169
Joined: Tue Aug 17, 2010 9:00 am
Location: St. Neots

Re: Calling ps4000OpenUnitEx crash the program

Post by Chris »

calling the function ...

status = ps4000OpenUnitEx(&(unit.handle), "xyz12/345");

will open the unit with that particular serial number.

Is that what you are trying to do.

If you actually want to get the serial number, call ps4000EnumerateUnits.

Post Reply