Test and Measurement Forum

PS4000SDK RapidBlock Labview Example stalled.

Post any questions you may have about our current range of oscilloscopes

PS4000SDK RapidBlock Labview Example stalled.

Postby nhanlm0601 » Wed Dec 03, 2014 2:11 pm

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.
nhanlm0601
Newbie
 
Posts: 0
Joined: Fri Nov 01, 2013 7:27 pm

Re: PS4000SDK RapidBlock Labview Example stalled.

Postby Hitesh » Wed Dec 03, 2014 5:26 pm

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,
Hitesh

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

Re: PS4000SDK RapidBlock Labview Example stalled.

Postby nhanlm0601 » Thu Dec 04, 2014 12:50 pm

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.

Postby nhanlm0601 » Thu Dec 04, 2014 1:08 pm

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?
nhanlm0601
Newbie
 
Posts: 0
Joined: Fri Nov 01, 2013 7:27 pm

Re: PS4000SDK RapidBlock Labview Example stalled.

Postby Karunen » Fri Dec 05, 2014 4:13 pm

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
Karunen
Zen Master
Zen Master
 
Posts: 194
Joined: Thu Nov 21, 2013 9:22 am

Re: PS4000SDK RapidBlock Labview Example stalled.

Postby nhanlm0601 » Fri Dec 05, 2014 4:46 pm

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
nhanlm0601
Newbie
 
Posts: 0
Joined: Fri Nov 01, 2013 7:27 pm

Re: PS4000SDK RapidBlock Labview Example stalled.

Postby Karunen » Wed Dec 10, 2014 11:13 am

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

Capture.PNG
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
Karunen
Zen Master
Zen Master
 
Posts: 194
Joined: Thu Nov 21, 2013 9:22 am


Return to USB PC Oscilloscopes

Who is online

Users browsing this forum: No registered users and 0 guests