ADC11 opening problems

Having problems ? let us know the details here
Post Reply
gerdenis

ADC11 opening problems

Post by gerdenis » Thu Feb 05, 2004 9:18 pm

I develop programs (VB6 and Delphi7) which use an ADC11 converter. With initialization, I need to know if a converter is connected and if it is a V1 or V2 type. I use ADC11_open_unit and ADC11_get_unit_info (the same code as in the ADC1132.vbp or ADC11.dpr examples).

With V1 type, I get
ADC11 opened
ADC11 V1 on LPT1
pico.sys V1.5
(no rate informations)

With V2 type
ADC11 opened
ADC11 V2 on LPT1
pico.sys V1.5
(no rate informations)

Without connected converter
ADC11 opened
ADC11 V1 on LPT1
pico.sys V1.5
(no rate informations)


Have you an explanation?
I use XP Pro. I installed the drivers, not PicoLog, PicoScope
I have same the problem on another PC with W98

Thank you for answer

Gérard

User avatar
markspencer
Site Admin
Site Admin
Posts: 598
Joined: Wed May 07, 2003 9:45 am

Post by markspencer » Fri Feb 06, 2004 10:37 am

Hi,

When connecting the ADC-11, and calling the function to open the unit, it will return true whether the unit is connected or not. This function is actually returning the state of the port. If it opened the port then true is returned, but if a problem arises from attempting this then false will be returned.

Therefore, when the ADC-11's get info funtion is called, it will return the V1, even if the unit is not a unit attached. Unfortunately, there is not soultion to find out if a unit is connected, unless you know that only V2's are being used.

Best regards,
Regards,

Mark Spencer

Post Reply