Test and Measurement Forum

errors when compiling ps6000con.c

Post your C and C++ discussions here

errors when compiling ps6000con.c

Postby TMoabalobelo » Tue Nov 22, 2011 8:36 am

hi,

i've been trying to compile(using codeblocks compiler) the example provided with the picoscope 6000. I'm getting the following errors:
error: field 'type' has incomplete type
error: field 'type' has incomplete type
error: field 'aux' has incomplete type
error: field 'ext' has incomplete type
error: field 'channelD' has incomplete type
error: field 'channelC' has incomplete type
error: field 'channelB' has incomplete type
error: field 'channelA' has incomplete type

no modifications where in the original code.

thankss in advance
TMoabalobelo
Newbie
 
Posts: 0
Joined: Tue Nov 22, 2011 8:02 am

Re: errors when compiling ps6000con.c

Postby Martyn » Tue Nov 22, 2011 9:03 am

It looks as if it isn't picking up enPS6000ThresholdDirection which is defined in ps6000Api.h
Martyn
Technical Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2287
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: errors when compiling ps6000con.c

Postby TMoabalobelo » Mon Nov 28, 2011 10:03 am

Hi,
i managed to fix the errors, thanks. Now the code is executing fine, but then it fails to open the device. I get the following message on the output:
PS6000 driver example program
Version 1.1

opening the device...
handle: 0
Unable to open device
Error code: 3

Your help in this regard will be highly appreciated.

Thanks
TMoabalobelo
Newbie
 
Posts: 0
Joined: Tue Nov 22, 2011 8:02 am

Re: errors when compiling ps6000con.c

Postby Martyn » Mon Nov 28, 2011 10:58 am

It means the application/driver can't find the device and so is unable to open it. This may be because it has been opened by something else (Picoscope), the device isn't present (check device manager), or you are trying to open by serial number and the strings don't match.
Martyn
Technical Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2287
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: errors when compiling ps6000con.c

Postby TMoabalobelo » Wed Nov 30, 2011 12:26 pm

Hi,

i managed to fix the errors. the code is now working fine.
im still strugling to trigger the oscilloscope externaly using a microntroller. Is is possible thought?

thanks
TMoabalobelo
Newbie
 
Posts: 0
Joined: Tue Nov 22, 2011 8:02 am


Return to C and C++

Who is online

Users browsing this forum: No registered users and 0 guests