12-30-2009 01:30 PM
Solved! Go to Solution.
12-30-2009 01:38 PM
01-08-2010 07:21 AM
Thank you Dennis.
I'm not exactly new to programming but I am just a beginner vith VB. It's been 30 years since my last instrument control program and things have changed a lot since then. I did as you suggested but the files require conversion to VB2008 which my computer won't do.
Notwithstanding, I need to discover how to send the command string that I write in VB to the NI488.2 interface and subesequently to the device (HP 437B power meter).
For instance:
DIM DEVice As String = "ibdev 0 13 0 13 1 0"
DIM RESet As String = "ibclr"
DIM IDEnt As String = "ibwrt"*IDN?""
Then what do I need to do to send these commands to the device and have it respond?
01-08-2010 10:24 AM
01-12-2010 11:59 AM
01-12-2010 12:07 PM
01-18-2010 12:04 PM
I believe that I now have the .Net framework installed and am able to read the examples.
When I open create new project the windows forms application message reads "A project for creating an application with a windows user interface (.Net framework). So I double click Form 1, and using the example DMMSimple enter under Public Class Form 1 (Declairations) the first two lines of the example: Imports NationalInstruments.NI4882 (next line) Imports VB = Microsoft.VisualBasic. At this time I get an error "Imports statements must preceed any declarations" Can anyone tell me what I am doing wrong?
01-20-2010 10:00 AM
01-21-2010 07:47 AM
Thanks for your response. The Imports VB = Microsoft.VisualBasic statement was listed in the DMMSimple example which was why I entered it. Of course, as you say, it is invalid. I guess what I am asking for is an example of what to enter to initialize the NI interface. That is, to allow Visual Basic to open the interface so that I can send commands to my HP 437B power meter. I have been attempting this for weeks and haven’t gotten anywhere. Once I have accomplished this I can begin learning and developing my project and make some progress.
01-21-2010 11:10 AM