PS4224 vs. Delphi

Post general discussions on using our drivers to write your own software here
Post Reply
JanW
Newbie
Posts: 0
Joined: Mon Oct 04, 2010 9:41 am

PS4224 vs. Delphi

Post by JanW »

Hi, I am exploring the PS C examples to finally write a software in Delphi. I have found the structure TRIGGER_CHANNEL_PROPERTIES that has four threshold members:

typedef struct tTriggerChannelProperties
{
short thresholdUpper;
unsigned short thresholdUpperHysteresis;
short thresholdLower;
unsigned short thresholdLowerHysteresis;

PS4000_CHANNEL channel;
THRESHOLD_MODE thresholdMode;
} TRIGGER_CHANNEL_PROPERTIES

All the examples in PS4000con.c refer to that structure as it has only three threshold members, for example:

struct tTriggerChannelProperties sourceDetails = {
triggerVoltage,
triggerVoltage,
256 * 10
,
PS4000_CHANNEL_A,
LEVEL };

Am I missing something? Thanks for any hint

Chris
Site Admin
Site Admin
Posts: 169
Joined: Tue Aug 17, 2010 9:00 am
Location: St. Neots

Re: PS4224 vs. Delphi

Post by Chris »

You're right, the example should be...


struct tTriggerChannelProperties sourceDetails = {
triggerVoltage,
256 * 10,
triggerVoltage,
256 * 10,
PS4000_CHANNEL_A,
LEVEL };


-Chris

Post Reply