Test and Measurement Forum

picoscope 6403 series -

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

picoscope 6403 series -

Postby sudhansangeetha » Fri Sep 26, 2014 7:09 pm

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
sudhansangeetha
Newbie
 
Posts: 0
Joined: Thu Jan 26, 2012 6:53 pm

Re: picoscope 6403 series -

Postby Martyn » Mon Sep 29, 2014 2:22 pm

We would need to see your code to understand what is happening. Please post it here.
Martyn
Technical Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2351
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: picoscope 6403 series -

Postby sudhansangeetha » Mon Sep 29, 2014 2:56 pm

<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);
sudhansangeetha
Newbie
 
Posts: 0
Joined: Thu Jan 26, 2012 6:53 pm

Re: picoscope 6403 series -

Postby Martyn » Mon Sep 29, 2014 3:01 pm

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.
Martyn
Technical Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2351
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