Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Instrument Drivers

Hello,

I have written many VB6 applications to control instrumentation. I just got Measurement Studio 2012 to run on Visual Studio 2010.  I would love to use the available interment drivers available from NI. I have no problem importing the driver into the code but every time I try and call it I get an error of

‘is not declared’

For example using the HP 33120A from http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=E3B19B3E96B8659CE034080020E748...

  1. I install the driver then restart the computer.
  2. In Visual Studio 2010 (VB.NET) I select Add – New Item
  3. Select NI Instrument Driver
  4. Browse to the driver. In this case C:\Program Files\IVI Foundation\IVI\Drivers\hp33120a\hp33120a.fp
  5. Click Next
  6. Click Finish
  7. I open a form then add a button and text box.
  8. In the Button Click event I try and add a call to the Instrument driver.
  9. I get ‘ ConfigureAMEnabled is not declared’

So what am I missing?

What would be very helpful is a Visual Studio 2010 (VB.NET) software example using Measurement Studio 2012 and any interment driver.    

 

Thank You for the help

 

0 Kudos
Message 1 of 2
(4,943 Views)

Hello PMEL_TMDE,

 

Looks like you may not be using your functions in quite the right way.  Please see the white paper here: http://www.ni.com/white-paper/4562/en#toc2 and use the example under the "Calling an instrument driver wrapper class" heading.  Please let me know if that helps!

 

Regards, 

 

Patrick W.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(4,927 Views)