Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

ibnotify example in vb dotnet

Does anyone know of an example of ibnotify in vb dotnet?
0 Kudos
Message 1 of 5
(3,777 Views)
This is a very late response, but since NI does not provide any good examples of raw .NET (i.e.  non-LabView via .NET, etc.) usage, I feel someone needs to provide a real world example of programming .NET.

The documentation for the .NET library is VERY sparse, with only a few examples of the more obvious and easy to use methods, but not the more somewhat complex methods like "Notify".
 
If you have .NET, you should not be using any of the "ib" commands, as they come directly from the VB6 modules provided for use before the direct .NET driver was introduced.  To follow this simple example, you will need to download and install a recent copy of the GPIB driver software that includes the NI4882 for .NET libraries.
 
The attached example is written for single and multi-threaded applications.  Keep in mind however that I am using an object inherited from Control (Form), a class that requires only a single thread be given access it's methods and properties (the thread used to create the control/form).  Other classes may not have the same requirments.  I use this example (a class derived from Control, a Form), because it shows how to use the Notify method within all classes derived from Object.
 
Message 2 of 5
(3,687 Views)

Thanks for the help.  I ran into some problem with installing the dot net stuff from the ni488224.exe since I have dotnet 2.0 on my pc.  Do you know if there is a more recent installer that will work with 2.0?

Thanks again for the notify example

0 Kudos
Message 3 of 5
(3,659 Views)
.NET has the ability to run in Side-by-Side configuration.  You can create and compile an app in say 1.1 and it will still run on a machine with 2.0.  I think 2.0 requires that 1.1 be installed on the system to begin with anyway, so that shouldn't be a problem.  If that is not the case, install .NET 1.1 on the same machine along with 2.0.  That would be the only reason I can think of that would cause any problems (not having 1.1 installed if that's the case).
 
0 Kudos
Message 4 of 5
(3,654 Views)
I do have a PC that never had dot net 1.0 or 1.1 on it and the installer won't allow it to install.  I installed it on an older PC.  Thanks
0 Kudos
Message 5 of 5
(3,640 Views)