11-03-2008 10:27 AM
I am trying to develop a device emulator on a Windows XP. I have another machine that is a controller and I want to test that it is issuing the correct commands.
I am using C#.NET. I have all the latest drivers installed. I have referenced NationalINstruments.Common and NationalInstruments.NI4882 in my Visual Studio Project. I have created a device object but I am unsure how to set up an event that will listen for communication from the Controller.
Is it possible to write an application that will react to a controller on another computer and respond like a device on the GPIB Bus?
If there are tutorials out there about this please point me in the write direction.
Thanks,
Greg
11-04-2008 06:03 PM
Hi Greg,
The GPIB devices don't do this naturally, but you can write code that will listen for a certain amount of time then process a command if one came in. There's a Knowledge Base article on PC to PC communication with GPIB and there is an example in C. http://digital.ni.com/public.nsf/allkb/9CC0939663F1C5DE862565D70082E89E?OpenDocument This won't include a true interrupt if a command comes in, but it will allow you to make a reasonable simulator.
National Instruments