Test and Measurement Forum

PS4224 vs. Delphi

Post general discussions on using our drivers to write your own software here

PS4224 vs. Delphi

Postby JanW » Mon Oct 04, 2010 10:31 am

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
JanW
Newbie
 
Posts: 0
Joined: Mon Oct 04, 2010 9:41 am

Re: PS4224 vs. Delphi

Postby Chris » Tue Oct 19, 2010 6:17 am

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


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


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


Return to General Software Discussions

Who is online

Users browsing this forum: No registered users and 0 guests