Driver / DLL

 
Post new topic   Reply to topic    Pico Technology Forum Index -> .Net Languages (C#, VB.Net, .)
Author Message
menhwa
User
User


Joined: 13 Mar 2008
Posts: 3

PostPosted: Thu Mar 13, 2008 8:22 am    Post subject: Driver / DLL Reply with quote

Actually how do I get those instruments' driver/ DLL?
Back to top
gruntman
Guru
Guru


Joined: 28 Sep 2006
Posts: 88
Location: Garden City, KS USA

PostPosted: Thu Mar 13, 2008 4:16 pm    Post subject: Reply with quote

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
Back to top
menhwa
User
User


Joined: 13 Mar 2008
Posts: 3

PostPosted: Thu Mar 20, 2008 9:02 am    Post subject: Reply with quote

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.
Back to top
gruntman
Guru
Guru


Joined: 28 Sep 2006
Posts: 88
Location: Garden City, KS USA

PostPosted: Thu Mar 20, 2008 6:25 pm    Post subject: Reply with quote

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
Back to top
menhwa
User
User


Joined: 13 Mar 2008
Posts: 3

PostPosted: Fri Mar 21, 2008 1:39 am    Post subject: Reply with quote

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.
Back to top
gruntman
Guru
Guru


Joined: 28 Sep 2006
Posts: 88
Location: Garden City, KS USA

PostPosted: Fri Mar 21, 2008 2:27 pm    Post subject: Reply with quote

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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Pico Technology Forum Index -> .Net Languages (C#, VB.Net, .)
All times are GMT
Page 1 of 1

 


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