Test and Measurement Forum

functions to verify the trigger and channel settings

Post your LabVIEW discussions here

functions to verify the trigger and channel settings

Postby kanth_tvs » Fri Jul 02, 2010 1:33 pm

Hello,

Can some one point to me whether there are functions within ps4000.dll which allow me to verify whether the picoscope has accepted the settings for trigger and the channels, after they are set.

I do look at the status given by the corresponding set functions, but I would also like to double check the settings by reading them from the scope.

I am using a Pico 4424 scope.
kanth_tvs
Newbie
 
Posts: 0
Joined: Wed Jun 23, 2010 2:41 pm

Re: functions to verify the trigger and channel settings

Postby Robin » Mon Jul 05, 2010 11:42 am

Hi

There aren't any functions to check the settings. All you need to do is check the the returned status code is PICO_OK (0). If any values are out of range or there are any other problems, the status code will be non-zero

Robin
Robin
Zen Master
Zen Master
 
Posts: 558
Joined: Fri Sep 19, 2008 10:17 am

Re: functions to verify the trigger and channel settings

Postby JW@KITTIWAKE » Mon Jul 05, 2010 2:37 pm

Hi
I was recently trying to do exactly the same thing (but eventually decided to rely on pico_status)

However- the ps4000 manual (page37) does mention a command called "ps4000IsTriggerOrPulseWidthQualifierEnabled"
I tried this, but 'triggerEnabled' always returned as zero, regardless of whether or not the trigger successfully fired a few lines later.

Personally, I dont actually need this line of code any more, but it could be useful to know if this command works- or at least does what it implies it should do!

J
JW@KITTIWAKE
Newbie
 
Posts: 0
Joined: Wed Jun 16, 2010 2:44 pm

Re: functions to verify the trigger and channel settings

Postby Robin » Tue Jul 06, 2010 3:08 pm

Hi

The value of triggerEnabled enabled appears to not be changed by the dirver.

I have submitted a bug report.

Thanks

Robin
Robin
Zen Master
Zen Master
 
Posts: 558
Joined: Fri Sep 19, 2008 10:17 am

Re: functions to verify the trigger and channel settings

Postby kanth_tvs » Wed Jul 07, 2010 12:54 pm

Thank you for informing about this bug!
kanth_tvs
Newbie
 
Posts: 0
Joined: Wed Jun 23, 2010 2:41 pm

Re: functions to verify the trigger and channel settings

Postby Robin » Tue Jul 13, 2010 12:27 pm

This will be fixed in the next release.

Robin
Robin
Zen Master
Zen Master
 
Posts: 558
Joined: Fri Sep 19, 2008 10:17 am


Return to LabVIEW

Who is online

Users browsing this forum: No registered users and 0 guests