PS4000SDK RapidBlock Labview Example stalled.

Post any questions you may have about our current range of oscilloscopes
Post Reply
nhanlm0601
Newbie
Posts: 0
Joined: Fri Nov 01, 2013 7:27 pm

PS4000SDK RapidBlock Labview Example stalled.

Post by nhanlm0601 »

Hi,

I'm running Windows 7 x64 with Labview x86
I recently install new Pico driver software
PicoScope6_r6_10_6
PS4000sdk_r10_5_1_1


ps4000.dll version 1.2.4.12 (also tested on 1.0...)
Picoscope 4262

When I press either 'Run' or 'Stop' the VI did not respond and I have to force stop the VI.
Upon closer inspection, the PicoScope4000GetRapidBlock.vi is still executing the loop containing 'ps4000IsReady.vi'; however, the pico4262 device has already disconnected (Red LED lights up). Thus, the VI stalled because it is still waiting for the signal from the device indicating whether the capture is completed.

If I change the #segments to '1', the VI works fine. If #segments is larger than 1, i.e. 2 or 3+, the program stalled

:?: Does anyone have any idea why?
Attachments
NL.temp.png
Last edited by nhanlm0601 on Thu Dec 04, 2014 2:04 pm, edited 1 time in total.

Hitesh

Re: PS4000SDK RapidBlock Labview Example stalled.

Post by Hitesh »

Hi,

Which PicoScope 4000 Series device are you using and what is the version number of the ps4000.dll being loaded in by LabVIEW?

Regards,

nhanlm0601
Newbie
Posts: 0
Joined: Fri Nov 01, 2013 7:27 pm

Re: PS4000SDK RapidBlock Labview Example stalled.

Post by nhanlm0601 »

Hi,
ps4000.dll version 1.1.0.263
Pico 4262

Details of the Labview probing:
In RunBlock Vi, there is a loop for PS4000IsReady.vi and the loop keeps repeating while the picoscope does not respond to stop the loop.

nhanlm0601
Newbie
Posts: 0
Joined: Fri Nov 01, 2013 7:27 pm

Re: PS4000SDK RapidBlock Labview Example stalled.

Post by nhanlm0601 »

I made a mistake, the VI that is stalled is
PicoScope4000GetRapidBlock.vi

Within that VI, the loop around 'ps4000IsReady' does not stop as the picoscope does not respond back to the VI saying it is ready, the value is '0' all the time. The LED indicator on the picoscope is turned ON after the first loop, where it is supposed not to when it is in 'collecting' mode?

Karunen
Advanced User
Advanced User
Posts: 194
Joined: Thu Nov 21, 2013 9:22 am

Re: PS4000SDK RapidBlock Labview Example stalled.

Post by Karunen »

Hi,

I think there may be a misunderstanding the red light occurs when the device is collecting data and it off when transferring data across.

I have just tested with the LabVIEW example and it is working as expected.

Please note IsReady function tells us when the device is ready to have the data retrieved from it.

And with rapid block mode all the segments need to be filled before IsReady will return a 1.

Kind Regards,
Karunen

Technical Specialist
Pico Technology

nhanlm0601
Newbie
Posts: 0
Joined: Fri Nov 01, 2013 7:27 pm

Re: PS4000SDK RapidBlock Labview Example stalled.

Post by nhanlm0601 »

It works fine when the #segments is 1, when I change #segments to 2 or higher.
The 'capture complete' Indicator does not turn on, and it keeps repeating the loop 'PS4000IsReady.vi'. I left the device for several minutes and nothing happened (picture), the 'Capture Complete' is OFF but the Red LED on the pico device is ON.
Attachments
NL.temp.png

Karunen
Advanced User
Advanced User
Posts: 194
Joined: Thu Nov 21, 2013 9:22 am

Re: PS4000SDK RapidBlock Labview Example stalled.

Post by Karunen »

Hi,

Unfortunately I am unable to replicate the issue. I have attached an image below that shows the setttings and the driver version I used
4262 in LabVIEW 2014
4262 in LabVIEW 2014
Would you be able to tell me which version of LabVIEW you are using?

Can you also tell me what colour USB cable you are using?

Kind Regards,
Karunen

Technical Specialist
Pico Technology

Post Reply