Threshold in ps2000aSetSimpleTrigger

Post general discussions on using our drivers to write your own software here
Post Reply
Per Gaarde-Nissen
Newbie
Posts: 0
Joined: Wed Jan 09, 2019 11:07 am

Threshold in ps2000aSetSimpleTrigger

Post by Per Gaarde-Nissen » Wed Jan 09, 2019 12:32 pm

I am writing a testprogram in which one or two picoscopes are used.
Writing language is Delphi 10.3. (newest version)
The dll I use is ps2000a.dll dated 11-07-17.
Following functions are implemented and works well:
ps2000aEnumerateUnits
ps2000aGetUnitInfo
ps2000aOpenUnit
ps2000aCloseUnit
ps2000aMinimumValue
ps2000aMaximumValue
ps2000aMemorySegments
ps2000aSetChannel
ps2000aGetTimebase2
ps2000aSetDataBuffer
ps2000aRunBlock
ps2000aIsReady
ps2000aGetValues
However ps2000aSetSimpleTrigger does only function partly:
- enable is ok
- source is ok
- threshold has no effect
- direction is ok
- delay is not tested
- AutoTrigger_ms is ok
Therefore I can setup the scope and sample and retreive data, but I cannot set the trigger level to anything other than 0Volts. As long as 0 This was tested with both a 2205AMSO and a 2406B.
Any comments or suggestions are welcomed.
Per Gaarde-Nissen

Solved:
It turned out that the compiler took the PS2000A_CHANNEL parameter (source) as a byte. Forcing it to int16 solved the problem.

Post Reply