Test and Measurement Forum

set_trigger in VB6

Post any questions you may have about our current range of oscilloscopes

set_trigger in VB6

Postby PierLuc » Mon Oct 10, 2011 1:20 am

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
PierLuc
Newbie
 
Posts: 0
Joined: Mon Oct 10, 2011 1:10 am

Re: set_trigger in VB6

Postby Martyn » Mon Oct 10, 2011 7:43 am

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 Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2355
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots


Return to USB PC Oscilloscopes

Who is online

Users browsing this forum: No registered users and 0 guests