trouble adding reference to library

Post your .Net discussions here
Post Reply
kevin1975
Newbie
Posts: 0
Joined: Fri Jun 22, 2018 5:39 pm

trouble adding reference to library

Post by kevin1975 » Mon Jun 25, 2018 5:23 pm

Hi,

I'm writing some simple code in C# using visual studio to read the channels on a model 2206B oscilloscope. When I try to add a reference to PS2000a.dll, MVS gives the following error message:

A reference to 'C:\Program Files (x86)\PicoTechnology\PicoScope6\PS2000a.dll' could not be added. Please make sure that the file is accessible, and that it is a valid assembly or COM component.

Is this the correct using directive or do I need to reference a different library?

Thanks for the help!

Martyn
Site Admin
Site Admin
Posts: 3225
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: trouble adding reference to library

Post by Martyn » Mon Jun 25, 2018 8:35 pm

Have you checked our 2000a C# example on GitHub
Martyn
Technical Support Manager

kevin1975
Newbie
Posts: 0
Joined: Fri Jun 22, 2018 5:39 pm

Re: trouble adding reference to library

Post by kevin1975 » Tue Jun 26, 2018 3:43 pm

Do you have a C# example that's easier to understand, something that doesn't require a wrapper?

Martyn
Site Admin
Site Admin
Posts: 3225
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: trouble adding reference to library

Post by Martyn » Wed Jun 27, 2018 8:07 am

I pointed you at the GitHub examples so that you can see how we use the imports to define the dll functions.

If you email your current project (without exe and dll files) to support@picotech.com with a full description showing exactly what you are trying to do, we will be able to point you in the right direction.
Martyn
Technical Support Manager

TimOster
Advanced User
Advanced User
Posts: 45
Joined: Mon Dec 01, 2014 5:36 pm

Re: trouble adding reference to library

Post by TimOster » Wed Sep 19, 2018 5:05 pm

I write in Visual Studio, but for vb.net. When I use the labjack I reference the LJUDDotNet.dll file. It is located in the \Drivers folder, not the PicoScope6 folder.

Post Reply