OpenUnit doesn`t work

Post your LabVIEW discussions here
Post Reply
therealpaulie
Newbie
Posts: 0
Joined: Wed Jun 12, 2019 1:19 pm

OpenUnit doesn`t work

Post by therealpaulie » Wed Jun 12, 2019 1:39 pm

Hi all,

I just got the PS2206B. I tested it with PicoScope 6 and it works fine. Further I want to use it with LabView. I have a Win10 Pro x64 and a LabView 15 x32.
From the download section, as recommended, I downloaded the SDK for x32 v10.6.13.

I try wit both:
- ps2000a.dll (ps2000aOpenUnit)
- ps2000.dll (ps2000_open_unit)
and I get all the time PICO_NOT_FOUND (ps2000a) for OpenUnit and the Handle is 0 (ps2000 and ps2000a). The small window with PicoScope(R) and progress bar is all the time visible at running the VI.

The PicoScope 6 is not open! If it is open. The Handle is -1.

Also, using the EnumerateUnits (ps2000aEnumerateUnits) I get the correct values:
- PICO_STATUS = OK (0) if OK. If I remove it from USB or PicoScope 6 is running PICO_STATUS = PICO_NOT_FOUND
- count = 1 if OK. If I remove it from USB or PicoScope 6 is running count = 0
- serials and seriaLth are always 0

I get no LabView errors.

Anybody knows what the problem could be? Thank you!

Regrads,
Paul

Martyn
Site Admin
Site Admin
Posts: 3692
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: OpenUnit doesn`t work

Post by Martyn » Thu Jun 13, 2019 6:11 am

The 2206B is one of the 2000a devices, so the 2000 functions will not work.

Have you tried downloading and running our example code from GitHub you will need the 2000a Examples and the Shared Folder
Martyn
Technical Support Manager

therealpaulie
Newbie
Posts: 0
Joined: Wed Jun 12, 2019 1:19 pm

Re: OpenUnit doesn`t work

Post by therealpaulie » Thu Jun 13, 2019 8:06 am

Hi Martyn,

Thank you for the fast reply. It works now, I found the problem:
- in the example from GitHub is: uint32_t _ps2000aOpenUnit@8(int16_t *handle, int8_t serial); and it works
- I used the information from Programming Guide where the serial is defined as pointer, and it doesn't work
PICO_STATUS ps2000aOpenUnit
(
int16_t * handle, int8_t * serial
)

The serial must not be defined as pointer.

Thank you and best regards,
Paul

Post Reply