Using PS3000 drivers on Visual C++ Studio

 
Post new topic   Reply to topic    Pico Technology Forum Index -> C and C++
Author Message
physicsfaith
Advanced User
Advanced User


Joined: 12 Jul 2007
Posts: 10
Location: Manhattan, KS

PostPosted: Fri Jul 20, 2007 7:39 pm    Post subject: Using PS3000 drivers on Visual C++ Studio Reply with quote

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.
Back to top
physicsfaith
Advanced User
Advanced User


Joined: 12 Jul 2007
Posts: 10
Location: Manhattan, KS

PostPosted: Fri Jul 20, 2007 8:01 pm    Post subject: Reply with quote

I answered my own question. Apparently c++ doesn't know what a BYTE variable is. I changed it to char and atleast the compiler doesnt complain. I'll report back if it actually works.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Pico Technology Forum Index -> C and C++
All times are GMT
Page 1 of 1

 


Pico Technology topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group