Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA and VS2005

I am struggling to use VISA with VS2005.
There is an example for this at
C:\Program Files\National Instruments\MeasurementStudioVS2005\DotNET\Examples\Visa\SimpleReadWrite\vb

However, it doesn't look like it has been written in VS2005 (probably written in 2003 and converted).
There aren't any comments and I can't work out what is going on.

Has anyone annotated this example with comments explaining it? Or written something similar on their own?
0 Kudos
Message 1 of 5
(3,409 Views)
Hi,
  I've commented up the example code for you - there's two modules in there - the mainform and the SelectResource, so have a look at both of them.
The windows designer makes a couple of items that you won't see "Dim"ed in the normal code, so if you're looking for mbsession or lastresource, then open up the windows designer code region and look at the top of that for the strings and VisaNS message based session.
 
Hope that helps
Thanks
 
Sacha Emery
National Instruments (UK)
// it takes almost no time to rate an answer Smiley Wink
Message 2 of 5
(3,384 Views)
Top Stuff!  Thanks Sacha.
 
I found this page useful in describing it too
 
I have also attached a modified version of your project that is more like a normal VS2005 solution.
i.e. it doesn't have the Windows Designer Region in the form (like in VB.NET 2003) but has it in a separate file.
 
/Andrew
0 Kudos
Message 3 of 5
(3,354 Views)
I hadn't seen that tutorial before. Very useful!
0 Kudos
Message 4 of 5
(3,344 Views)
Hopefully this post will contain the attachment.
0 Kudos
Message 5 of 5
(3,323 Views)