Hi,
I am trying to setup picoscope 6000 for external trigger and input channel as A.
The following call is made:
ps6000SetTriggerChannelProperties(handle, &channelproperties,1,0,0);
where channelproperties = {1625/*threshold-high*/,
325/*hysteresis-high*/,
1625/*threshold-high*/,
325/*hysteresis-low*/,
PS5000_MAX_CHANNELS/*channel used*/,
LEVEL/*threshold mode*/
}
The same settings is working for CHANNEL A,B,C,D but not for external channel.
The error code being returned is PICO_TRIGGER_ERROR for which there is no information found in documentation. Kindly help.
ps6000SetTriggerChannelProperties() returned error
-
- Newbie
- Posts: 0
- Joined: Thu Jan 26, 2012 6:53 pm
Re: ps6000SetTriggerChannelProperties() returned error
Hi,
Please could you send in a snippet of your code showing the channel setup and all trigger parameter settings (channel conditions, properties and directions).
Thanks,
Please could you send in a snippet of your code showing the channel setup and all trigger parameter settings (channel conditions, properties and directions).
Thanks,
Hitesh
Software Dev. Engineer
Software Dev. Engineer
-
- Newbie
- Posts: 0
- Joined: Thu Jan 26, 2012 6:53 pm
Re: ps6000SetTriggerChannelProperties() returned error
When I studied the documentation, it looks like, External trigger (Ext channel) is not there in 6000 series model but there is AUX slot.
Please confirm. if the above statement is Yes, What is the settings for using AUX channel?
I am using the below code:
Please confirm. if the above statement is Yes, What is the settings for using AUX channel?
I am using the below code:
Code: Select all
TRIGGER_CONDITIONS conditions = {CONDITION_DONT_CARE ,
CONDITION_DONT_CARE,
CONDITION_DONT_CARE,
CONDITION_DONT_CARE,
CONDITION_TRUE,
CONDITION_DONT_CARE,
CONDITION_DONT_CARE };
stStatus = ps6000SetTriggerChannelConditions(handlePico,&conditions,1);
trigCha = RISING;
stStatus = ps6000SetTriggerChannelDirections(handlePico,NONE,NONE,NONE,trigCha,NONE,NONE);
ps6000SetTriggerChannelProperties(handle, &channelproperties,1,0,0);
where channelproperties = {1625/*threshold-high*/,
325/*hysteresis-high*/,
1625/*threshold-high*/,
325/*hysteresis-low*/,
PS5000_MAX_CHANNELS/*channel used*/,
LEVEL/*threshold mode*/
}
Re: ps6000SetTriggerChannelProperties() returned error
Hi,
The External channel is not used by the PicoScope 6000 series SDK (there is no ext channel on the device). It is the Aux In channel that is used.
Set your Trigger Conditions structure as below:
It looks as though your trigger channel is set for Channel D - if this is correct, please leave it otherwise change it to:
Also, please change your channel and the threshold mode as shown below:
Hope this helps,
The External channel is not used by the PicoScope 6000 series SDK (there is no ext channel on the device). It is the Aux In channel that is used.
Set your Trigger Conditions structure as below:
Code: Select all
TRIGGER_CONDITIONS conditions = {CONDITION_DONT_CARE ,
CONDITION_DONT_CARE,
CONDITION_DONT_CARE,
CONDITION_DONT_CARE,
CONDITION_DONT_CARE,
CONDITION_TRUE,
CONDITION_DONT_CARE };
Code: Select all
stStatus = ps6000SetTriggerChannelDirections(handlePico,NONE,NONE,NONE,NONE,NONE,trigCha);
Code: Select all
channelproperties = {1625 /*threshold-high*/,
325 /*hysteresis-high*/,
1625 /*threshold-high*/,
325 /*hysteresis-low*/,
PS6000_TRIGGER_AUX /*channel used*/,
PS6000_LEVEL /*threshold mode*/
Hitesh
Software Dev. Engineer
Software Dev. Engineer
-
- Newbie
- Posts: 0
- Joined: Thu Jan 26, 2012 6:53 pm
Re: ps6000SetTriggerChannelProperties() returned error
Hi,
Thank you for the details. I tried the same settings and it still results in the error - 44UL (0x0000002C).
I am not calling ps6000SetChannel for AUX IN Channel. Is that a problem?
Please confirm the situations in which the error 44UL (0x0000002C) can occur.
Thank you for the details. I tried the same settings and it still results in the error - 44UL (0x0000002C).
I am not calling ps6000SetChannel for AUX IN Channel. Is that a problem?
Please confirm the situations in which the error 44UL (0x0000002C) can occur.
Re: ps6000SetTriggerChannelProperties() returned error
Having read your email ticket to our helpdesk and the response from my colleague explaining the difference between using AUXIN as a trigger source compared with EXT in the 5000 series devices, can I confirm that you are now successfully getting triggers ?
Martyn
Technical Support Manager
Technical Support Manager