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:
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<threshold<255 I get no errors and the direction I set has the desired effect. Also the trigger are functioning as I can see if I select AC-coupling (because the signal then passes through 0Volts). The only problem being that threshold always functions as 0Volts.
This was tested with both a 2205AMSO and a 2406B.
Any comments or suggestions are welcomed.
It turned out that the compiler took the PS2000A_CHANNEL parameter (source) as a byte. Forcing it to int16 solved the problem.
Post general discussions on using our drivers to write your own software here
1 post • Page 1 of 1