It looks like a termination problem. When you send a command string to the instrument, the string must:
- terminate with an EOI signal, or
- terminate with a termination character that the instrument wants
As for EOI, you must enable this option by using ibeot() function on NI-488.2. ibdev() also has the same feature on its additional params. As for termination character, the command string must include as in its entity. Actually most instruments that accept "*IDN?" will understand an LF (0x0A) as the terminator, therefore you can send "*IDN?\n" rather than "*IDN?".
このメッセージは 06-11-2007 10:41 AMに Makoto が編集しています。