normal triggering mode in rapid block 6000 series

Post general discussions on using our drivers to write your own software here
Post Reply
smdev
Newbie
Posts: 0
Joined: Tue Nov 13, 2018 6:08 pm

normal triggering mode in rapid block 6000 series

Post by smdev » Tue Nov 13, 2018 6:21 pm

Hi,
I have a problem to program acquisition with external trigger coming to Channel D. Channels A,B acquire data in rapid block mode. The acquisition starts without the trigger (data are fine, trigger is flying all over).PICO scope software works fine.
Any explanations ?
does SetSimpleTrigger works in block mode ?
ps6000SetSimpleTrigger TriggerSource= 3 threshold_ADC_unit= 4c33 delay_counts= 0 autoTrigger_ms= 0.
Thanks!

Hitesh
PICO STAFF
PICO STAFF
Posts: 2850
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: normal triggering mode in rapid block 6000 series

Post by Hitesh » Wed Nov 14, 2018 9:34 am

Hi smdev,

Does the trigger work on channel D if you use the PicoScope 6 software?

It might be helpful to see your code to how the trigger and data acquisition is being set up.

Regards,

Hitesh
Hitesh

Software Dev. Engineer

smdev
Newbie
Posts: 0
Joined: Tue Nov 13, 2018 6:08 pm

Re: normal triggering mode in rapid block 6000 series

Post by smdev » Wed Nov 14, 2018 9:34 pm

Hi Hitech,
yes, picoscope 6 works fine

hope this sequence below will explain what I am doing:


PicoCheck(ps6000MemorySegments(unit.handle, Segments, &nMaxSamples), "ps6000MemorySegments", isShowLog);
//Set the number of captures
PicoCheck(ps6000SetNoOfCaptures(unit.handle, Segments), "ps6000SetNoOfCaptures", isShowLog);

PicoCheck(ps6000GetTimebase(unit.handle, TimeBase, _samples,
&timeInterval, 0, &maxSamples, 0), "ps6000GetTimebase", isShowLog);

for channels A and B
PicoCheck( ps6000SetChannel(unit.handle, (PS6000_CHANNEL)(PS6000_CHANNEL_A + _ch),
set.enabled,
set.DCcoupled,
set.range, 0,
PS6000_BW_FULL), "ps6000SetChannel");

for channel D
PicoCheck( ps6000SetChannel(unit.handle, PS6000_CHANNEL_D,
true,
PS6000_DC_50R,
PS6000_5V, 0,
PS6000_BW_FULL), "ps6000SetChannel");

PicoCheck( ps6000SetSimpleTrigger(unit.handle, _enable,
TriggerSource, threshold_ADC_unit, TriggerSlope, delay_counts, _autoTrigger_ms), "ps6000SetSimpleTrigger");

PicoCheck(ps6000RunBlock(unit.handle, 0, Samples,
TimeBase, 0, NULL, 0, NULL, NULL), "ps6000RunBlock", isShowLog);

Thanks!

Post Reply