set_trigger in VB6

Post any questions you may have about our current range of oscilloscopes
Post Reply
PierLuc
Newbie
Posts: 0
Joined: Mon Oct 10, 2011 1:10 am

set_trigger in VB6

Post by PierLuc »

Hi,

I have a PS3205 and I am trying to set trigger on my external channel. I use the code sample provided by picotech and I change the following line:

ok = ps3000_set_trigger(ps3000_handle, 5, 500, 0, 0, 0)

No mater what is the 3rd parameter, the scope always start getting data even if there is no trigger signal on my probe. What should I do

Martyn
Site Admin
Site Admin
Posts: 4499
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: set_trigger in VB6

Post by Martyn »

The channel enumeration used by the driver is

Code: Select all

typedef enum enPS3000Channel
{
	PS3000_CHANNEL_A,
	PS3000_CHANNEL_B,
	PS3000_CHANNEL_C,
	PS3000_CHANNEL_D,
	PS3000_EXTERNAL,
	PS3000_MAX_CHANNELS = PS3000_EXTERNAL,
	PS3000_NONE,
	PS3000_MAX_TRIGGER_SOURCES
}	PS3000_CHANNEL;
You will need to make sure that you select 4, not 5, for the second parameter to trigger from the external channel.
Martyn
Technical Support Manager

Post Reply