Test and Measurement Forum

PROBLEM IN OPEN LPT FROM VB6 adc-212

Post general discussions on using our drivers to write your own software here

PROBLEM IN OPEN LPT FROM VB6 adc-212

Postby epiksrl » Mon Jan 23, 2006 5:58 pm

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
epiksrl
Active User
Active User
 
Posts: 5
Joined: Mon Jan 23, 2006 5:53 pm

Postby Michael » Tue Jan 24, 2006 9:25 am

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
Michael
Zen Master
Zen Master
 
Posts: 656
Joined: Thu Jul 07, 2005 12:41 pm
Location: St Neots, Cambridgeshire

Postby epiksrl » Mon Jan 30, 2006 10:38 am

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
Active User
Active User
 
Posts: 5
Joined: Mon Jan 23, 2006 5:53 pm

Postby epiksrl » Tue Jan 31, 2006 10:58 am

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?
epiksrl
Active User
Active User
 
Posts: 5
Joined: Mon Jan 23, 2006 5:53 pm

Postby Michael » Tue Jan 31, 2006 11:27 am

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
Michael
Zen Master
Zen Master
 
Posts: 656
Joined: Thu Jul 07, 2005 12:41 pm
Location: St Neots, Cambridgeshire

Postby epiksrl » Tue Jan 31, 2006 11:45 am

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
epiksrl
Active User
Active User
 
Posts: 5
Joined: Mon Jan 23, 2006 5:53 pm

Postby Michael » Mon Feb 06, 2006 2:23 pm

Hello,

Sorry,

You will need to install the adc200.sys file.

Best regards,
Michael
Michael - Tech Support
Pico Technology
Web Support Forum
Michael
Zen Master
Zen Master
 
Posts: 656
Joined: Thu Jul 07, 2005 12:41 pm
Location: St Neots, Cambridgeshire


Return to General Software Discussions

Who is online

Users browsing this forum: No registered users and 1 guest