Test and Measurement Forum

Triggering Problem with Picoscope 4444

Post general discussions on using our drivers to write your own software here

Triggering Problem with Picoscope 4444

Postby MikeJames » Thu Oct 19, 2017 3:48 pm

Hi,

I have a Picoscope 4444 connected to a Panasonic Toughbook CF-20 (Windows 10) running a logging program.
I have used the ps4000aSetSimpleTrigger() function to set the trigger.
I have a state machine that calls PS4000A_RunBlock() then checks for PS4000A_IsReady() and then reads the values using PS4000A_GetValues().
When the program is run the it fails to trigger until the connected mouse is moved!
The logging program is written to use both Picoscope 3425 and 4444. The 3425 version runs correctly.
Is there any interaction between the Picoscope 4444 USB driver and any other USB driver that you know of?

Regards, Mike.
MikeJames
Newbie
 
Posts: 0
Joined: Wed Oct 22, 2014 2:57 pm

Re: Triggering Problem with Picoscope 4444

Postby Hitesh » Fri Oct 20, 2017 8:30 am

Hi Mike,

Which programming language are you using?

If you set an auto trigger for say 5000 ms, does the device trigger automatically?

It might be useful to see your code so the channel and trigger setup can be seen.

Regards,
Hitesh

Technical Support Engineer
Hitesh
Site Admin
Site Admin
 
Posts: 2498
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: Triggering Problem with Picoscope 4444

Postby MikeJames » Mon Oct 30, 2017 2:28 pm

Hi Hitesh,
Sorry for the delay - I've been on holiday.
The programming language I'm using is Lazarus/FreePascal (a Delphi copy).

I've set the auto-trigger to 5000ms and the scope does not trigger automatically.
If I move the mouse in quick circular movements the scope triggers less than second intervals.
The scope application does not have to be the uppermost application on the Windows 10 desktop - the mouse will still trigger the scope.

I built the demo app (in C) using Pelles C but the program failed to find the Picoscope device (4444).

Regards, Mike.
MikeJames
Newbie
 
Posts: 0
Joined: Wed Oct 22, 2014 2:57 pm

Re: Triggering Problem with Picoscope 4444

Postby MikeJames » Mon Oct 30, 2017 2:30 pm

Hi Hitesh,

Further info...
The application is 32-bit running on a 64-bit Windows 10 machine.

Regards, Mike.
MikeJames
Newbie
 
Posts: 0
Joined: Wed Oct 22, 2014 2:57 pm

Re: Triggering Problem with Picoscope 4444

Postby Martyn » Tue Oct 31, 2017 8:27 am

If you don't have the mouse connected does it work correctly ?
Is the data that you get back, after moving the mouse, correctly triggered data ?
Martyn
Technical Support Manager
Martyn
Site Admin
Site Admin
 
Posts: 2787
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Triggering Problem with Picoscope 4444

Postby MikeJames » Tue Oct 31, 2017 10:27 am

Hi Martyn,

Problem solved. It was a threading problem. The mouse movements were obviously creating events that allowed other tasks to complete.

Regards, Mike.
MikeJames
Newbie
 
Posts: 0
Joined: Wed Oct 22, 2014 2:57 pm


Return to General Software Discussions

Who is online

Users browsing this forum: No registered users and 0 guests