PROBLEM IN OPEN LPT FROM VB6 adc-212

Post general discussions on using our drivers to write your own software here
Post Reply
epiksrl
User
User
Posts: 5
Joined: Mon Jan 23, 2006 5:53 pm

PROBLEM IN OPEN LPT FROM VB6 adc-212

Post by epiksrl »

before beginning writing software I've tried picoscope and it works fine on lpt1 after I tried the sample on CD for VB6 but it fails immediatly when it tries to open lpt 1

what's wrong?


please help asap

Alessandro-Epik

Michael
Advanced User
Advanced User
Posts: 656
Joined: Thu Jul 07, 2005 12:41 pm
Location: St Neots, Cambridgeshire

Post by Michael »

Hello,

Please check the location of your dll files. The header file from the example may point to a different locale, causing the program to halt.

Best regards,
Michael
Michael - Tech Support
Pico Technology
Web Support Forum

epiksrl
User
User
Posts: 5
Joined: Mon Jan 23, 2006 5:53 pm

Post by epiksrl »

in the example there is

opened = adc200_open_unit(port)

and it returns 0 so fail open LPT1

The function are declared in this way
Declare Function adc200_open_unit Lib "ADC20032.dll" (ByVal port As Integer) As Integer

and the adc20032.dll is in the same path of the sample is it correct for the adc 212? I see under c:\program files\pico\ also adc1032.dll adc1132.dll adc1632.dll adc10032.dll are you sure that adc20032.dll in enough?

epiksrl
User
User
Posts: 5
Joined: Mon Jan 23, 2006 5:53 pm

Post by epiksrl »

I've solved coping all the Vb project files in the picoscope directory, and now my question is, if I've to redistribute my software what kind of dll I have to include? What are the right dipendencies?

Michael
Advanced User
Advanced User
Posts: 656
Joined: Thu Jul 07, 2005 12:41 pm
Location: St Neots, Cambridgeshire

Post by Michael »

Hello,

The ADC20032.dll file covers the ADC200 and 212 scopes. THe ADC1x32.dll files are product specific.

You will need to distribute the adc20032.dll file with your programm if you are using the ADC2xx family.

Best regards,
Michael
Michael - Tech Support
Pico Technology
Web Support Forum

epiksrl
User
User
Posts: 5
Joined: Mon Jan 23, 2006 5:53 pm

Post by epiksrl »

OK but WHY in a directory where is the dll and the vb project ONLY it doesn't works, and in the directory of the picoscope IT WORKS? maybe my software needs some other else ie particular key of the windows registry or some ini file or what?

thank you

Michael
Advanced User
Advanced User
Posts: 656
Joined: Thu Jul 07, 2005 12:41 pm
Location: St Neots, Cambridgeshire

Post by Michael »

Hello,

Sorry,

You will need to install the adc200.sys file.

Best regards,
Michael
Michael - Tech Support
Pico Technology
Web Support Forum

Post Reply