Z E S ZIMMER Electronic Systems GmbH Chapter 10
223
PRINT USING "Answer:& Value1: ##.####A Value2: ###.###V"; readans$; val1; val2
LOOP UNTIL INKEY$ = CHR$(32) ' Loop, until SPACE bar pressed
PRINT #1, "gtl" + CHR$(10); ' Go back to local mode
CLOSE #1
FUNCTION readans$
answer$ = ""
DO
a$ = INPUT$(1, 1) ' Read character from interface
IF a$ <> CHR$(10) THEN ' If it is not the EOS character
answer$ = answer$ + a$ ' add character to answer string
END IF
LOOP WHILE a$ <> CHR$(10) ' Loop until EOS is reached
readans$ = answer$ ' return answer
END FUNCTION
10.2.18 Testing the interface using a terminal program
For testing the interface, or how any commands work it is recommended to use a terminal
program (e.g. Hyperterminal under WINDOWS).
Setup the LMG450 pressing IF/IO several times until you reach the IF/IO menu. With IF you
reach the setup menu. If the instrument should be in the remote state switch it back to local by
Goto Local. Choose the profile ‘ComA: Terminal’ and connect the ComA jack with a 1:1
cable to your PC.
Now setup you computer. Start you terminal program and set it up to 9600Baud, 8Data Bit,
1Stop Bit, No Parity and No Protocol. Select the correct com port of your computer.
If you now type in ‘*IDN?’ and press Return, the status bar of LMG450 should change from
‘Active Local’ to ‘Active Remote’. If not, check if the characters you typed in are echoed on
your screen or not.
If everything is ok, then you get an answer string with the manufacturer, the device, the serial
number and the software version.
If all this fails, check all settings and cables and try again.
10.2.19 SCPI command Example
This shows you as an example (in SCPI language), what you could send, what the instrument
should answer and some comments about this. Some of the responses like measuring values
depend on measured signals, so they may be different, if you try this examples. This examples
work with a new powered on instrument (no commands before!). For testing some functions
we recommend to use the RS232 interface, because it is much more simple to use than the
IEEE interface. In principal the example works with both interfaces. This should help you to
program your requests and to understand how to communicate with the instrument.
Содержание LMG450
Страница 1: ...4 Channel LMG450 Power Meter User manual Status 2009 02 17...
Страница 2: ......
Страница 4: ......
Страница 5: ......
Страница 6: ......
Страница 8: ......
Страница 10: ......
Страница 18: ......
Страница 22: ......
Страница 36: ......
Страница 76: ......
Страница 102: ......
Страница 112: ......
Страница 118: ......
Страница 124: ......
Страница 230: ......
Страница 240: ......
Страница 270: ...System design LMG450 270 14 2 Functional block diagram LMG450 Figure 47 Functional block diagram LMG450...
Страница 292: ......