Programmable AC/DC Power Source APS-1102 LABVIEW DRIVER OPERATION MANUAL ISO-9001 CERTIFIED MANUFACTURER
November 2009 This manual contains proprietary information, which is protected by copyrights. All rights are reserved. No part of this manual may be photocopied, reproduced or translated to another language without prior written consent of Good Will company. The information in this manual was correct at the time of printing. However, Good Will continues to improve products and reserves the rights to change specification, equipment, and maintenance procedures at any time without notice.
Preface Thank you for purchasing the APS-1102 programmable AC/DC power source. The APS-1102 LabVIEW Driver is a LabVIEW measuring instrument driver dedicated to the APS-1102. ● To read this manual This operation manual is a PDF file. Acrobat Reader Ver. 5 or higher of Adobe Systems, Inc. is required to read this manual. ● This manual has the following chapter organization. 1. OVERVIEW Presents an overview of the APS-1102 LabVIEW Driver. 2. OPERATION vi Describes each operation vi.
────Disclaimer ──── The APS-1102 LabVIEW driver (hereinafter, “this software”) was shipped after having undergone full testing and inspection by the Good Will company. Should this product fail due to a manufacturing flaw or due to a mishap during shipping, contact Good Will or a Good Will authorized distributor. Good Will takes no responsibility for any damage caused by use of this software. In addition, we assume no obligation to modify the software or provide support in case this software contains flaws.
Contents Page Preface ············································································································· i Disclaimer ·········································································································· ii 1. OVERVIEW ········································································································ 1-1 1.1 General ······································································································· 1-2 2.
1. 1.
APS-1102 LabVIEW Driver Manual 1.1 General The APS-1102_LabView driver.llb is a LabVIEW measuring instrument driver for the GW Instek APS-1102 programmable AC/DC power source. This driver allows application configuration without bothering with details of the APS-1102 program messages. * During creation of this driver, operation under the following environments was confirmed: OS: Windows 2000 and Windows XP LabVIEW: Ver. 6.1, 7.1, 8.0 VISA: Ver. 3.
2. 2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.8 2.9 2.10 2.11 2.12 2.13 2.14 2.
APS-1102 LabVIEW Driver Manual 2.1 About vi Error input and output are provided in each APS-1102 operation vi. generated by connecting an error output to the error input of the next vi. I/O for the LabVIEW data flow architecture to be obtained. Error cluster chains are This allows a natural error An application can monitor the intermediate error status as required. APS-1102 operation vi, except for Close, has a VISA session input and a duplicated VISA session output.
2.4 VISA Initialization GW APS-1102 Sample Measuer.vi The APS-1102 status can be checked continuously. Initialize and Close can be optionally executed.
APS-1102 LabVIEW Driver Manual 2.6 SOURce Subsystem GW APS-1102 SOUR Curr Ave.vi This sets the upper limit of the output average current. Average_Rn100V [A] This sets the upper limit of the output average current in the 100 V range. The default setting is “10.5”. Average_Rn200V [A] This sets the upper limit of the output average current in the 200 V range. The default setting is “5.3”. Rn_set This specifies the range to be set. The default setting is “100 V (False)”.
2.4 VISA Initialization Low_Rn200V [A] This sets the upper limit of the output peak current (negative polarity) in the 200 V range. The default setting is “–21.0”. Rn_set This specifies the range to be set. The default setting is “100V (False)”.
APS-1102 LabVIEW Driver Manual Limit Frequency Low [Hz] This sets the lower limit of the frequency. The default setting is “1.0”.
2.4 VISA Initialization The sync signal source setting is either LINE (line synchronization) or EXT (external synchronization). However, when output is ON, the sync signal source cannot be changed. ([1, “Invalid with output on”] error occurs.) Unless the mode is AC-SYNC or AC+DC-SYNC mode, the sync signal source setting cannot be set. ([3, “Invalid in this mode”] error occurs.) Signal This sets the synchronization signal source. The default setting is “Line (False)”.
APS-1102 LabVIEW Driver Manual
2.4 VISA Initialization When in AC-EXT, AC-ADD, AC-SYNC, AC+DC-EXT, AC+DC-ADD, or AC+DC-SYNC mode, step execution parameter cannot be set or queried. ([3,"Invalid in this mode"] error occurs.) Parameters First parameter (DC voltage [V]) Range: –200.0 to 200.0 (–400.0 to 400.0) Second parameter (DC voltage’s operation type) Range: 0 (CONST)/1 (KEEP)/2 (SWEEP) Third parameter (AC voltage [Vrms]/[Vpp]) Range: 0.0 to 140.0 [Vrms]/0.0 to 400.0 [Vpp] (0.0 to 280.0 [Vrms] / 0.0 to 800.
APS-1102 LabVIEW Driver Manual can’t be set. ([3,"Invalid in this mode"] error occurs.) Parameter First parameter (step time [s]/[ms]) Range: 0.0001 to 999.9999 [s] 0.1 to 999999.9 [ms] Second parameter (step end phase setting mode) Range: 0 (Disabled)/1 (Enabled) Third parameter (step end phase [deg]) Range: 0.0 to 359.
2.4 VISA Initialization AC output voltage is set using the Vrms unit (when the waveform is SIN or SQU) or Vp-p units (when waveform is ARB). When in AC-EXT or AC+DC-EXT mode, the output AC voltage cannot be set or queried. ([3,"Invalid in this mode"] error occurs.) Voltage[Vpp]/[Vrms] This sets the output AC voltage. Setting range varies according to waveform and range. The default setting is “0.0”. Output[Vpp]/[Vrms] When Read = True, outputs the output AC voltage set for the APS-1102.
APS-1102 LabVIEW Driver Manual setting is “–400.0”. Rn_set This specifies the range to be set. The default setting is “100 V (False)”. Output[V] When Read = True, outputs the lower limit of the output voltage set for the APS-1102. When Read = False, “–999.9” is set. GW APS-1102 SOUR Volt Offs.vi This sets the DC voltage when in AC+DC-INT, AC+DC-ADD, or AC+DC-SYNC mode. The DC output voltage cannot be set unless the mode is AC+DC-INT, AC+DC-ADD, or AC+DC-SYNC modes.
2.7 MEASure Subsystem 2.7 MEASure subsystem GW APS-1102 MEAS Curr.vi This returns the output current RMS value (AC+DC RMS value) in Arms units. Current:AC+DC This outputs the output current RMS value (AC+DC RMS value). Error When a measurement error occurs, “True” is set. GW APS-1102 MEAS Curr High.vi This returns the positive current peak value (AC+DC peak value) in Apk units. Peak High:AC+DC This outputs the + current peak value (AC+DC peak value).
APS-1102 LabVIEW Driver Manual GW APS-1102 MEAS Curr Res.vi This resets the stored output current peak value (hold) to 0 Apk. GW APS-1102 MEAS Curr Ave.vi This returns the output current average value (AC+DC average value) in A units. Average This outputs the output current average value (AC+DC average value). Error When a measurement error occurs, “True” is set. GW APS-1102 MEAS Curr Cres.vi This returns the output current crest factor.
2.7 MEASure Subsystem This outputs presence/absence of measurement errors in an array. “True” is set to the position where a measurement error occurs. GW APS-1102 MEAS Curr Rat.vi This returns the ratio (%) of the nth harmonic current to the fundamental current as 100%. However, when in AC-INT mode, if the frequency is neither 50 Hz nor 60 Hz, the harmonic current cannot be measured. ([3, “Invalid in this mode”] or [6, “Invalid in this frequency”] error occurs.
APS-1102 LabVIEW Driver Manual When a measurement error occurs, “True” is set. GW APS-1102 MEAS Ac Pfac.vi This returns the output’s power factor. The power factor is calculated as “active power/apparent power”. Pfactor This outputs the output power factor. Error When a measurement error occurs, “True” is set. GW APS-1102 MEAS Ac Reac.vi This returns the reactive power in Var units. Reactive This outputs the reactive power in Var units.
2.7 MEASure Subsystem GW APS-1102 MEAS Volt High.vi This returns the positive voltage peak value (AC+DC peak value) in Vpk units. Peak High: AC+DC This outputs the + voltage peak value (AC+DC peak value) in Vpk units. Error When a measurement error occurs, “True” is set. GW APS-1102 MEAS Volt Low.vi This returns the negative voltage peak value (AC+DC peak value) in Vpk units. Peak Low: AC+DC This outputs the – voltage peak value (AC+DC peak value) in Vpk units.
APS-1102 LabVIEW Driver Manual 2.8 DISPlay Subsystem GW APS-1102 DISP Mode.vi This selects the measurement display selection. The measurement display selection setting is RMS (RMS value), AVG (average DC), PEAK (peak value), and HC (harmonic current) 1 to 4. The relation between the harmonic current mode and the harmonic degree is as follows.
2.9 STATus Subsystem 2.9 STATus subsystem GW APS-1102 STAT Cond.vi This returns the operation condition register (OPCR). The response range is 0 to 20482. OPCR This outputs the operation condition register (OPCR). GW APS-1102 STAT Enab.vi This sets the operation event enable register (OPEE). The setting range is 0 to 20482. OPEE set This sets the operation event enable register (OPEE). The default setting is “0”.
APS-1102 LabVIEW Driver Manual This sets the PTR filter. The default setting is “0”. Ntransition When Read = True, outputs the NTR filter contents set for the APS-1102. When Read = False, “99999” is set. Ptransition When Read = True, outputs the PTR filter contents set for the APS-1102. When Read = False, “99999” is set. GW APS-1102 STAT Warn Enab.vi This sets the warning event enable register. The setting range is 0 to 31999.
2.9 STATus Subsystem When the PTR filter is set to 1, WRER is set to 1 when WRCR changes from 0 to 1. When the NTR and PTR filters are both set to 1, WRER is set to 1 when WRCR changes. When the NTR and PTR filters are both set to 0, changes in WRCR are not propagated to WRER. NTR set This sets the NTR filter. The default setting is “0”. PTR set This sets the PTR filter. The default setting is “0”. Ntransition When Read = True, outputs the NTR filter contents set for the APS-1102.
APS-1102 LabVIEW Driver Manual 2.10 OUTPut Subsystem GW APS-1102 OUTPUT.vi This controls ON/OFF settings the output relay’s. Output This sets on/off of output relay. The default setting is “OFF”. Query Output When Read = True, outputs the output status of the APS-1102. is set.
2.10 OUTPut Subsystem 2.11 INPut Subsystem GW APS-1102 INPUT.vi This sets the external input gain used external mode (AC-EXT or AC+DC-EXT) and internal + external mode (AC-ADD or AC+DC-ADD). When in AC-EXT, AC-ADD, AC+DC-EXT or AC+DC-ADD mode, the output waveform setting cannot be made ([3, “Invalid in this mode] error occurs) Gain_Rn100V This sets the external input gain in the 100 V range. The default setting is “0.0”. Gain _Rn200V This sets the external input gain in the 200 V range.
APS-1102 LabVIEW Driver Manual 2.12 TRACe subsystem GW APS-1102 TRAC Cat.vi This returns a list of defined waveform names. This command returns a list of all waveform names that can be selected by the user. Catalog This outputs a list of defined waveform names in an array. Click the up/down arrow key of the index or input the index to check all waveform names. GW APS-1102 TRAC.vi This sends or receives arbitrary waveforms. ARB No.
2.12 TRACe Subsystem 2.13 SYSTem subsystem GW APS-1102 SYST Beep.vi This controls on/off of beep sound. Beep This sets beep sound on/off. The default setting is “ON”. Query Beep When Read = True, outputs the beep sound status of the APS-1102. When Read = False, “space” is set. GW APS-1102 SYST Extio.vi This controls the external control input enable/disable setting. Extio This sets external control input on/off. The default setting is “ON”.
APS-1102 LabVIEW Driver Manual Pon This sets the output status at power-on. The default setting is “OFF”. Query Pon When Read = True, outputs the output status at power-on set for the APS-1102. When Read = False, “9” is set. GW APS-1102 SYST Tun.vi This sets the unit for sequence step execution time unit as s or ms. Tunit This sets the unit for sequence step execution time. The default setting is “[s]”.
2.14 PROGram Subsystem 2.14 PROGram subsystem GW APS-1102 PROG Exec.vi This controls sequence operations. Control is performed using the STOP (stop), START (run), HOLD (hold), BRANCH0 (branch 0), or BRANCH1 (branch 1) parameter. When in AC-EXT, AC-SYNC, AC+DC-EXT, or AC+DC-SYNC mode, sequences cannot be executed. ([3,"Invalid in this mode"] error occurs.) When output OFF, sequence execution is disabled. ([2,"Invalid with output off"] error occurs.
APS-1102 LabVIEW Driver Manual 2.15 Common commands GW APS-1102 CLS.vi This clears the following registers: Standard event register Operation event register Warning event register Status byte Error queue GW APS-1102 ESE.vi This sets the standard event enable register. The setting range is 0 to 255. ESE This sets the standard event enable register. The default setting is “0”. Query ESE When Read = True, outputs the standard event enable register set for the APS-1102.
2.14 PROGram Subsystem GW APS-1102 OPC.vi When all operations have been completed, this sets the standard event register’s OPC bit (BIT0). *OPC? returns “1” when all operations have been completed. However, the standard event register OPC bit is not cleared zero *OPC? is executed. Query OPC When Read = True, outputs the OPC bit content set for the APS-1102. When Read = False, “999” is set. GW APS-1102 RCL.vi This recalls the status information stored to memory by *SAV. memory is 1 to 30.
APS-1102 LabVIEW Driver Manual Query ESE When Read = True, outputs the service request enable register content set for the APS-1102. When Read = False, “0” is set. GW APS-1102 STB.vi This returns the status byte register value. The response range is 0 to 178. Query STB This outputs the status byte register content set for the APS-1102. GW APS-1102 TST.vi This returns the self test results. In this device, “0” is always returned.