Has anyone successfully compiled PS3000con.c or PS3000.c with MS Visual C++ Studio 2005? I am getting all kinds of errors. Most stem from this section of code:
typedef struct {
short handle;
MODEL_TYPE model;
PS3000_RANGE firstRange;
PS3000_RANGE lastRange;
//BYTE signalGenerator;
//BYTE external;
short timebases;
short noOfChannels;
CHANNEL_SETTINGS channelSettings [MAX_CHANNELS];
short values [MAX_CHANNELS][BUFFER_SIZE];
PS3000_RANGE triggerRange;
}
UNIT_MODEL;
UNIT_MODEL unitOpened;
The compiler doesn't recognize BYTE, and so any later line that refers to unitOpened...signalgenerator or external has an error. I have the 2 lines commented out just to get rid of the errors for now.
Using PS3000 drivers on Visual C++ Studio
-
- Active User
- Posts: 10
- Joined: Thu Jul 12, 2007 3:26 pm
- Location: Manhattan, KS
-
- Active User
- Posts: 10
- Joined: Thu Jul 12, 2007 3:26 pm
- Location: Manhattan, KS