Hi,
ps4000SetTriggerChannelProperties returns with error code hex 0x49.
In the documentation there is no description for this code. The highest number is 0x44.
This error can be reproduced.
Scenario:
- Open connection
1st step
- set up trigger
- run block
- stop scope, works fine
2nd step
- set up trigger -> error occurs.
Thanks in advance!
BRegs
Bane
PS4424 return code
Hi Robin,
below the piece of code for the SetTrigger.
After calling this several times the function: ps4000SetTriggerChannelProperties
returns 0x49. Trigger Channel Property does not change.
Regards,
Bane
below the piece of code for the SetTrigger.
After calling this several times the function: ps4000SetTriggerChannelProperties
returns 0x49. Trigger Channel Property does not change.
Regards,
Bane
Code: Select all
...
short thresholdUpper = VScopeInterface.VoltageToADC(3000); // 3V default
ushort thresholdUpperHysteresis = (ushort)(VScopeInterface.VoltageToADC(500)); // 0,5V default
TriggerChannelProperties[] channelProperties = new TriggerChannelProperties[] {
new TriggerChannelProperties( thresholdUpper,
thresholdUpperHysteresis,
0, 0, source, ThresholdMode.Level)};
short code = NativeMethods.ps4000SetTriggerChannelProperties(mHandle,
channelProperties,
0, 0, 0);
mLastErrorCode = (ErrorCode)(code);
if (mLastErrorCode != ErrorCode.PICO_OK)
{
return false;
}
...
Hi Bane
I have not been able to repeat this. I have tried modifying the C console example so that it calls ps4000SetTriggerChannelProperties several times.
The driver should only return this error when one of the parameters is out of range. Could it be a type or marshalling issue?
You shouldn't need to call ps4000SetTriggerChannelProperties more than once before collecting data.
Robin
I have not been able to repeat this. I have tried modifying the C console example so that it calls ps4000SetTriggerChannelProperties several times.
The driver should only return this error when one of the parameters is out of range. Could it be a type or marshalling issue?
You shouldn't need to call ps4000SetTriggerChannelProperties more than once before collecting data.
Robin