Test and Measurement Forum

Driver / DLL

Post your .Net discussions here

Driver / DLL

Postby menhwa » Thu Mar 13, 2008 8:22 am

Actually how do I get those instruments' driver/ DLL?
menhwa
User
User
 
Posts: 3
Joined: Thu Mar 13, 2008 7:45 am

Postby gruntman » Thu Mar 13, 2008 4:16 pm

Menhwa,

To use the devices in a custom program you will need to call the units .dll which is located in your C:\Program Files\Pico Technology\Pico Full folder. The units dll will vary based on which product that you own but they are named after their series such as the PS3224 is in the 3000 series so its driver is ps3000.dll. Refer to the user manual which is located in the same folder to see which driver you need to call and how to call it.

Regards,

Richard Boyd
Crag Technologies, Inc
http://www.pc-oscilloscopes.com
gruntman
Guru
Guru
 
Posts: 109
Joined: Thu Sep 28, 2006 3:50 pm

Postby menhwa » Thu Mar 20, 2008 9:02 am

Hi Gruntman,

Thanks for your reply.

But some how when I try to add reference for the ".dll" file, there is a pop up message show that it is an invalid com object. So, I can't use the .dll file.

Can you please provides some help. I'm using C# for VS2005.
menhwa
User
User
 
Posts: 3
Joined: Thu Mar 13, 2008 7:45 am

Postby gruntman » Thu Mar 20, 2008 6:25 pm

Menhwa,

How are you going about calling the dll? Below is an example of a way to define the the open unit and close unit calls for the PS5000 just to give you an idea on how to implement the dll.:

private const string _DRIVER_FILENAME = "ps5000.dll";

[DllImport(_DRIVER_FILENAME, EntryPoint = "ps5000OpenUnit")]
public static extern short OpenUnit(out short handle);

[DllImport(_DRIVER_FILENAME, EntryPoint = "ps5000CloseUnit")]
public static extern short CloseUnit(short handle);

Regards,

Richard Boyd
Crag Technologies, Inc
http://www.pc-oscilloscopes.com
gruntman
Guru
Guru
 
Posts: 109
Joined: Thu Sep 28, 2006 3:50 pm

Postby menhwa » Fri Mar 21, 2008 1:39 am

Hi Gruntman,

Thanks for the info.

I have the EnviroMon products on hand, which is the EL005, EL026 with the EL030, whole set used for temperature and humidity measurements. In the "Pico Technology" folder -> "EnviroMon" folder, I found "EMD32044.DLL", is this the dll for my products?

If you can provide me a simple program that will be great. I tried your method for DllImport, after that how I going to use those API?

Thanks alot for your help.
menhwa
User
User
 
Posts: 3
Joined: Thu Mar 13, 2008 7:45 am

Postby gruntman » Fri Mar 21, 2008 2:27 pm

Menhwa,

The driver that you will want to use is the one located at C:\Program Files\Pico Technology\EnviroMon\Drivers\emw32.dll. We do not have a example program for the EnviroMon system built in the C# language. What you can do is look at the provided example in C language and convert it to C#. You can find out which files to use by looking at the EnviroMon user manual located at http://www.picotech.com/document/pdf/emw044.pdf.

Regards,

Richard Boyd
Crag Technologies, Inc
http://www.pc-oscilloscopes.com
gruntman
Guru
Guru
 
Posts: 109
Joined: Thu Sep 28, 2006 3:50 pm


Return to .Net Languages (C#, VB.Net, .)

Who is online

Users browsing this forum: No registered users and 0 guests