GP-IB Sample software for DS-8623, 8617, 8608/07A manual Sep 2001 Iwatsu Electric Co., Ltd. 1. Overview This is sample software under Microsoft Visual Basic to control the Iwatsu Digital Storage Oscilloscope DS8623, DS8607/08, DS8607/08A via GP-IB interface. This software shows basic function and programming source list. 1. Transmit the control command and receive query value. 2. Acquire a new waveform, transfer the data and display the waveform. 3. Save the acquired waveform data as CSV type file. 2. Needed hardware and software DSO : DS8623,DS8607/08,DS8607/08 Iwatsu Digital Storage Oscilloscope with GP-IB interface option. PC : Personal Computer IBM PC/AT Compatible OS : Microsoft Windows 95, or 98 GP-IB interface : National instruments Interface (NI) card and driver software. Programming software : Microsoft Visual basic Ver5 or higher 3. Preparation PC @Step1 Install NI GP-IB driver Follow the NI manual @Step2 Install Microsoft Visual Basic Ver5 or higher to PC Follow the Microsoft Visual Basic manual @Step3 Copy this sample program @ Copy the files to your PC @Step4 Copy NI GP-IB driver Copy two files as NIGLOBAL.BAS, VBIB-32.BAS in folder of NI GP-IB driver (C:\GPIB95\LANGINT\VBASIC) to sample program folder. DSO @Step5 Set GP-IB address Set Interface as GP-IBAAddress as 10, Delimiter as LF NI driver request the delimiter to LF only 4. Run (Operation) @Open new project Gpibuty.vbp @ If NIGLOBAL.BAS and VBIB-32.BAS is not same folder at this sample program, "File not found, continue? " is shown. Then select "Continue". @ In this case, click "Project" at menu bar "Add standard module" select "Other" @ NIGLOBAL.BAS and VBIB-32.BAS are displayed, then open them. Operation @Click "RUN" at menu bar "Start" Type Scope GP-IB address as 10. Select DSO MODEL at combo box. (1) Command Test Set the DSO to storage mode. Command : Input any DSO command (refer manual) or click right end button it shows command example. Send Once : Input command is sent once. Repeat : Input command is sent repeatedly by specified interval. Interval : Specifies in 10m seconds step (Approx.) Sent command : Transmitted command is shown, it is same as input command. Received data : Shows response data from DSO. Status byte : Error message : (2) Acquisition Acquire -> Transfer : Acquire a new waveform and transfer the data. Start address : Set the start address of transfer data. Data length : Set data length Max value is 5120 at short mode, 102400 at long mode. ƒSave into file„ Selects a destination of transferred data -Select before transferring, it is invalid to select while transferring. -Transfer to file: General way but slow. Data in ASCII format is saved at same folder of program as "WAVEASC.TXT" Data in BYTE,L/H,H/L format is saved at same folder of program as "WAVEDATA.BIN". -Not transfer to file: high update rate ƒShow info„ Selects showing of waveform parameter (DS8623 is not available) ƒFit to wave„ Selects whether the waveform form position follows main window or not. ƒFormat„ -ASCIIFRepeats Acquisition-> Transfer -> Display. Slow response. Saved at same folder of program as "WAVEASC.TXT" - BYTEFRepeats Acquisition-> Transfer -> Display. Quick response (DS8623 is not available) - H/L,L/HFTransfers in word units when average or FFT setting. ƒStart„ - Sets start address of transfer data ƒData length„ - Sets length of transfer data ƒInterval„ Set the interval of command execution in times of approx. 10mseconds when repeat mode. (3) Save as CSV Save : Waveform data is saved as text file with CSV file (Comma Separated Value) CSV type file is opened by Lotus or Excel The file contains address and value of CH1, CH2 (-127 to +127). (4) Current status Shows current running status of sample soft. Example : Completed waveform transfer 5.History 2000/11/27 Ver1.00 DS8617 2000/11/29 Ver1.10 DS8623,DS8607/08,DS8607/08A available 6. Grant of License This is sample program to understand how to remote control IWATSU DSO. You may make any new program by referring this sample program. Transferal You may transfer this program to another person, as long as all copies of the program and documentation are transferred to that person at the same time. You agree that this program remains the property of IWATSU, and is protected by the laws of copyright and trade secrets. Disclaimer of Liability IWATSU disclaims any liability for incidental or consequential damages, arising out of the use or inability to use the program, or arising from the negligence of IWATSU or its employees, consultants, dealers or associates, even if these parties have been advised of the possibility of such damages. By using the program, you indemnify and agree to hold IWATSU harmless from such claims. You assume the entire risk as to the results and performance of the program. Copyright 2001 IWATSU Electric Co., Ltd. All Rights Reserved