Copper Mountain Technologies ACM8000T and ACM6000T. SCPI Programming Manual Revision 1

Size: px
Start display at page:

Download "Copper Mountain Technologies ACM8000T and ACM6000T. SCPI Programming Manual Revision 1"

Transcription

1 Copper Mountain Technologies ACM8000T and ACM6000T Revision

2 C O N T E N T S 1 Introduction Document Scope Reference Computer control PC Interface Software Examples Introduction to SCPI Command Tree Subsystems Optional subsystems Full and abbreviated format Case insensitivity Parameters Numerical parameters Character parameters Query commands Required commands and system status IEEE Commands Notation Syntax Mandatory IEEE488.2 parameters group... 8 *CLS... 8 *ESE... 8 *ESR?... 9 *IDN?... 9 *OPC *OPC? *RST *SRE *STB? ACM Command Group MEAS:TEMP? PATH:COUN? PATH:STAT MEM:TABL:DATA? MEM:TABL:POIN? MEM:TABL:DATE? MEM:TABL:TIME? MEM:TABL:FREQ:STAR? MEM:TABL:FREQ:STOP? MEM:TABL:TEMP? MEM:TABL:CONN? MEM:TABL:ADAP? MEM:TABL:ANAL? MEM:TABL:PLAC? MEM:TABL:OPER? MEM:TABL:THER:MAGN? MEM:TABL:THER:PHAS? MEM:TABL:THER:POIN? MEM:TABL:THER:FREQ:STAR?

3 MEM:TABL:THER:FREQ:STOP? SYST:ERR? Appendix 1. IEE488.2 Status Reporting System Appendix 2. Error Codes Appendix 3. Programming Examples

4 1 Introduction 1.1 Document Scope This manual contains descriptions of the SCPI (Standard Commands for Programmable Instruments) command set for Copper Mountain Technologies automatic calibration module (ACM) series, designed to manage the module through its USB interface. 1.2 Reference IEEE Standard , IEEE Standard Codes, Formats, Protocols and Common Commands for Use with ANSI / IEEE Std IEEE, New York, NY, SCPI Standard-1999, Standard Commands for Programmable Instruments Volume 1: Syntax and Style. SCPI Consortium, San Diego, CA, (USBTMC-USB488) Universal Serial Bus Test and Measurement Class, Subclass USB488 Specification. 2 Computer control 2.1 PC Interface The ACM module is controlled from a personal computer equipped with a standard USB interface. 2.2 Software To communicate with the device, a VISA library must first be installed on the PC. The Universal Library VISA in turn enables control of instrumentation from virtually any programming language, including C/C++, Visual Basic, MATLAB, LabView and others. The VISA library supports a variety of interfaces and protocols, including the protocol USBTMC-USB488, which is utilized for interfacing with the ACM. There are various implementations of the VISA library. Any of the VISA library implementations can be used, notably National Instruments (NI-VISA), or Agilent IO Libraries Suite. 2.3 Examples Appendix 3 of this manual contains example programs. Source code examples in C are contained in the folder Examples\USB488\C. 4

5 3 Introduction to SCPI The control protocol implemented in the ACM is based on standard USBTMC- USB488, which is based in turn on an earlier standard for control and communication with instrumentation: IEEE These standards specify the program-level command language used as SCPI-1999, Standard Commands for Programmable Instruments. SCPI commands are intended for sending symbolic messages between the host computer and the measuring device. SCPI is maintained by the SCPI Consortium ( The basic details of the standard SCPI are described below. More information about the SCPI standard can be downloaded from the SCPI Consortium website. 3.1 Command Tree SCPI Commands are organized in a tree structure, for example: :MEASure :MEMory :TEMPerature :TABLe :DATA Each tree structure forms a functional system. The beginning of each functional system is called the root, such as "MEASure" and "MEMory". Each functional system may have a lower-level subsystem. End nodes are called leaves. The complete sequence of all nodes, from root to leaf--plus the worksheet--forms the command tree. 3.2 Subsystems The colon character ( : ) separates each subsystem. Additionally, this symbol denotes a lower subsystem. The first colon in the command can be omitted, for example: MEASure:TEMPerature 3.3 Optional subsystems Some subsystems can be declared optional, if their omission does not result in ambiguity. Optional subsystems may be omitted when sending a command. Optional subsystems are enclosed in square brackets ( [ ] ). For example, if the full specification of the command is: [SOURce:]PATH:STATe the subsystem "SOURce" is optional. So both formulations are correct: SOURce:PATH:STATe and 5

6 PATH:STATe 3.4 Full and abbreviated format Each keyword in the specification of the instruction has a full and abbreviated format. The abbreviated format is denoted in uppercase. For example, the full command: MEASure:TEMPerature Can be abbreviated as: MEAS:TEMP Only the full or abbreviated form of a keyword is valid, for example, the following command is invalid: MEAS:TEMPer 3.5 Case insensitivity Commands are case insensitive. Uppercase and lowercase letters in the commands specification are used only to denote differences between the full and abbreviated commands. For example the following commands are equivalent: MEAS:TEMP meas:temp 3.6 Parameters Commands can have parameters. Parameters are separated by space. If the command has several options, they must be separated by a comma (, ). The ACM uses only two kinds of parameters: numeric and character Numerical parameters Numerical parameters are integers or real numbers. For example: *ESE Character parameters The SCPI standard allows for using input character data as parameters. For example, consider the following command: [SOURce:]PATH:STATe {A B AB},{SHORt OPEN LOAD THRU} 6

7 The first parameter takes the value A, B or AB, and the possible values of the second parameter are SHORt, OPEN, LOAD" or THRU. Symbolic parameters can be specified in a full or abbreviated format, subject to the same rules mentioned above (see Section 3.4). 3.7 Query commands Query commands are used to read parameter values from the instrument. After sending a query command, it is expected that data will be sent in the opposite direction via USB. Query commands have a question mark (? ) at the end of the command. Many commands have two types. The type without the question mark writes a parameter, and the type with the question mark reads it. For example: PATH:STATe A,SHORT PATH:STATe? A 3.8 Required commands and system status IEEE488.2 SCPI-compliant devices must support a certain set of commands and system status, specified in the standard IEEE Mandatory commands begin with an asterisk ('*'). Mandatory commands include the following: *CLS *ESE *ESE? *ESR? *IDN? *OPC *OPC? *RST *SRE *SRE? *STB? The scheme for reading system status (Status Reporting System) is provided in Appendix 1. Required commands and system status are supported by the ACM to ensure compatibility with the SCPI standards and with IEEEE

8 4 Commands 4.1 Notation This section describes the notational conventions used in the remainder of the document Syntax Symbolic expression syntax legend: < > Identifiers enclosed in < > indicate that the data should be provided to a particular type [ ] Identifiers inside square brackets [ ] may be omitted { } Identifiers enclosed by { } are designated selections. Individual elements are separated by Space The space character is used to separate commands, The comma indicates a separator between parameters Three dots indicate missing mandatory parameters 4.2 Mandatory IEEE488.2 parameters group *CLS *CLS Clears the following (no request): Error Queue Status Byte Register Standard Event Status Register *ESE *ESE <numeric> 8

9 *ESE? Sets or reads the Standard Event Status Enable Register (command/request). Parameter <numeric> from 0 to 255 Out of range Побитовое AND с числом 255 <numeric> Default value 0 *ESR? *ESR? Reads the Standard Event Status Register. Execution of the command clears the value of the register (query only) <numeric> *IDN? *IDN? Reads a string identifying the device. Format string: <manufacturer> <model> <serial number "," number of software / hardware version> (query only). Example: Planar, ACM8000T, , 1.0/01 String up to 40 characters 9

10 *OPC *OPC Sets the OPC bit (bit 0) in the Standard Event Status Register to complete all transactions (not requested). Group implemented only for compatibility, since there are no asynchronous operations in the automatic calibration module. *OPC? *OPC? Reads 1 upon completion of all operations (query only). Group implemented only for compatibility, since there are no asynchronous operations in the automatic calibration module. 1 *RST *RST Sets the module in the initial state (no request). The initial status of the requested port calibration module is LOAD. 10

11 *SRE *SRE <numeric> *SRE? Sets or reads the Service Request Enable Register (command/request) Parameter <numeric> from 0 to 255. Out of range Bitwise AND with the number 255 <numeric> Default value 0 *STB? *STB? Reads the Status Byte Register (query only). <numeric> 11

12 4.3 ACM Command Group MEAS:TEMP? MEASure:TEMPerature? Reads the temperature inside the enclosure calibration module (inquiry only) in units of C. Units С (degrees Celsius) <numeric> PATH:COUN? [SOURce:]PATH:COUNt? {A B AB} Reads the number of unique states for each port or between the two ports of the calibration module (query only) Parameter A B AB : Port A : Port B : Thru between Ports А and В Invalid Parameter An error occurs and the command is ignored. <numeric> 12

13 PATH:STAT [SOURce:]PATH:STATe {A B AB},{SHORt OPEN LOAD THRU ATTenuator LOAD2 OPEN2} [SOURce:]PATH:STATe? {A B AB} Sets or reads the state of each port or state between the two ports of the calibration module (command / request) A B AB : Port A : Port B : Between Ports А and В Parameters SHORt OPEN LOAD THRU ATTenuator OPEN2 LOAD2 : Short state of reflection : Open state of reflection : Load state of reflection : Thru state with lowest possible attenuation : Thru state with high attenuation : Second open state* : Second load state* Invalid Parameter An error occurs and the command is ignored. Furthermore, the parameters SHORt OPEN LOAD OPEN2 LOAD2 can be specified only in conjunction with Parameter A or B, and Parameters THRU ATTenuator can be specified only in conjunction with Parameter AB, otherwise an error occurs and the command is ignored. {SHOR OPEN LOAD THRU ATT LOAD2 OPEN2 NONE} Note NONE is read when the query pair is invalid, for example when a query is made for AB and one of the states of reflection * ACM8000T only 13

14 MEM:TABL:DATA? MEMory:TABLe:DATA? {A B AB},{SHORt OPEN LOAD T11 T21 T12 T22 A11 A21 A12 A22 LOAD2 OPEN2}[,{FACTory USER1 USER2 USER3}] Reads calibration characterization data from the module memory (inquiry only). The arrays contain S-parameters of the ACM for each of the module states. For states of reflection (SHORt, OPEN, LOAD, LOAD2, OPEN2) the memory array contains S11 for each port. For states of transmission ((THRU, ATT) the memory array contains four S parameters: S11, S21, S12, and S22. Each command call returns the array for one S-parameter according to the specified parameters. All S-parameter arrays are presented in the format of log amplitude (db) and phase (degrees). The array size is 2N, where N is the number of points on the frequency axis. For the n-th point, where n is from 1 to N: <numeric 2n 1> <numeric 2n> logarithmic amplitude S-parameter, in db; phase S-parameter, in degrees. A B AB : Port A of the module : Port B of the module : Path between Ports A and B of the module Parameters SHORt OPEN LOAD T11 T21 T12 T22 A11 A21 A12 A22 OPEN2 LOAD2 : Array containing S11 data of SHORt : Array containing S11 data of OPEN : Array containing S11 data of LOAD : Array containing S11 data of THRU : Array containing S21 data of THRU : Array containing S12 data of THRU : Array containing S22 data of THRU : Array containing S11 data of ATTenuator : Array containing S21 data of ATTenuator : Array containing S12 data of ATTenuator : Array containing S22 data of ATTenuator : Array containing S11 data of OPEN2* : Array containing S11 data of LOAD2* FACTory : Factory data (default) USER1 : User data 1 USER2 : User data 2 USER3 : User data 3 14

15 Invalid Parameter An error occurs and the command is ignored. In addition, the parameters SHORt OPEN LOAD LOAD2 OPEN2 may only be specified in conjunction with A or B, and the parameters T11 T21 T12 T22 A11 A21 A12 A22 may only be specified in conjunction with AB, otherwise an error occurs and the command is ignored <numeric 1>, <numeric 2>, <numeric 2N> * ACM8000T only MEM:TABL:POIN? MEMory:TABLe:POINts? {[FACTory] USER1 USER2 USER3} Reads the number of points in the characterization table of the ACM (inquiry only). A value of zero means that there is no characterization. Factory characterization never reads a zero value, since it can not be omitted. Parameter FACTory : Factory data (default) USER1 : User data 1 USER2 : User data 2 USER3 : User data 3 Invalid Parameter An error occurs and the command is ignored. <numeric> 15

16 MEM:TABL:DATE? MEMory:TABLe:DATE? {[FACTory] USER1 USER2 USER3} Returns date of ACM characterization (inquiry only). Parameter FACTory : Factory data (default) USER1 : User data 1 USER2 : User data 2 USER3 : User data 3 Invalid Parameter An error occurs and the command is ignored. <numeric 1>, <numeric 2>, <numeric 3> where: <numeric 1> year from 1900 to2999; <numeric 2> month from 1 to12; <numeric 3> day from 1 to31. 16

17 MEM:TABL:TIME? MEMory:TABLe:TIME? {[FACTory] USER1 USER2 USER3} Returns time of ACM characterization (inquiry only). Parameter FACTory : Factory data (default) USER1 : User data 1 USER2 : User data 2 USER3 : User data 3 Invalid Parameter An error occurs and the command is ignored. <numeric 1>, <numeric 2>, <numeric 3> where: <numeric 1> mour from 0 to23; <numeric 2> minute from 0 to59; <numeric 3> second from 0 to59. MEM:TABL:FREQ:STAR? MEMory:TABLe:FREQuency:STARt? {[FACTory] USER1 USER2 USER3} Reads the start frequency of the ACM characterization data (inquiry only). Parameter FACTory : Factory data (default) USER1 : User data 1 USER2 : User data 2 USER3 : User data 3 Invalid Parameter An error occurs and the command is ignored. Units Hz (Hertz) <numeric> 17

18 MEM:TABL:FREQ:STOP? MEMory:TABLe:FREQuency:STOP? {[FACTory] USER1 USER2 USER3 } Reads the stop frequency of the ACM characterization data (inquiry only). Parameter FACTory : Factory data (default) USER1 : User data 1 USER2 : User data 2 USER3 : User data 3 Invalid Parameter An error occurs and the command is ignored. Units Hz (Hertz) <numeric> MEM:TABL:TEMP? MEMory:TABLe:TEMPerature? {[FACTory] USER1 USER2 USER3} Reads the temperature of the ACM characterization data (inquiry only). Parameter FACTory : Factory data (default) USER1 : User data 1 USER2 : User data 2 USER3 : User data 3 Invalid Parameter An error occurs and the command is ignored. Units С (degrees Celsius) <numeric> 18

19 MEM:TABL:CONN? MEMory:TABLe:CONNector? {A B},{[FACTory] USER1 USER2 USER3} Reads the connector type of the ACM (inquiry only). A B : ACM Port A : ACM Port B Parameter FACTory : Factory data (default) USER1 : User data 1 USER2 : User data 2 USER3 : User data 3 Invalid Parameter An error occurs and the command is ignored. <string> MEM:TABL:ADAP? MEMory:TABLe:ADAPter? {A B}, {[FACTory] USER1 USER2 USER3} Reads the type of adapters if adaptors were used to characterize the module (inquiry only). A B : порт A калибровочного модуля : порт B калибровочного модуля Parameter FACTory : Factory data (default) USER1 : User data 1 USER2 : User data 2 USER3 : User data 3 Invalid Parameter An error occurs and the command is ignored. <string> 19

20 MEM:TABL:ANAL? MEMory:TABLe:ANALyzer? {[FACTory] USER1 USER2 USER3} Reads the type of analyzer which was used to characterize calibration module (inquiry only). Parameter FACTory : Factory data (default) USER1 : User data 1 USER2 : User data 2 USER3 : User data 3 Invalid Parameter An error occurs and the command is ignored. <string> MEM:TABL:PLAC? MEMory:TABLe:PLACe? {[FACTory] USER1 USER2 USER3} Reads the location of calibration of the module (inquiry only). Parameter FACTory : Factory data (default) USER1 : User data 1 USER2 : User data 2 USER3 : User data 3 Invalid Parameter An error occurs and the command is ignored. <string> 20

21 MEM:TABL:OPER? MEMory:TABLe:OPERator? {[FACTory] USER1 USER2 USER3} Reads the name of the operator who performed the ACM characterization (inquiry only). Parameter FACTory : Factory data (default) USER1 : User data 1 USER2 : User data 2 USER3 : User data 3 Invalid Parameter An error occurs and the command is ignored. <string> 21

22 MEM:TABL:THER:MAGN? MEMory:TABLe:THERmocompensation:MAGNitude? {A B AB},{SHORt OPEN LOAD T21 T12 T11 T22 A21 A12 A11 A22 LOAD2 OPEN2} Reads the the coefficient of magnitude temperature compensation (km) for the transmission or reflection parameter corresponding to the specified state of the ACM (inquiry only). Temperature compensation is used to improve the calibration accuracy by compensating for changes in the parameters of the ACM resulting from changes in its internal temperature. Magnitude coefficients of compensation are applied to the magnitude data read by the command MEM:TABL:DATA?. Mc = M km ΔT, Mc compensated magnitude (db), M uncompensated magnitude (db), km magnitude temperature compensation coefficient(db/ C), ΔT temperature change ( C). ΔT = T char T, T char temperature of characterization (MEM:TABL:TEMP?), T current internal temperature of the module (MEAS:TEMP?) Temperature compensation can be applied to both the factory characterization data and to user data characterizations. The array size of the temperature compensation coefficients is N, where N is the number of points on the frequency axis (MEM:TABL:THER:POIN?). The points are spaced linearly between the start and stop frequencies (MEM:TABL:THER:FREQ:STAR?, MEM:TABL:THER:FREQ:STOP?). The size of the temperature compensation coefficients array may not match the size of the user characterization array. Furthermore, the user characterization may be performed at other frequencies. In such cases it is possible to use linear interpolation to determine the coefficients of thermal compensation of frequency points other than the frequencies at which they are specified. For n-th point, where n is from 1 to N: <numeric n> magnitude temperature compensation coefficient of the reflection or transmission of the specified single state of the calibration module (db/ C). 22

23 A B AB : Port A of the module : Port B of the module : Between Ports A and B of the module Parameters SHORt : Short state of reflection OPEN : Open state of reflection LOAD : Load state of reflection T21 : S21 of Thru transmission state T12 : S12 of Thru transmission state T11 : S11 of Thru transmission state T22 : S22 of Thru transmission state A21 : S21 of Attenuator transmission state A12 : S12 of Attenuator transmission state A11 : S11 of Attenuator transmission state A22 : S22 of Attenuator transmission state OPEN2 : Second open state of reflection * LOAD2 : Second load state of reflection * Invalid Parameter An error occurs and the command is ignored. In addition, the parameters SHORt OPEN LOAD LOAD2 OPEN2 may only be specified in conjunction with A or B, and the parameters T11 T21 T12 T22 A11 A21 A12 A22 may only be specified in conjunction with AB, otherwise an error occurs and the command is ignored <numeric 1>, <numeric 2>, <numeric N> Related Commands MEM:TABL:THER:POIN? MEM:TABL:THER:FREQ:STAR? MEM:TABL:THER:FREQ:STOP? MEM:TABL:DATA? MEM:TABL:TEMP? MEAS:TEMP? * ACM8000T only 23

24 MEM:TABL:THER:PHAS? MEMory:TABLe:THERmocompensation:PHASe? {A B AB},{SHORt OPEN LOAD T21 T12 T11 T22 A21 A12 A11 A22 OPEN2 LOAD2} Reads the phase coefficient of temperature compensation (kp) for the transmission or reflection parameter corresponding to the specified state of the ACM (inquiry only). Temperature compensation is used to improve the calibration accuracy by compensating for changes in the parameters of the ACM resulting from changes in its internal temperature. Phase coefficients of compensation are applied to the phase data read by the command MEM:TABL:DATA?. Pc = P kp ΔT, Pc compensated phase(deg), P uncompensated amplitude (deg), kp phase temperature compensation coefficient (deg/ C), ΔT temperature change ( C). ΔT = T char T, T char temperature of characterization (MEM:TABL:TEMP?), T current internal temperature of the module (MEAS:TEMP?) Temperature compensation can be applied to both the factory characterization data and to user data characterizations. The array size of the temperature compensation coefficients is N, where N is the number of points on the frequency axis (MEM:TABL:THER:POIN?). The points are spaced linearly between the start and stop frequencies (MEM:TABL:THER:FREQ:STAR?, MEM:TABL:THER:FREQ:STOP?). The size of the temperature compensation coefficients array may not match the size of the user characterization array. Furthermore, the user characterization may be performed at other frequencies. In such cases it is possible to use linear interpolation to determine the coefficients of thermal compensation of frequency points other than the frequencies at which they are specified. For n-th point, where n is from 1 to N: <numeric n> phase temperature compensation coefficient of the reflection or transmission of the specified single state of the calibration module (deg/ C). 24

25 A B AB : Port A of the module : Port B of the module : Between Ports A and B of the module Parameters SHORt : Short state of reflection OPEN : Open state of reflection LOAD : Load state of reflection T21 : S21 of Thru transmission state T12 : S12 of Thru transmission state T11 : S11 of Thru transmission state T22 : S22 of Thru transmission state A21 : S21 of Attenuator transmission state A12 : S12 of Attenuator transmission state A11 : S11 of Attenuator transmission state A22 : S22 of Attenuator transmission state OPEN2 : Second open state of reflection * LOAD2 : Second load state of reflection * Invalid Parameter An error occurs and the command is ignored. In addition, the parameters SHORt OPEN LOAD LOAD2 OPEN2 may only be specified in conjunction with A or B, and the parameters T11 T21 T12 T22 A11 A21 A12 A22 may only be specified in conjunction with AB, otherwise an error occurs and the command is ignored. <numeric 1>, <numeric 2>, <numeric N> Related Commands MEM:TABL:THER:POIN? MEM:TABL:THER:FREQ:STAR? MEM:TABL:THER:FREQ:STOP? MEM:TABL:DATA? MEM:TABL:TEMP? MEAS:TEMP? * ACM8000T only 25

26 MEM:TABL:THER:POIN? MEMory:TABLe:THERmocompensation:POINts? Reads the number of points in the table of coefficients of temperature compensation (query only). A value of zero means that there is no temperature compensation data. <numeric> Related Commands MEM:TABL:THER:MAGN? MEM:TABL:THER:PHAS? MEM:TABL:THER:FREQ:STAR? MEMory:TABLe:THERmocompensation:FREQuency:STARt? Reads the start frequency of the table of temperature compensation coefficients (inquiry only). Units Hz (Hertz) <numeric> Related Commands MEM:TABL:THER:MAGN? MEM:TABL:THER:PHAS? 26

27 MEM:TABL:THER:FREQ:STOP? MEMory:TABLe:THERmocompensation:FREQuency:STOP? Reads the stop frequency of the table of temperature compensation coefficients (inquiry only). Units Hz (Hertz) <numeric> Related Commands MEM:TABL:THER:MAGN? MEM:TABL:THER:PHAS? SYST:ERR? SYSTem:ERRor[:NEXT]? Reads runtime SCPI command errors from the FIFO (first in first out) error queue, which is stored in the device. The read message is removed from the queue. The *CLS command clears the error queue. The maximum size of the queue is 16 posts (inquiry only). <numeric>, <string> where: <numeric> error code <string> message text If the queue contains no messages: "0, No error" 27

28 Appendix 1. IEE488.2 Status Reporting System... Service Request Enable Register *SRE SRQ Service Request Generation RQS ESB MAV EAV MSS Status Byte Register *STB? Command Error Execution Error Device spec. Error Query Error Standard Event Status Enable Register *ESE Standard Event Status Register *ESR? Output Queue Error/ Event Queue 28

29 Appendix 2. Error Codes 1 "Characterization data not found" 2 "Thermocompensation data not found or corrupted" 3 "Data array corrupted or not found" 4 "Too many requests in line" 5 "Internal device error" -102 "Syntax error" -110 "Invalid command header" -211 "Trigger ignored" -220 "Parameter error or invalid parameter" 29

30 Appendix 3. Programming Examples Example 1. Programming in C. The following program demonstrates automation of the instrument in C using the VISA library. The device is connected using USB. When the program is run from the command line, the device address is passed using the VISA resource name format. For more information about the VISA resource name, please consult the VISA library documentation. Program description: 1. Establish a connection to the device; 2. Retrieve and print the device identification string; 3. Switch and port status read (PrintPortsState( )); 4. Reading of the temperature inside the module; 5. Retrieval of the module characterization data; 6. Printing of the data to the screen. // Example1.cpp // // VISA Header: visa.h (must be included) // VISA Library: visa32.lib (must be linked with) #include <visa.h> #include <stdio.h> #include <stdlib.h> #include <string.h> // // Send request and read device respond bool Query(ViSession instr, char * cmd, ViByte *response, ViUInt32 buffersize ) { ViUInt32 readcnt, writecnt; int c = strlen((char*)cmd); if( VI_SUCCESS == viwrite(instr, (ViByte *)cmd, c, &writecnt)) { if( VI_SUCCESS == viread(instr, response, buffersize, &readcnt)) { // Replace the last symbol '\n' by '\0' response[readcnt-1] = '\0'; return true; } } return false; } //

31 // Print ports state void PrintPortsState(ViSession instr) { ViByte response[255]; } Query(instr, "SOUR:PATH:STAT? A\n", response, 255); printf("port A state: %s\n", response); Query(instr, "SOUR:PATH:STAT? B\n", response, 255); printf("port B state: %s\n", response); Query(instr, "SOUR:PATH:STAT? AB\n", response, 255); printf("port AB state: %s\n", response); // int main (int argc, char * argv[]) { const int buffersize = 16384; ViStatus status; ViSession defaultrm, instr; // Error checking // Communication channels // Buffer for string I/O ViByte * buffer = (ViByte*)malloc(sizeof(ViByte) * buffersize); char * dev; // VISA resource name printf("example 1\n\n"); if(buffer == NULL) { printf("out of memory."); return -1; } if( argc!= 2) { printf("usage:\n Example1.exe <visa resource name>"); return -1; } else dev = argv[1]; // Start Visa session if((status = viopendefaultrm(&defaultrm))!= VI_SUCCESS) { printf("can't initialize VISA\n"); return -1; } // Open Device if((status=viopen(defaultrm,dev,vi_null,vi_null,&instr)!= VI_SUCCESS)) { printf("can't open VISA address: %s\n", dev); return -1; } // Get IDN string Query(instr, "*IDN?\n", buffer, buffersize); printf("\nget IDN String:\n%s\n", buffer); 31

32 // Switch port state viprintf(instr, "PATH:STATE A,OPEN\n"); printf("\nports states:\n"); PrintPortsState(instr); // Print ports states // Get device temperature Query(instr, "MEAS:TEMP?\n", buffer, buffersize); printf("\ndevice temperature:\n%s\n", buffer); // Get characterization data array printf("\nget data array (Port:A, State:Short, Data:Factory)\n"); Query(instr, "MEM:TABL:DATA? A,SHOR\n", buffer, buffersize); printf("%s", buffer); } return 0; 32

RIGOL Programming Guide

RIGOL Programming Guide RIGOL Programming Guide DL3000 Series Programmable DC Electronic Load Feb. 2017 RIGOL TECHNOLOGIES, INC. RIGOL Guaranty and Declaration Copyright 2017 RIGOL TECHNOLOGIES, INC. All Rights Reserved. Trademark

More information

RIGOL Programming Guide

RIGOL Programming Guide RIGOL Programming Guide DL3000 Series Programmable DC Electronic Load Feb. 2017 RIGOL TECHNOLOGIES, INC. RIGOL Guaranty and Declaration Copyright 2017 RIGOL TECHNOLOGIES, INC. All Rights Reserved. Trademark

More information

Agilent N9320A Spectrum Analyzer. Programmer s Guide

Agilent N9320A Spectrum Analyzer. Programmer s Guide Agilent N9320A Spectrum Analyzer Programmer s Guide Notices Agilent Technologies, Inc. 2006-2007 No part of this manual may be reproduced in any form or by any means (including electronic storage and retrieval

More information

Giga-tronics ASCOR Series 8000 Switch

Giga-tronics ASCOR Series 8000 Switch GIGA-TRONICS Giga-tronics ASCOR Series 8000 Switch Getting Started Guide Terukuni Okuyama 2013-08-14 This guide describes the installation, controlling, and programming of the Series 8000 Switch Module.

More information

Keysight N9342C/43C/44C Handheld Spectrum Analyzer

Keysight N9342C/43C/44C Handheld Spectrum Analyzer Keysight N9342C/43C/44C Handheld Spectrum Analyzer Notice: This document contains references to Agilent. Please note that Agilent s Test and Measurement business has become Keysight Technologies. For more

More information

1. INTRODUCTION CONNECTING POWER SUPPLY VIA GPIB INTERFACE CONNECTING POWER SUPPLY VIA RS232 INTERFACE 4 4. INPUT AND OUTPUT QUEUE..

1. INTRODUCTION CONNECTING POWER SUPPLY VIA GPIB INTERFACE CONNECTING POWER SUPPLY VIA RS232 INTERFACE 4 4. INPUT AND OUTPUT QUEUE.. CONTENTS PAGE 1. INTRODUCTION... 1 2. CONNECTING POWER SUPPLY VIA GPIB INTERFACE.. 1 3. CONNECTING POWER SUPPLY VIA RS232 INTERFACE 4 4. INPUT AND OUTPUT QUEUE.. 7 5. COMMANDS AND SYNTAX. 7 6. DETAILS

More information

1 INTRODUCTION CONNECTING POWER SUPPLY VIA GPIB INTERFACE.. 3. CONNECTING POWER SUPPLY VIA RS232 INTERFACE 4. INPUT AND OUTPUT QUEUE..

1 INTRODUCTION CONNECTING POWER SUPPLY VIA GPIB INTERFACE.. 3. CONNECTING POWER SUPPLY VIA RS232 INTERFACE 4. INPUT AND OUTPUT QUEUE.. CONTENTS PAGE 1. 1 INTRODUCTION...... 2. CONNECTING POWER SUPPLY VIA GPIB INTERFACE.. 3. CONNECTING POWER SUPPLY VIA RS232 INTERFACE 4. INPUT AND OUTPUT QUEUE.. 5. COMMANDS AND SYNTAX. 6. DETAILS OF COMMAND

More information

UM C SCPI Programmer s Manual for the DT8824

UM C SCPI Programmer s Manual for the DT8824 Title Page UM-24017-C SCPI Programmer s Manual for the DT8824 Copyright Page Trademark and Copyright Information Measurement Computing Corporation, InstaCal, Universal Library, and the Measurement Computing

More information

operating manual steropes halogen light source

operating manual steropes halogen light source operating manual steropes halogen light source Contents 1 Introduction... 3 1.1 Steropes Halogen... 3 1.2 Steropes Halogen highlights... 3 1.3 Standards... 3 2 Interfaces... 4 2.1 USB interface... 4 2.2

More information

1. INTRODUCTION 1. INTRODUCTION... 1

1. INTRODUCTION 1. INTRODUCTION... 1 CONTENTS PAGE 1. INTRODUCTION... 1 2. CONNECTING METER VIA GPIB INTERFACE... 2 3. CONNECTING METER VIA RS232 INTERFACE. 5 4. INPUT AND OUTPUT QUEUE.. 8 5. COMMANDS AND SYNTAX. 8 6. DETAILS OF COMMAND REFERENCE

More information

PROGRAMMABLE AC POWER SOURCE

PROGRAMMABLE AC POWER SOURCE PROGRAMMABLE AC POWER SOURCE DP-G Series Instruction Manual (Remote Control) NF Corporation DA00027464-001 PROGRAMMABLE AC POWER SOURCE DP-G Series Instruction Manual (Remote Control) Preface This instruction

More information

GPIB Tutorial. GPIB Tutorial. GPIB Instrument Control. National Instruments Phone: (512) Fax: (512)

GPIB Tutorial. GPIB Tutorial. GPIB Instrument Control. National Instruments Phone: (512) Fax: (512) The Beginning In 1965, Hewlett-Packard designed the Hewlett-Packard Interface Bus (HP-IB) to connect their line of programmable instruments to their computers. Because of its high transfer rates (nominally

More information

UM D. SCPI Programmer s Manual for TEMPpoint

UM D. SCPI Programmer s Manual for TEMPpoint UM-2300-D SCPI Programmer s Manual for TEMPpoint Fourth Edition January, 2009 Copyright 2008-2009 by Data Translation, Inc. All rights reserved. Information furnished by Data Translation, Inc. is believed

More information

How to communicate with instruments that support GPIB. Gianfranco Miele, Ph.D

How to communicate with instruments that support GPIB. Gianfranco Miele, Ph.D How to communicate with instruments that support GPIB Gianfranco Miele, Ph.D www.eng.docente.unicas.it/gianfranco_miele g.miele@unicas.it Requirements Controller IEEE-488 Matlab Instrument control toolbox

More information

NPRT 2200 Operation Manual

NPRT 2200 Operation Manual NPRT 2200 Operation Manual Module Version NPRT 2200 4.05 NprGraph 2.11 SwpEditor 2.00 12/02/2016 Table of Contents 1. Introduction...1 1.1. NPR Measurement...1 1.2. NPRT Block Diagram...1 1.3. Power Sweep

More information

RIGOL. Programming Guide. DM3058/DM3058E Digital Multimeter. Aug RIGOL Technologies, Inc.

RIGOL. Programming Guide. DM3058/DM3058E Digital Multimeter. Aug RIGOL Technologies, Inc. Programming Guide DM3058/DM3058E Digital Multimeter Aug. 2012 RIGOL Technologies, Inc. Copyright Information 2008 RIGOL Technologies, Inc. All Rights Reserved. RIGOL products are protected by patent laws

More information

Agilent 86122B Multi-Wavelength Meter Programming Guide

Agilent 86122B Multi-Wavelength Meter Programming Guide Agilent 86122B Multi-Wavelength Meter Programming Guide Agilent Technologies Notices Agilent Technologies, Inc. 2002-2011 This document contains proprietary information that is protected by copyright.

More information

SCPI Programmer's Reference Manual

SCPI Programmer's Reference Manual Series 4000 LDC40xx TED4015 ITC40xx SCPI Programmer's Reference Manual 2013 Version: Date: 3.2 21.03.2013 Copyright Contents Foreword 4 1 General Information 5 2 Introduction to the SCPI Language 6 2.1

More information

Programmable AC Power Source

Programmable AC Power Source Model: 9801 Programmable AC Power Source PROGRAMMING MANUAL Table of Contents 1 Remote Operation... 4 1.1 Interface Connection... 4 RS-232... 4 USBTMC... 4 2 Remote Commands... 5 2.1 Parameter Definitions...

More information

RIGOL. Programming Guide. DSA1000 Series Spectrum Analyzer. Oct RIGOL Technologies, Inc.

RIGOL. Programming Guide. DSA1000 Series Spectrum Analyzer. Oct RIGOL Technologies, Inc. RIGOL Programming Guide DSA1000 Series Spectrum Analyzer Oct. 2014 RIGOL Technologies, Inc. RIGOL Guaranty and Declaration Copyright 2010 RIGOL Technologies, Inc. All Rights Reserved. Trademark Information

More information

Programmable DC Power Supply IT6800 series Programming Guide

Programmable DC Power Supply IT6800 series Programming Guide Programmable DC Power Supply IT6800 series Programming Guide Model:IT6831A/IT6832A/IT6833A/IT6861A/IT6 862A/IT6863A/IT6872A/IT6873A/IT6874A/IT68 32B/IT6833B/IT6861B/IT6862B/IT6863B/IT687 2B/IT6873B/IT6874B

More information

MT9083 Series ACCESS Master Remote Control Operation manual

MT9083 Series ACCESS Master Remote Control Operation manual MT9083 Series ACCESS Master Remote Control Operation manual Fourth Edition For safety and warning information, please read this manual before attempting to use the equipment. Additional safety and warning

More information

RIGOL. Programming Guide. DSA1000A Series Spectrum Analyzer. Apr RIGOL Technologies, Inc.

RIGOL. Programming Guide. DSA1000A Series Spectrum Analyzer. Apr RIGOL Technologies, Inc. RIGOL Programming Guide DSA1000A Series Spectrum Analyzer Apr. 2015 RIGOL Technologies, Inc. RIGOL Guaranty and Declaration Copyright 2010 RIGOL Technologies, Inc. All Rights Reserved. Trademark Information

More information

Multi-Range DC Power Supply

Multi-Range DC Power Supply Model: 9115 Multi-Range DC Power Supply PROGRAMMING MANUAL Table of Contents 1 Remote Operation... 4 1.1 Interface Connection... 4 RS-232... 4 GPIB... 4 RS-485... 5 USBTMC... 5 2 Remote Commands... 6

More information

Software Operation Manual

Software Operation Manual Variable ISI Channel CLE1040 Software Operation Manual for CLE1040 H2K, CLE1040 H2V, CLE1040 S2, CLE1040 A2 for firmware version 1.1 Rev 2.5 May 2015 1. General... 2 1 1 System Requirements... 2 1 2 Installation...

More information

Programmer s Manual v2.00 (Mar 2016) SERIES 7000 Phase Noise Measurement Systems Models MODEL 7070, MODEL 7300

Programmer s Manual v2.00 (Mar 2016) SERIES 7000 Phase Noise Measurement Systems Models MODEL 7070, MODEL 7300 Programmer s Manual v2.00 (Mar 2016) SERIES 7000 Phase Noise Measurement Systems Models MODEL 7070, MODEL 7300 WARRANTY Berkeley Nucleonics Corporation warrants all instruments, including component parts,

More information

MS2690A/MS2691A/MS2692A and MS2830A/MS2840A/MS2850A Signal Analyzer Operation Manual Mainframe Remote Control

MS2690A/MS2691A/MS2692A and MS2830A/MS2840A/MS2850A Signal Analyzer Operation Manual Mainframe Remote Control MS2690A/MS2691A/MS2692A and MS2830A/MS2840A/MS2850A Signal Analyzer Operation Manual Mainframe Remote Control 38th Edition For safety and warning information, please read this manual before attempting

More information

RIGOL. Programming Guide. DSA1000A Series Spectrum Analyzer. May RIGOL Technologies, Inc.

RIGOL. Programming Guide. DSA1000A Series Spectrum Analyzer. May RIGOL Technologies, Inc. Programming Guide DSA1000A Series Spectrum Analyzer May 2011 RIGOL Technologies, Inc. Guaranty and Declaration Copyright 2010 RIGOL Technologies, Inc. All Rights Reserved. Trademark Information RIGOL

More information

Magnetic precision has a name. Three-axis Hall Magnetometer THM1176. User's Manual. Version 1.1. (Revision 1.0)

Magnetic precision has a name. Three-axis Hall Magnetometer THM1176. User's Manual. Version 1.1. (Revision 1.0) Magnetic precision has a name Three-axis Hall Magnetometer THM1176 User's Manual Version 1.1 (Revision 1.0) July 2008 CONTENTS GETTING STARTED... 1 1- Introduction... 1 GETTING STARTED... 2 2- Quick Start

More information

BOARD LEVEL PRODUCTS OEM GPIB<->RS-232 INTERFACE BOARD GPIB

BOARD LEVEL PRODUCTS OEM GPIB<->RS-232 INTERFACE BOARD GPIB BOARD LEVEL PRODUCTS OEM INTERFACE BOARD Description The Model Interface is a small, low cost interface board that interfaces devices to the bus. The provides a smart IEEE-488.2 compliant, to-serial

More information

At the end of this lecture you should be able to have a basic overview of fundamental structures in C and be ready to go into details.

At the end of this lecture you should be able to have a basic overview of fundamental structures in C and be ready to go into details. Objective of this lecture: At the end of this lecture you should be able to have a basic overview of fundamental structures in C and be ready to go into details. Fundamental Programming Structures in C

More information

M632. Precision Resistance Decade. Operation manual

M632. Precision Resistance Decade. Operation manual M632 Precision Resistance Decade Operation manual M632 Precision Resistance Decade MEATEST Content FIGURES... 4 TABLES... 4 1. BASIC INFORMATION... 6 2. PREPARATION FOR USE... 6 2.1. INSPECTING PACKAGE

More information

Systems Alliance. VPP-3.2: Instrument Driver Functional Body Specification. Revision 5.1

Systems Alliance. VPP-3.2: Instrument Driver Functional Body Specification. Revision 5.1 Systems Alliance VPP-3.2: Instrument Driver Functional Body Specification Revision 5.1 April 14, 2008 VPP-3.2 Revision History This section is an overview of the revision history of the VPP-3.2 specification.

More information

DEPARTMENT OF MATHS, MJ COLLEGE

DEPARTMENT OF MATHS, MJ COLLEGE T. Y. B.Sc. Mathematics MTH- 356 (A) : Programming in C Unit 1 : Basic Concepts Syllabus : Introduction, Character set, C token, Keywords, Constants, Variables, Data types, Symbolic constants, Over flow,

More information

PWS4205, PWS4305, PWS4323, PWS4602, and PWS4721 Linear DC Power Supplies Programmer Manual

PWS4205, PWS4305, PWS4323, PWS4602, and PWS4721 Linear DC Power Supplies Programmer Manual xx ZZZ PWS4205, PWS4305, PWS4323, PWS4602, and PWS4721 Linear DC Power Supplies Programmer Manual *P077048102* 077-0481-02 xx ZZZ PWS4205, PWS4305, PWS4323, PWS4602, and PWS4721 Linear DC Power Supplies

More information

Pasternack. PE11S390X SERIES USB Stick Synthesizer. Generation II.

Pasternack. PE11S390X SERIES USB Stick Synthesizer. Generation II. Pasternack www.pasternack.com PE11S390X SERIES USB Generation II Revision 2.0.2, May 2013 Notices Pasternack 2013 No part of this manual may be reproduced in any form or by any means (including electronic

More information

VISA Events in NI-VISA

VISA Events in NI-VISA VISA Events in NI-VISA Introduction The VISA operations Read, Write, In and Out allow basic I/O operations from the controller to instruments. These operations make up the basics of instrument I/O, but

More information

BOARD LEVEL PRODUCTS GPIB<->RS-422/RS-485 INTERFACE BOARD

BOARD LEVEL PRODUCTS GPIB<->RS-422/RS-485 INTERFACE BOARD BOARD LEVEL PRODUCTS RS-422/ INTERFACE BOARD DESCRIPTION The Model Serial Interface is a small, low cost interface board that interfaces serial devices with RS-422 or signals to the bus. The provides

More information

SERIES MG369XB SYNTHESIZED SIGNAL GENERATOR SCPI PROGRAMMING MANUAL

SERIES MG369XB SYNTHESIZED SIGNAL GENERATOR SCPI PROGRAMMING MANUAL SERIES MG369XB SYNTHESIZED SIGNAL GENERATOR SCPI PROGRAMMING MANUAL 490 JARVIS DRIVE MORGAN HILL, CA 95037-2809 P/N: 10370-10368 REVISION: D PRINTED: AUGUST 2013 COPYRIGHT 2007-2013 ANRITSU WARRANTY The

More information

RF Cogs Operation Manual Version 1.0

RF Cogs Operation Manual Version 1.0 Version 1.0 Applied Instruments, Inc. RF Cogs RF Cogs Series Revised 2012-09-28 Table of Contents 1 Description... 3 2 Overview... 3 2.1 Slave Modules... 3 2.2 Interface Modules... 4 3 RFC-INTF Interface

More information

TECHNICAL MANUAL BHK-MG 40 WATT (1/2 RACK) BHK-MG 200 WATT (FULL RACK) VISA INSTRUMENT DRIVER

TECHNICAL MANUAL BHK-MG 40 WATT (1/2 RACK) BHK-MG 200 WATT (FULL RACK) VISA INSTRUMENT DRIVER TECHNICAL MANUAL BHK-MG 40 WATT (1/2 RACK) BHK-MG 200 WATT (FULL RACK) VISA INSTRUMENT DRIVER KEPCO INC. An ISO 9001 Company. MODEL BHK-MG VISA INSTRUMENT DRIVER ORDER NO. REV. NO. IMPORTANT NOTES: 1)

More information

Keysight U2722A/U2723A USB Modular Source Measure Units

Keysight U2722A/U2723A USB Modular Source Measure Units Keysight U2722A/U2723A USB Modular Source Measure Units Programmer s Reference Notices Copyright Notice Keysight Technologies 2008-2017 No part of this manual may be reproduced in any form or by any means

More information

M641. Programmable RTD Simulator. Operation manual

M641. Programmable RTD Simulator. Operation manual M641 Programmable RTD Simulator Operation manual M641 Programmable RTD Simulator MEATEST Content FIGURES... 4 TABLES... 4 1. BASIC INFORMATION... 5 2. PREPARATION FOR USE... 5 2.1. INSPECTING PACKAGE

More information

2.1. Chapter 2: Parts of a C++ Program. Parts of a C++ Program. Introduction to C++ Parts of a C++ Program

2.1. Chapter 2: Parts of a C++ Program. Parts of a C++ Program. Introduction to C++ Parts of a C++ Program Chapter 2: Introduction to C++ 2.1 Parts of a C++ Program Copyright 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 2-1 Parts of a C++ Program Parts of a C++ Program // sample C++ program

More information

LECTURE 02 INTRODUCTION TO C++

LECTURE 02 INTRODUCTION TO C++ PowerPoint Slides adapted from *Starting Out with C++: From Control Structures through Objects, 7/E* by *Tony Gaddis* Copyright 2012 Pearson Education Inc. COMPUTER PROGRAMMING LECTURE 02 INTRODUCTION

More information

Programming Guide SSG3000X Series Signal Generator PG0803X-E01A

Programming Guide SSG3000X Series Signal Generator PG0803X-E01A Programming Guide SSG3000X Series Signal Generator PG0803X-E01A 2018 TECHNOLOGIES CO., LTD Contents 1. Programming Overview... 4 1.1 Build Communication... 4 1.1.1 Build Communication Using VISA... 4 1.1.2

More information

MD1260A 40/100G Ethernet Analyzer Remote Control Operation Manual

MD1260A 40/100G Ethernet Analyzer Remote Control Operation Manual MD1260A 40/100G Ethernet Analyzer Remote Control Operation Manual Sixth Edition For safety and warning information, please read this manual before attempting to use the equipment. Additional safety and

More information

22, 2017 RIGOL TECHNOLOGIES, INC.

22, 2017 RIGOL TECHNOLOGIES, INC. RIGOL Programming Guide RSA5000 Series Real-time Spectrum Analyzer Dec. 22, 2017 RIGOL TECHNOLOGIES, INC. RIGOL Guaranty and Declaration Copyright 2017 RIGOL TECHNOLOGIES, INC. All Rights Reserved. Trademark

More information

CSCI 171 Chapter Outlines

CSCI 171 Chapter Outlines Contents CSCI 171 Chapter 1 Overview... 2 CSCI 171 Chapter 2 Programming Components... 3 CSCI 171 Chapter 3 (Sections 1 4) Selection Structures... 5 CSCI 171 Chapter 3 (Sections 5 & 6) Iteration Structures

More information

Lab Session # 1 Introduction to C Language. ALQUDS University Department of Computer Engineering

Lab Session # 1 Introduction to C Language. ALQUDS University Department of Computer Engineering 2013/2014 Programming Fundamentals for Engineers Lab Lab Session # 1 Introduction to C Language ALQUDS University Department of Computer Engineering Objective: Our objective for today s lab session is

More information

.. Cal Poly CPE 101: Fundamentals of Computer Science I Alexander Dekhtyar..

.. Cal Poly CPE 101: Fundamentals of Computer Science I Alexander Dekhtyar.. .. Cal Poly CPE 101: Fundamentals of Computer Science I Alexander Dekhtyar.. A Simple Program. simple.c: Basics of C /* CPE 101 Fall 2008 */ /* Alex Dekhtyar */ /* A simple program */ /* This is a comment!

More information

TECHNICAL MANUAL. BOP-BIT LABVIEW, VXI plug&play INSTRUMENT DRIVER. 1) This manual is valid for the following Model and associated serial numbers:

TECHNICAL MANUAL. BOP-BIT LABVIEW, VXI plug&play INSTRUMENT DRIVER. 1) This manual is valid for the following Model and associated serial numbers: TECHNICAL MANUAL BOP-BIT LABVIEW, VXI plug&play INSTRUMENT DRIVER KEPCO INC. An ISO 9001 Company. MODEL BOP-BIT LABVIEW, VXI plug&play INSTRUMENT DRIVER ORDER NO. REV. NO. IMPORTANT NOTES: 1) This manual

More information

CMAT Language - Language Reference Manual COMS 4115

CMAT Language - Language Reference Manual COMS 4115 CMAT Language - Language Reference Manual COMS 4115 Language Guru: Michael Berkowitz (meb2235) Project Manager: Frank Cabada (fc2452) System Architect: Marissa Ojeda (mgo2111) Tester: Daniel Rojas (dhr2119)

More information

SERIES 682XXB/683XXB SYNTHESIZED SIGNAL GENERATORS SCPI PROGRAMMING MANUAL

SERIES 682XXB/683XXB SYNTHESIZED SIGNAL GENERATORS SCPI PROGRAMMING MANUAL SERIES 682XXB/683XXB SYNTHESIZED SIGNAL GENERATORS SCPI PROGRAMMING MANUAL 490 JARVIS DRIVE MORGAN HILL, CA 95037-2809 P/N: 10370-10288 REVISION: E PRINTED: OCTOBER 1997 COPYRIGHT 1994 ANRITSU CO. WARRANTY

More information

Chapter 2: Introduction to C++

Chapter 2: Introduction to C++ Chapter 2: Introduction to C++ Copyright 2010 Pearson Education, Inc. Copyright Publishing as 2010 Pearson Pearson Addison-Wesley Education, Inc. Publishing as Pearson Addison-Wesley 2.1 Parts of a C++

More information

MT9810A Optical Test Set Remote Control Operation Manual

MT9810A Optical Test Set Remote Control Operation Manual MT9810A Optical Test Set Remote Control Operation Manual Third Edition To ensure that the MT9810A Optical Test Set is used safely, read the safety information in the MS9710A Optical Test Set Manual first.

More information

OPERATING INSTRUCTION MANUAL FOR THE MODEL GM-700 HALL EFFECT GAUSSMETER

OPERATING INSTRUCTION MANUAL FOR THE MODEL GM-700 HALL EFFECT GAUSSMETER OPERATING INSTRUCTION MANUAL FOR THE MODEL GM-700 HALL EFFECT GAUSSMETER WARNING! DO NOT ATTEMPT TO OPERATE THIS EQUIPMENT BEFORE YOU HAVE THOROUGHLY READ THIS INSTRUCTION MANUAL. TABLE OF CONTENTS 1.0

More information

Fundamentals of Programming

Fundamentals of Programming Fundamentals of Programming Lecture 3 - Constants, Variables, Data Types, And Operations Lecturer : Ebrahim Jahandar Borrowed from lecturer notes by Omid Jafarinezhad Outline C Program Data types Variables

More information

MDL Series Programmable DC Electronic Load

MDL Series Programmable DC Electronic Load MDL Series Programmable DC Electronic Load Models: MDL001, MDL002, MDL200, MDL252, MDL305, MDL400, MDL505, MDL600 PROGRAMMING MANUAL Safety Summary The following general safety precautions must be observed

More information

Fundamental of Programming (C)

Fundamental of Programming (C) Borrowed from lecturer notes by Omid Jafarinezhad Fundamental of Programming (C) Lecturer: Vahid Khodabakhshi Lecture 3 Constants, Variables, Data Types, And Operations Department of Computer Engineering

More information

Chapter 2: Special Characters. Parts of a C++ Program. Introduction to C++ Displays output on the computer screen

Chapter 2: Special Characters. Parts of a C++ Program. Introduction to C++ Displays output on the computer screen Chapter 2: Introduction to C++ 2.1 Parts of a C++ Program Copyright 2009 Pearson Education, Inc. Copyright 2009 Publishing Pearson as Pearson Education, Addison-Wesley Inc. Publishing as Pearson Addison-Wesley

More information

The C++ Language. Arizona State University 1

The C++ Language. Arizona State University 1 The C++ Language CSE100 Principles of Programming with C++ (based off Chapter 2 slides by Pearson) Ryan Dougherty Arizona State University http://www.public.asu.edu/~redoughe/ Arizona State University

More information

Full file at C How to Program, 6/e Multiple Choice Test Bank

Full file at   C How to Program, 6/e Multiple Choice Test Bank 2.1 Introduction 2.2 A Simple Program: Printing a Line of Text 2.1 Lines beginning with let the computer know that the rest of the line is a comment. (a) /* (b) ** (c) REM (d)

More information

EDIABAS API USER MANUAL EDIABAS. Electronic Diagnostic Basic System. API User Manual. VERSION 6c. Copyright BMW AG, created by Softing AG APIUSER.

EDIABAS API USER MANUAL EDIABAS. Electronic Diagnostic Basic System. API User Manual. VERSION 6c. Copyright BMW AG, created by Softing AG APIUSER. EDIABAS Electronic Diagnostic Basic System API User Manual VERSION 6c Copyright BMW AG, created by Softing AG APIUSER.DOC Contents Contents...2 1. Revision history...3 2. Introduction...4 2.1. About this

More information

Agilent 4155C Semiconductor Parameter Analyzer Agilent 4156C Precision Semiconductor Parameter Analyzer

Agilent 4155C Semiconductor Parameter Analyzer Agilent 4156C Precision Semiconductor Parameter Analyzer Agilent 4155C Semiconductor Analyzer Agilent 4156C Precision Semiconductor Analyzer SCPI Command Reference Agilent Technologies Notices Agilent Technologies 2001-2008 No part of this manual may be reproduced

More information

c) Comments do not cause any machine language object code to be generated. d) Lengthy comments can cause poor execution-time performance.

c) Comments do not cause any machine language object code to be generated. d) Lengthy comments can cause poor execution-time performance. 2.1 Introduction (No questions.) 2.2 A Simple Program: Printing a Line of Text 2.1 Which of the following must every C program have? (a) main (b) #include (c) /* (d) 2.2 Every statement in C

More information

TECHNICAL MANUAL UNIVERSAL BOP GPIB VISA INSTRUMENT DRIVER. 1) This manual is valid for the following Model and associated serial numbers:

TECHNICAL MANUAL UNIVERSAL BOP GPIB VISA INSTRUMENT DRIVER. 1) This manual is valid for the following Model and associated serial numbers: TECHNICAL MANUAL UNIVERSAL BOP GPIB VISA INSTRUMENT DRIVER KEPCO INC. An ISO 9001 Company. MODEL UNIVERSAL BOP GPIB VISA INSTRUMENT DRIVER ORDER NO. REV. NO. IMPORTANT NOTES: 1) This manual is valid for

More information

C Programming Multiple. Choice

C Programming Multiple. Choice C Programming Multiple Choice Questions 1.) Developer of C language is. a.) Dennis Richie c.) Bill Gates b.) Ken Thompson d.) Peter Norton 2.) C language developed in. a.) 1970 c.) 1976 b.) 1972 d.) 1980

More information

IEEE 488/USB BUS INTERFACES

IEEE 488/USB BUS INTERFACES IEEE 488/USB BUS INTERFACES USBParallel Digital Interface Provides 40 user configured digital I/O lines. Inputs TTL/CMOS and contact closures. Drives 48 ma. Automatic event and status change detection.

More information

APSIN x000 API Description

APSIN x000 API Description APSIN x000 API Description Contents 1. Introduction to the...2 2. Application Programming Interface...3 3. Accessing the DLL with Matlab...7 4. An C example program using the DLL...8 Company Details...10

More information

LESSON 1. A C program is constructed as a sequence of characters. Among the characters that can be used in a program are:

LESSON 1. A C program is constructed as a sequence of characters. Among the characters that can be used in a program are: LESSON 1 FUNDAMENTALS OF C The purpose of this lesson is to explain the fundamental elements of the C programming language. C like other languages has all alphabet and rules for putting together words

More information

BERTWave Series Remote Control Operation Manual

BERTWave Series Remote Control Operation Manual BERTWave Series Remote Control Operation Manual Second Edition For safety and warning information, please read this manual before attempting to use the equipment. Additional safety and warning information

More information

Key Differences Between Python and Java

Key Differences Between Python and Java Python Python supports many (but not all) aspects of object-oriented programming; but it is possible to write a Python program without making any use of OO concepts. Python is designed to be used interpretively.

More information

Lexical Considerations

Lexical Considerations Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science 6.035, Fall 2005 Handout 6 Decaf Language Wednesday, September 7 The project for the course is to write a

More information

D GHz Downconverter Programmer's Guide Version 1.2.1

D GHz Downconverter Programmer's Guide Version 1.2.1 Mar 2018 Document no. 75-0070-180301 Copyright 2017,2018 ThinkRF Corporation, all rights reserved. All product names are trademarks of their respective companies. This document contains information that

More information

1 Lexical Considerations

1 Lexical Considerations Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science 6.035, Spring 2013 Handout Decaf Language Thursday, Feb 7 The project for the course is to write a compiler

More information

Keysight Series N6700 Low-Profile Modular Power System

Keysight Series N6700 Low-Profile Modular Power System Keysight Series N6700 Low-Profile Modular Power System Programmer s Reference Guide Legal Notices Keysight Technologies 2006-2015 No part of this document may be photocopied, reproduced, or translated

More information

TABLE OF CONTENTS LIST OF ILLUSTRATIONS

TABLE OF CONTENTS LIST OF ILLUSTRATIONS CG39-28 CONTENTS TABLE OF CONTENTS SECTION AND TITLE PAGE 1.0 INTRODUCTION... 1-1 1.1 DESCRIPTION... 1-1 1.2 RELATED LITERATURE... 1-2 2.0 EXPRESSIONS... 2-1 3.0 STATEMENTS... 3-1 3.1 DECLARATION STATEMENTS...

More information

Ricardo Rocha. Department of Computer Science Faculty of Sciences University of Porto

Ricardo Rocha. Department of Computer Science Faculty of Sciences University of Porto Ricardo Rocha Department of Computer Science Faculty of Sciences University of Porto Adapted from the slides Revisões sobre Programação em C, Sérgio Crisóstomo Compilation #include int main()

More information

Power Supply R&S HMC804x SCPI Programmers Manual

Power Supply R&S HMC804x SCPI Programmers Manual Power Supply R&S HMC804x Test & Measurement Content 1... 3 1.1 Interfaces... 3 1.1.1 USB Interface... 3 1.1.2 Ethernet (LAN) Interface... 4 1.1.4 GPIB Interface (IEC/IEEE Bus Interface)... 5 1.2 Setting

More information

Agilent 34401A Multimeter Quick Reference

Agilent 34401A Multimeter Quick Reference Agilent 34401A Multimeter Quick Reference Front-Panel Menu Reference Use Recall Menu as a shortcut to recall the last command executed. Square brackets ( [ ] ) indicate optional keywords or parameters.

More information

Intermediate Programming, Spring 2017*

Intermediate Programming, Spring 2017* 600.120 Intermediate Programming, Spring 2017* Misha Kazhdan *Much of the code in these examples is not commented because it would otherwise not fit on the slides. This is bad coding practice in general

More information

Basic Elements of C. Staff Incharge: S.Sasirekha

Basic Elements of C. Staff Incharge: S.Sasirekha Basic Elements of C Staff Incharge: S.Sasirekha Basic Elements of C Character Set Identifiers & Keywords Constants Variables Data Types Declaration Expressions & Statements C Character Set Letters Uppercase

More information

BOARD LEVEL PRODUCTS MULTI-FUNCTION MODBUS RTU INTERFACE BOARD

BOARD LEVEL PRODUCTS MULTI-FUNCTION MODBUS RTU INTERFACE BOARD BOARD LEVEL PRODUCTS 9009 MULTI-FUNCTION MODBUS RTU INTERFACE BOARD Description ICS's 9009 is a multi-interface board with Ethernet, GPIB and USB ports for controlling Modbus RTU slave devices. The 9009

More information

Systems Alliance VPP-4.3.5: VISA Shared Components October 19, 2018 Revision 7.0

Systems Alliance VPP-4.3.5: VISA Shared Components October 19, 2018 Revision 7.0 Systems Alliance VPP-4.3.5: VISA Shared Components October 19, 2018 Revision 7.0 Systems Alliance VPP-4.3.5 Revision History This section is an overview of the VPP-4.3.5 specification revision history.

More information

INSTRUCTION MANUAL GP-IB INTERFACE UNIT PU SERIES B

INSTRUCTION MANUAL GP-IB INTERFACE UNIT PU SERIES B INSTRUCTION MANUAL GP-IB INTERFACE UNIT PU SERIES B71-134- About Brands and Trademarks TEXIO is the product brand name of our industrial electronic devices. All company names and product names mentioned

More information

QC External Devices (EXD)

QC External Devices (EXD) 1 2 QC External Devices (EXD) QC Version 6.1, db-lab 210 Features GPIB compliant protocols (IEEE 488 & 488.2) Communicates with any GPIB device for control, measurement and data acquisition Device status

More information

BoredGames Language Reference Manual A Language for Board Games. Brandon Kessler (bpk2107) and Kristen Wise (kew2132)

BoredGames Language Reference Manual A Language for Board Games. Brandon Kessler (bpk2107) and Kristen Wise (kew2132) BoredGames Language Reference Manual A Language for Board Games Brandon Kessler (bpk2107) and Kristen Wise (kew2132) 1 Table of Contents 1. Introduction... 4 2. Lexical Conventions... 4 2.A Comments...

More information

The Warhol Language Reference Manual

The Warhol Language Reference Manual The Warhol Language Reference Manual Martina Atabong maa2247 Charvinia Neblett cdn2118 Samuel Nnodim son2105 Catherine Wes ciw2109 Sarina Xie sx2166 Introduction Warhol is a functional and imperative programming

More information

In this session we will cover the following sub-topics: 1.Identifiers 2.Variables 3.Keywords 4.Statements 5.Comments 6.Whitespaces 7.Syntax 8.

In this session we will cover the following sub-topics: 1.Identifiers 2.Variables 3.Keywords 4.Statements 5.Comments 6.Whitespaces 7.Syntax 8. In this session we will cover the following sub-topics: 1.Identifiers 2.Variables 3.Keywords 4.Statements 5.Comments 6.Whitespaces 7.Syntax 8.Semantic www.tenouk.com, 1/16 C IDENTIFIERS 1. Is a unique

More information

Communications API. TEAM A : Communications and Integration Group. April 15, 1995

Communications API. TEAM A : Communications and Integration Group. April 15, 1995 Communications API TEAM A : Communications and Integration Group April 15, 1995 1 Introduction This document specifies the API provided by the Communications and Integration group for use in the AMC system.

More information

SSOL Language Reference Manual

SSOL Language Reference Manual SSOL Language Reference Manual Madeleine Tipp Jeevan Farias Daniel Mesko mrt2148 jtf2126 dpm2153 Manager Language Guru System Architect October 15, 2018 Contents 1 Lexical Conventions 2 1.1 Identifiers...............................................

More information

Software Release Notes

Software Release Notes Fixed a bug related to IFBW settings below 10 Hz in the S5048 and S7530 models Changed the application icon Version 15.4.0 IMPORTANT: All instruments in the (reversing 2-Port VNAs) now share a common installer

More information

Programming in C. What is C?... What is C?

Programming in C. What is C?... What is C? C Programming in C UVic SEng 265 Developed by Brian Kernighan and Dennis Ritchie of Bell Labs Earlier, in 1969, Ritchie and Thompson developed the Unix operating system We will be focusing on a version

More information

Programming in C UVic SEng 265

Programming in C UVic SEng 265 Programming in C UVic SEng 265 Daniel M. German Department of Computer Science University of Victoria 1 SEng 265 dmgerman@uvic.ca C Developed by Brian Kernighan and Dennis Ritchie of Bell Labs Earlier,

More information

Artisan Technology Group is your source for quality new and certified-used/pre-owned equipment

Artisan Technology Group is your source for quality new and certified-used/pre-owned equipment Artisan Technology Group is your source for quality new and certified-used/pre-owned equipment FAST SHIPPING AND DELIVERY TENS OF THOUSANDS OF IN-STOCK ITEMS EQUIPMENT DEMOS HUNDREDS OF MANUFACTURERS SUPPORTED

More information

today cs3157-fall2002-sklar-lect05 1

today cs3157-fall2002-sklar-lect05 1 today homework #1 due on monday sep 23, 6am some miscellaneous topics: logical operators random numbers character handling functions FILE I/O strings arrays pointers cs3157-fall2002-sklar-lect05 1 logical

More information

Computer Science & Information Technology (CS) Rank under AIR 100. Examination Oriented Theory, Practice Set Key concepts, Analysis & Summary

Computer Science & Information Technology (CS) Rank under AIR 100. Examination Oriented Theory, Practice Set Key concepts, Analysis & Summary GATE- 2016-17 Postal Correspondence 1 C-Programming Computer Science & Information Technology (CS) 20 Rank under AIR 100 Postal Correspondence Examination Oriented Theory, Practice Set Key concepts, Analysis

More information

Programming in C. What is C?... What is C?

Programming in C. What is C?... What is C? Programming in C UVic SEng 265 C Developed by Brian Kernighan and Dennis Ritchie of Bell Labs Earlier, in 1969, Ritchie and Thompson developed the Unix operating system We will be focusing on a version

More information

Programming and Data Structure

Programming and Data Structure Programming and Data Structure Sujoy Ghose Sudeshna Sarkar Jayanta Mukhopadhyay Dept. of Computer Science & Engineering. Indian Institute of Technology Kharagpur Spring Semester 2012 Programming and Data

More information