4284A LCR미터 프로그래밍
4284A LCR미터 프로그래밍
- 전자부품
- 측정 프로그램
- 데이터 전송
- ASCII 포맷: data A, data B, status
- 12바이트 + , + 12바이트 + , + 2바이트
- FORMat:DATA REAL,64 포맷
- 64-bit 부동소수점 이진포맷
- 4바이트헤더 + data A(8바이트) + data B(8바이트) + status(8바이트) + 0^end(2바이트)10 INTEGER Header_1,Header_2,Term20 ASSIGN @Meter TO 717;FORMAT ON30 ASSIGN @Binary TO 717;FORMAT OFF40 REMOTE @Meter50 OUTPUT @Meter;"*RST;*CLS" !\60 OUTPUT @Meter;"FORM REAL,64" ! Setup70 OUTPUT @Meter;"TRIG:SOUR BUS" ! Measurement80 OUTPUT @Meter;"COMP ON" ! Condition90 OUTPUT @Meter;"INIT:CONT ON" !/100 FOR I=0 TO 9110 TRIGGER @Meter ! Perform measurement120 ENTER @Binary;Header_1,Header_2,A,B,C,D,Term! Transfer data130 PRINT A,B,C,D ! Display measurement result140 NEXT I150 END
- ASCII 포맷: data A, data B, status
- 이진포맷을 버퍼 메모리로
- 10 INTEGER Header_1,Header_2,Header_3,Term20 DIM D(127,3)30 ASSIGN @Meter TO 717;FORMAT ON40 ASSIGN @Binary TO 717;FORMAT OFF50 REMOTE @Meter60 OUTPUT @Meter;"*RST;*CLS" !\70 OUTPUT @Meter;"FORM REAL,64" ! Setup80 OUTPUT @Meter;"MEM:DIM DBUF,128" ! Measurement, 128=MAX90 OUTPUT @Meter;"TRIG:SOUR BUS" ! Condition100 OUTPUT @Meter;"COMP ON" !/110 OUTPUT @Meter;"MEM:FILL DBUF" ! Enable the buffer memory120 FOR I=0 TO 127130 OUTPUT @Meter;"TRIGGER" ! Perform the measurement 128 times140 NEXT I150 OUTPUT @Meter;"MEM:READ? DBUF" ! Transfer data160 ENTER @Binary;Header_1,Header_2,Header_3,D(*),Term170 PRINT D(*) ! Display the measurement result180 OUTPUT @Meter;"MEM:CLE DBUF" ! Disable the buffer memory190 END
- , 4284all-bas
- 형판
- 데이터 전송