Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

NationalInstruments.Common

Hello,
 
I am getting this error when I use the .Common dll   - where can I find the version that works witht he VisaNS .. it requires the 274 version whereas I have the 243. I've searched for the newer version in vain.
 
Thank
 
david
 
Error 1 Assembly 'NationalInstruments.VisaNS, Version=8.0.20.190, Culture=neutral, PublicKeyToken=4544464cdeaab541' uses 'NationalInstruments.Common, Version=8.0.20.274, Culture=neutral, PublicKeyToken=4544464cdeaab541' which has a higher version than referenced assembly 'NationalInstruments.Common, Version=7.1.0.243, Culture=neutral, PublicKeyToken=4544464cdeaab541' c:\Documents and Settings\hasund\Desktop\Interop\Epsilon\WindowsApplication2\WindowsApplication2\WindowsApplication2\bin\Debug\NationalInstruments.VisaNS.dll WindowsApplication2
0 Kudos
Message 1 of 4
(3,730 Views)
Did you create this example or are you just running an exe?
Make sure you are using the same version of VISA that the exe was created with. You might also consider creating an installer if you just need to run something on another machine

Bilal Durrani
NI
Message 2 of 4
(3,715 Views)
Bilal
 
It's all set. I was not using the 4.0 version .. Thanks
 
Are there actual C# examples on how to use those drivers.  I am using a sample code and keep triggering an error 'null exception' when i try to read back my HP Meter string
 

string

HPAddress;

object responseString = null;

HPAddress =

"GPIB0::22::INSTR";

mbSession = (

MessageBasedSession)ResourceManager.GetLocalManager().Open(HPAddress);

respondString = mbSession.Query(

"ID?");  <-- I get an error here saying it's timing out

I tried using NI-SPY to see what is going on but the code is in C I believe and it sees the correct model number !!

0 Kudos
Message 3 of 4
(3,710 Views)
There are samples available under C:\Program Files\National Instruments\MeasurementStudioVS2005\DotNET\Examples\Visa

Isn't the query string supposed to be "*IDN?"  ?
Bilal Durrani
NI
Message 4 of 4
(3,689 Views)