02-11-2010 01:03 AM
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.
02-11-2010 02:11 PM
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.
02-13-2010 04:42 AM
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
02-15-2010 10:01 AM
Here is the correct link:
http://digital.ni.com/public.nsf/allkb/CCF6A96A221CBCAB86256B64007AA660?OpenDocument
02-16-2010 08:21 AM
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?
02-19-2010 12:29 PM
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.