Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Application which will act like a GPIB instrument

Hi,

 

Sorry for my bad English. 

I wrote an application in c# which simulates spectrum.

What I want do now is to control it from other computer through GPIB (Of course I have a gpib card in both computers).

how can I "make" the computer which connected to the spectrum simulator, to think the spectrum computer is an instrument,

or simply putted - how to send command from one PC to another.

 

Thank you. 

0 Kudos
Message 1 of 6
(4,208 Views)

Hi qipi,

 

It is definately possible to communicate between 2 GPIB cards - we just need to make sure that both cards are online, are addressed differently, and that only one is specified as the controller in charge.  Please follow the steps in this KnowledgeBase article:

 

Connecting 2 GPIB cards to the same bus

 

Once the GPIB card on the machine simulating the instrument is detecte by the controllingmachine, you should be able to communicate as if the simulating machine is an instrument.

Al B.
Staff Software Engineer - TestStand
CTA/CLD
0 Kudos
Message 2 of 6
(4,183 Views)

Connecting 2 GPIB cards to the same bus

 

this link will not work poutside NI !

 

i tried to find but the search on above text did generate too much hits

greetings from the Netherlands
0 Kudos
Message 3 of 6
(4,151 Views)

Here is the correct link:

 

http://digital.ni.com/public.nsf/allkb/CCF6A96A221CBCAB86256B64007AA660?OpenDocument

Richard S -- National Instruments -- (former) Applications Engineer -- Data Acquisition with TestStand
0 Kudos
Message 4 of 6
(4,123 Views)

Hi again, and 10x for the replay.

 

 

I connected the two computers, and I used MAX to communicate and it indeed found the other computer.

 

 

My question now is how can I send a message to the "master computer" after it send a "*idn?" query to the "instrument"?

 

 

I used the library NationalInstruments.VisaNS, with ResoursceManger.GetLocalManger().open(resourceString),

 

 

but I don't know which resourceString to pass - I tried "GPIB0::INSTR", but without a success.

 

 

Is there some configuration I need to modify in order to make it work?

 

 

And other thing - what it's mean to make the both GPIB cards online?

0 Kudos
Message 5 of 6
(4,102 Views)

Hi qipi,

 

Before trying to communicate with your software, use the VISA test panel in Measurement & Automation explorer (MAX) to make sure everything is able to communicate.  Make sure that both of the cards have a different address selected in MAX, and that only the controlling machine is set as the system controller.  Once you are able to communicate in the test panel, you should be able to do the same thing in your code.

Al B.
Staff Software Engineer - TestStand
CTA/CLD
0 Kudos
Message 6 of 6
(4,059 Views)