Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I use Ibnotify with VB.net

Hi,
 
I'm a newbie with developing solutions with vb.net. I will use Ibnotify(ud as Integer, mask as integer, callback as nationalinstruments.NI4882.notifycallbackfunctions, Refdata as object) as integer.
 
I will use this function to get back when there is a reading in a outputbuffer from a counter, so my application can do something else in the main time. Does anybody knows how this works, maybe you have example code?
 
gr. Nicos
0 Kudos
Message 1 of 3
(3,404 Views)
Difficult Question????
0 Kudos
Message 2 of 3
(3,386 Views)

The ibXXX functions are wrappers around the flat C API. You should use the NationalInstruments.NI4882.dll instead which was a .NET API designed for use with VB.NET and C# and works like the .NET framework( makes use of delegates, exceptions and so on). The API help is integrated with VS 2003 and is included with the 488.2 driver for no additional charge. Examples are included as well. It does not require Measurement Studio.

You can find an example of usign Notify under C:\Program Files\National Instruments\MeasurementStudioVS2003\DotNET\Examples\GPIB\Notify, once you install the .NET support.

Bilal Durrani
NI
0 Kudos
Message 3 of 3
(3,374 Views)