problems using your app.note: "ADC1132" for visual

 
Post new topic   Reply to topic    Pico Technology Forum Index -> Getting Started
Author Message
Gulakur Matras
User
User


Joined: 20 Jun 2007
Posts: 3

PostPosted: Wed Jun 20, 2007 12:32 pm    Post subject: problems using your app.note: "ADC1132" for visual Reply with quote

We have just bought a PICO adc11/12. Our plan is to use is in some of our test equipment.
Normally we make our programming in VisualBasic, so I have tried your App.note “ADC1132” for VisualBasic.

I am using port 1 as input port.
There is no problem to open it. When I choose the Open- bottom I get:

ADC-11 opened
ADC-11 V1 on LPT1
Pico.sys V2.1

If I choose the “Start Slow” bottom I only get one value: 2500mV.
I have tried to step my through the program to read the value from acd11_get_value and the only value I get is 1023. even if I have the port shorted to gnd.

Can the problem be that this ACD11 app. is for the 10bit logger and not for the 12-bit logger. If yes, are there an app.note for the 12bit logger.
Back to top
davidj
Site Admin
Site Admin


Joined: 11 Oct 2006
Posts: 67
Location: St. Neots, Cambs, UK

PostPosted: Fri Jun 22, 2007 10:19 am    Post subject: Reply with quote

Hi
Sorry to hear you are having problems.
There are three HW versions of the parallel port ADC11. V1 is the original 10 bit device. V2 and V3 are the new 10 and 12 bit devices respectively and we have been selling these for a long time now.

One of the problems with the V1 device is that you cannot tell if the device is connected to the port. The other two versions can be detected therefore if no device is connected to the port we have to assume that there is a V1 device there. This is the reason why HW verison 1 is reported in device info.

You should be seeing V3 in the device information to indicate that the adc11/12 is being found correctly. The kernel driver seems to be loaded properly so it could just be a problem with the parallel port. You can try the usual things, new parallel cable, use ouput only.

Please let me know how you get on.
Back to top
Gulakur Matras
User
User


Joined: 20 Jun 2007
Posts: 3

PostPosted: Fri Jun 22, 2007 11:58 am    Post subject: Reply with quote

Hello David.
First, tank you for your answer. There is information I have forgotten to give you. This ADC11/12 data logger is an USB-device and not a parallel port device.
Therefore, the problem is not the cable from the device to computer (USB-cable).
I have tried to make a breakpoint I the VisualBasic source code after: “ADC-11 opened”.
To find out of what value is send from the device and listed in: “acd11_get_unit_info(S, 255, 1, port)”. This value is: 17 and the result in the list is: “ADC11 V1 on LPT1”.

Best regards.
Gulakur Matras.
Back to top
ziko
Site Admin
Site Admin


Joined: 01 Dec 2006
Posts: 658
Location: St Neots

PostPosted: Mon Jun 25, 2007 10:54 am    Post subject: Reply with quote

Hi , you are using the ADC11 parallel ported example, there are two sets of programming examples, ones for the Parallel ADC11 and ones for the USB ADC11.

However you can still use the parallel ported ones by putting the following

adc11_open_unit (101,111)

Kind regards
Back to top
Gulakur Matras
User
User


Joined: 20 Jun 2007
Posts: 3

PostPosted: Mon Jun 25, 2007 12:47 pm    Post subject: Reply with quote

Hello Ziko.
I have found out it. I have to use the usbadc11.dll.
But do you know if it is possible to get a description of all calls for the usbadc11.dll?

Best regards.

Gulakur
Back to top
ziko
Site Admin
Site Admin


Joined: 01 Dec 2006
Posts: 658
Location: St Neots

PostPosted: Mon Jun 25, 2007 1:55 pm    Post subject: Reply with quote

Hi there is no documentation for the USB function calls however they are very similar to the ones of the Parallel ADC11.


Kind regards
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Pico Technology Forum Index -> Getting Started
All times are GMT
Page 1 of 1

 


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