picoScope 5203: triggering for channel B or external

Post your LabVIEW discussions here
Post Reply
zswiss
User
User
Posts: 3
Joined: Tue Oct 02, 2007 8:08 pm

picoScope 5203: triggering for channel B or external

Post by zswiss »

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

Post by zswiss »

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 :)

Post by zswiss »

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.

Costas A

Re: picoScope 5203: triggering for channel B or external

Post by Costas A »

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

Robin
Advanced User
Advanced User
Posts: 558
Joined: Fri Sep 19, 2008 10:17 am

Re: picoScope 5203: triggering for channel B or external

Post by 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
Attachments
PS5000_block_trig_ch.zip
(120.91 KiB) Downloaded 590 times

Guest

Re: picoScope 5203: triggering for channel B or external

Post by Guest »

[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

Robin
Advanced User
Advanced User
Posts: 558
Joined: Fri Sep 19, 2008 10:17 am

Re: picoScope 5203: triggering for channel B or external

Post by Robin »

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 570 times

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

Re: picoScope 5203: triggering for channel B or external

Post by szguo »

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

Robin
Advanced User
Advanced User
Posts: 558
Joined: Fri Sep 19, 2008 10:17 am

Re: picoScope 5203: triggering for channel B or external

Post by Robin »

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 550 times

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

Re: picoScope 5203: triggering for channel B or external

Post by szguo »

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

Robin
Advanced User
Advanced User
Posts: 558
Joined: Fri Sep 19, 2008 10:17 am

Re: picoScope 5203: triggering for channel B or external

Post by Robin »

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

ndhoang1985
Newbie
Posts: 0
Joined: Mon May 07, 2012 5:13 am

Re: picoScope 5203: triggering for channel B or external

Post by ndhoang1985 »

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 570 times

Post Reply