PicoScope 7 Software
Available on Windows, Mac and Linux
Code: Select all
ps6000SetEtsEx(handlePico, PS6000_ETS_OFF, 0, 0, NULL); // Turn off ETS
analogueOffset = 2.0;
ps6000SetChannelEx(handlePico,PS6000_CHANNEL_A,iChanelAEnabled,iCouplingChannelA ,(enPS6000Range)m_iVoltageRangeA, analogueOffset, PS6000_BW_FULL);
m_iTimeBase = 127; //0x7F
ps6000GetTimebaseEx(handlePico,m_iTimeBase,(unsigned long) m_iCurrentBufferSize,&timeIntervalNanoseconds ,0,(unsigned long*)&maxSamples,(unsigned long)0);
//timeIntervalNanoseconds returned from above call is 787L (0x00000313)
struct tTriggerChannelProperties sourceDetails = {iThreshold,iHysteresis
iThreshold,
iHysteresis,
(enPS6000Channel) iChannel,
PS6000_LEVEL };
ps6000SetTriggerChannelProperties(handlePico,&sourceDetails,1,0,m_iCaptureTimeMilliseconds);
ps6000SetTriggerChannelDirectionsEx(handlePico,trig6000Cha,NONE,NONE,NONE,NONE,NONE);
TRIGGER_CONDITIONS conditions = {CONDITION_TRUE ,
CONDITION_DONT_CARE,
CONDITION_DONT_CARE,
CONDITION_DONT_CARE,
CONDITION_DONT_CARE,
CONDITION_DONT_CARE,
CONDITION_DONT_CARE };
ps6000SetTriggerChannelConditions(handlePico,&conditions,1);
ps6000SetDataBufferEx(handlePico,PS6000_CHANNEL_A,w_PicoBufferA.obItems,m_iCurrentBufferSize,0);