I use ps6403 in which the following problem is seen only using my code:
first time picoscope driver calls the callback function only when there is trigger. but if do stop and then start the capture again, picoscope seems to call the callback very frequently even when there are no triggers happened
pls help where am i missing
picoscope 6403 series -
Re: picoscope 6403 series -
We would need to see your code to understand what is happening. Please post it here.
Martyn
Technical Support Manager
Technical Support Manager
-
- Newbie
- Posts: 0
- Joined: Thu Jan 26, 2012 6:53 pm
Re: picoscope 6403 series -
<picoscope opened successfully> posting code after picoscope open:
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);
Re: picoscope 6403 series -
Is there some more code that has been cut off your post ?
BTW I tidied up by using the Code button just above the post edit window, this puts the code in the code window.
BTW I tidied up by using the Code button just above the post edit window, this puts the code in the code window.
Martyn
Technical Support Manager
Technical Support Manager