11-08-2007 03:12 AM
11-09-2007 09:30 AM
Hello Martin,
Maybe we should go over what is happening step by step. First which interface and driver are you using to communicate with the motor controller (what version of NI-488.2)?
Next, we should verify the primary address of your interface. You can set the primary address of your interface card by finding it in Max and either selecting it or right clicking on it and selecting properties (it depends on what NI-488.2 driver you have).
Next please try to change the primary address of the motor controller in ibic. You can use ibdev to open a handle to the device (ibdev 0 14 ...). 14 is the current primary address of your controller. Next try the ibpad command. If you continue to get the funny behavior, try capturing this interaction with a spy capture and post it so we can check it out. If there are no errors and the addressing is correct, it sounds like the instrument has stopped taking GPIB commands.
Does it have any controls that tell it to ignore gpib commands?
I hope this helps,
Steven T.
11-13-2007 09:21 AM
11-15-2007 05:25 PM
Martin,
I apologize. I just realized that ibpad used on a device handle would only change the primary address of the handle, not the instrument that it represents. Ibpad will not actually send a command to the instrument telling it that it is now at primary address x. Please check the manual of your instrument. Since you can only communicate with it through GPIB, it will include a command to use to change the GPIB primary adddress back to the one that your program expects.
I know that you are using another controller that does not have this problem. Maybe you could search for the command in the manual.
Steven T.