Test and Measurement Forum

ps4000GetUnitInfo function

Post your LabVIEW discussions here

ps4000GetUnitInfo function

Postby MikeNuke » Tue Nov 05, 2013 10:45 am

Hi!
I am trying to modify my labview software we use to acquire data in order to automatically recognise which picoscope device we are using (we have a 4424 and 4227).

To do this I wanted to use the ps4000GetUnitInfo function to obtain the variant info.
I set up the call library function node, but when I start the VI I am getting error (in the call library) or labview crashing.

I don't understand what I did wrong...

I attach a test version of the VI.

Thanks!
Attachments
PS_Test.vi
(14.54 KiB) Downloaded 69 times
MikeNuke
Politecnico di Milano
Department of Energy, Nuclear Engineering Division
MikeNuke
Newbie
 
Posts: 0
Joined: Thu Oct 31, 2013 1:49 pm

Re: ps4000GetUnitInfo function

Postby Hitesh » Mon Nov 11, 2013 2:23 pm

Hi MikeNuke,

Looking at your vi file, you need to make the following changes:

  • Remove the LabVIEW error data flow to/from the ps4000CloseUnit vi (the sub-vi doesn't output an error signal)
  • Set a value for stringLength e.g. 10
  • Add the requiredSize parameter for the ps4000GetUnitInfo function call :)

The call should then work - if you want to take a look at an example, download the SDK for the PicoScope 3204A and take a look at the sub-vi in the llb for obtaining unit information.

Regards,
Hitesh

Technical Specialist
Pico Technology
Hitesh
Site Admin
Site Admin
 
Posts: 2000
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: ps4000GetUnitInfo function

Postby MikeNuke » Wed Nov 13, 2013 9:31 am

Hi Hitesh,

I downloaded the 3204A SDK and just substituted the reference in the call library function with the ps4000 version.
Everything is working fine now :)

Thank you a lot!

Regards,
MikeNuke
Politecnico di Milano
Department of Energy, Nuclear Engineering Division
MikeNuke
Newbie
 
Posts: 0
Joined: Thu Oct 31, 2013 1:49 pm


Return to LabVIEW

Who is online

Users browsing this forum: No registered users and 0 guests