Everything worked yesterday, today is another story so maybe I am missing some initialization in my code. Although NI Spy doesn't really tell me things that are done differently...
When I use Measurement and Automation Explorer, the instrument works fine and returns IDN but when I use this (simplified for readability) code (which worked previously), it times out:
Board oBoard = new Board(0);
oBoard .SendInterfaceClear();
foreach (Address oAddress in oBoard .FindListeners())
{
Device oDevice = new Device(oBoard .PrimaryAddress, oAddress);
oDevice.Clear();
oDevice.Write("*IDN?");
String Response = oDevice.ReadString(); // TIMEOUT
}
What am I missing? All other instruments are fine with this code.
- Sami