Test and Measurement Forum

picoScope 5203: triggering for channel B or external

Post your LabVIEW discussions here

picoScope 5203: triggering for channel B or external

Postby zswiss » Tue Oct 02, 2007 8:35 pm

Hello,

I am writing code for picoScope 5203 using PS5000.dll(ps5000sdk_r6_0_11).
The problem is that I could not make working the triggering from channel B (and from
external as well).
Everything works well for channel A, but when I try to send (0,1,0,0,0,0,0) or (0,0,0,0,1,0,0) as "conditions" to ps5000SetTriggerChannelConditions it behaves like no trigger at all?!

I would appreciate for any advise so I can proceed with my work.

Thanks in advance,
Zinour Charifoulline,
CERN, Geneva.
zswiss
User
User
 
Posts: 3
Joined: Tue Oct 02, 2007 8:08 pm

pico5203: channel B triggering problem

Postby zswiss » Wed Oct 03, 2007 11:56 am

Hello,

Additional info for previous post:

I got back an error code 34 when I sent (0,1,0,0,0,0,0)-conditions to the ps5000SetTriggerChannelConditions.
Why?

PICO_STATUS=34 means PICO_WARNING_AUX_OUTPUT_CONFLICT,
but I just wants to use channel B for triggering?

Thanks,
Zinour.
zswiss
User
User
 
Posts: 3
Joined: Tue Oct 02, 2007 8:08 pm

solution :)

Postby zswiss » Thu Oct 04, 2007 4:32 pm

Hello,

The problem was rather simple: I use short (16-bits) instead of long (32-bits) as TRIGGER_STATE in the struct tTriggerConditions. Unfortunately it was not so clear for me from the User's Guide.

Regards to all,
Zinour.
zswiss
User
User
 
Posts: 3
Joined: Tue Oct 02, 2007 8:08 pm

Re: picoScope 5203: triggering for channel B or external

Postby Costas A » Tue Oct 27, 2009 12:09 pm

Hi

I have the same problem but with pico 5204. when i send (0,1,0,0,0,0,0)
TRIGGER_STATE in the struct TriggerConditions to use channel B as triger it returns an error "43" (at HEX or 73 at DEC) and it does not triger at all. The same happens when I send (0,0,0,0,1,0,0) to activate external triger.
unfortunately, using short (16-bits) instead of long (32-bits) it did not solve the problem.

I would appreciate any advice on this!

Many thanks!

Costas
Costas A
 

Re: picoScope 5203: triggering for channel B or external

Postby Robin » Wed Oct 28, 2009 9:27 am

Hi Costas

The attached example allows you to select the trigger channel.

The difficulty is that Labview does not support arrays of structs, so the set trigger conditions function is implemented in the wrapper DLL that is also attached.

I hope this helps

Robin
Attachments
PS5000_block_trig_ch.zip
(120.91 KiB) Downloaded 242 times
Robin
Zen Master
Zen Master
 
Posts: 558
Joined: Fri Sep 19, 2008 10:17 am

Re: picoScope 5203: triggering for channel B or external

Postby Guest » Wed Oct 28, 2009 5:51 pm

[quote="Robin"]Hi Costas

The attached example allows you to select the trigger channel.

The difficulty is that Labview does not support arrays of structs, so the set trigger conditions function is implemented in the wrapper DLL that is also attached.

I hope this helps

Robin[/quote]

Hi Robin,

have you tried it with the external triger as well?

Thanks a lot

Costas
Guest
 

Re: picoScope 5203: triggering for channel B or external

Postby Robin » Thu Oct 29, 2009 10:17 am

Hi Costas

I've modified the example to include ext. trigger.

I hope this helps

Robin
Attachments
PS5000_block_trig_ch.zip
(114.56 KiB) Downloaded 240 times
Robin
Zen Master
Zen Master
 
Posts: 558
Joined: Fri Sep 19, 2008 10:17 am

Re: picoScope 5203: triggering for channel B or external

Postby szguo » Mon Aug 09, 2010 1:35 pm

Robin wrote:Hi Costas

I've modified the example to include ext. trigger.

I hope this helps

Robin



Dear Robin and Costas,

I am writing codes for pico 5204 and I have problem with the ext triggering. At first, I sent (0,0,0,0,1,0,0) trigger_state to trigger conditions. It did run but did not give the graph with some meaning. Then I have downloaded the file you attached and it didn't work well neither. However, when I tried ext trigger in the software picoscope 6, it did give sth significant.

Can you help me with that?

Thank you!

Shuo
szguo
Newbie
 
Posts: 0
Joined: Tue Aug 03, 2010 3:02 pm

Re: picoScope 5203: triggering for channel B or external

Postby Robin » Tue Aug 10, 2010 8:17 am

Hi Shuo

I just double-checked the VI posted above and it works fine for me. Check your trigger settings, particularly autotrigger time.

We have added a new function to the driver that allows you to easily set up a simple trigger and it might be of interest to you. I have attached the latest version of the driver and below is the function description.

Robin
Code: Select all
PICO_STATUS ps5000SetSimpleTrigger
      (
            short handle,
            short enable,
            PS5000_CHANNEL source,
            short threshold,
            THRESHOLD_DIRECTION direction,
            unsigned long delay,
            short autoTrigger_ms
      );
Attachments
PS5000.zip
(335.46 KiB) Downloaded 217 times
Robin
Zen Master
Zen Master
 
Posts: 558
Joined: Fri Sep 19, 2008 10:17 am

Re: picoScope 5203: triggering for channel B or external

Postby szguo » Fri Aug 13, 2010 9:19 am

Robin wrote:Hi Shuo

I just double-checked the VI posted above and it works fine for me. Check your trigger settings, particularly autotrigger time.

We have added a new function to the driver that allows you to easily set up a simple trigger and it might be of interest to you. I have attached the latest version of the driver and below is the function description.

Robin
Code: Select all
PICO_STATUS ps5000SetSimpleTrigger
      (
            short handle,
            short enable,
            PS5000_CHANNEL source,
            short threshold,
            THRESHOLD_DIRECTION direction,
            unsigned long delay,
            short autoTrigger_ms
      );

Dear Robin,

What does 'auto trigger time' mean? What happens when it's changed? Thank you.

Kind regards.

Shuo
szguo
Newbie
 
Posts: 0
Joined: Tue Aug 03, 2010 3:02 pm

Re: picoScope 5203: triggering for channel B or external

Postby Robin » Mon Aug 16, 2010 11:57 am

Hi Shuo

It is a time-out after which the unit will trigger regardless of the signal. If you set it to zero, auto triggering will be disabled.

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

Re: picoScope 5203: triggering for channel B or external

Postby ndhoang1985 » Mon May 07, 2012 5:24 am

dear all
I found the problem.
download and replace this TriggerSetUp.vi instead your file
and just retry your project. your Picoscope will working with channel B and external
i hope it will be usefull
best regards
Hoang
Attachments
TriggerSetUp.vi
(16.57 KiB) Downloaded 189 times
ndhoang1985
Newbie
 
Posts: 0
Joined: Mon May 07, 2012 5:13 am


Return to LabVIEW

Who is online

Users browsing this forum: No registered users and 0 guests