ps4000GetUnitInfo function

Post your LabVIEW discussions here
Post Reply
MikeNuke
Newbie
Posts: 0
Joined: Thu Oct 31, 2013 1:49 pm

ps4000GetUnitInfo function

Post by MikeNuke »

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 536 times
MikeNuke
Politecnico di Milano
Department of Energy, Nuclear Engineering Division

Hitesh

Re: ps4000GetUnitInfo function

Post by Hitesh »

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,

MikeNuke
Newbie
Posts: 0
Joined: Thu Oct 31, 2013 1:49 pm

Re: ps4000GetUnitInfo function

Post by MikeNuke »

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

Post Reply