Test and Measurement Forum

Troubleshoot opening connection to Picoscope via Labview

Post your LabVIEW discussions here

Troubleshoot opening connection to Picoscope via Labview

Postby rphicks » Tue Oct 24, 2017 12:26 am

Hello,

we recently purchased an oscilloscope (Picoscope 5244A) for research. We would ultimately like to interface the scope with our labview software but have been running into some technical difficulties. Please find the problem(s) detailed below:

We are unable to open a connection to our Picoscope 5244A oscilloscope via Labview. It is connected to the computer via 2 USB ports (powered over USB). It works fine with the Picoscope6 software (which was included with the oscilloscope upon delivery). Our software versions, the block diagram, and the configuration of the call library function are shown below and attached. When using the ps5000a.dll (obtained from the SDK), Labview returns "Error 1097 occurred at Call Library Function Node in PicoTest2.vi". This error occurs for both stdcall and C calling conventions. PICO_STATUS returns 3 (device not found).
When using the ps5000.dll, the Labview error disappears, but the error handler indicates that no device was found.
We copied the dll files into the same folder as the labview VI, tested linking the VI directly to the .dlls in the SDK default directory, and created a project that shows the ps5000.dll/ps5000a.dll as dependencies. We always obtained the error. Please let us know if there is anything else we should try. Thank you.

System Configuration:
Labview 15.0 (32-bit)
Windows 7 (64-bit)
Labview 15.0 (32-bit)
PicoSDK 10.6.12 (32-bit)
Picoscope 5244A (powered via USB)
Scope works with Picoscope 6



Thank you for any help on this matter!
Attachments
Labview_3.png
Image of call library function setup in parameters
Labview_2.png
Image of call library function setup in Labview
Labview_1.png
Image of labview program setup
Labview_1.png (8.84 KiB) Viewed 222 times
rphicks
Newbie
 
Posts: 0
Joined: Tue Oct 24, 2017 12:04 am

Re: Troubleshoot opening connection to Picoscope via Labview

Postby Martyn » Tue Oct 24, 2017 7:13 am

ps5000a.dll is the correct one for your device.

Please check the example code here for the 5000a, and also include the shared folder.

As your Labview is 32 bit you need the 32 bit SDK and the 32bit examples, and the PicoScope 6 software needs to be closed.
Martyn
Technical Support Manager
Martyn
Site Admin
Site Admin
 
Posts: 2787
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots


Return to LabVIEW

Who is online

Users browsing this forum: No registered users and 1 guest