background image

Programming Manual                                                                                                                                                UTG1000X Series 

Instruments.uni-trend.com                                                                                                                                                                                 

 

25

 / 

51

 

 

 

For Example 
:CHANnel1:BURSt:PHASe 18   

 

 

 

Set phase of burst for CH1 to 18°. 

:CHANnel1:BURSt:PHASe?   

 

 

 

The query returns 1.8e+1. 

:CHANnel<n>:BURSt:CYCLes 

 

Syntax 
:CHANnel<n>:BURSt:CYCLes <cycles> 
:CHANnel<n>:BURSt:CYCLes? 

 

Description 
Set cycle of burst for the specified channel.   
< cycles >represents cycle numbers, it is integer data. 
<n>: Channel number, n takes value 1, 2. 

 

Return Format 
The query returns cycle of burst for the specified channel in scientific notation. 

 

For Example 
:CHANnel1:BURSt:CYCLes 2   

 

 

 

 

Set cycle of burst for the specified channel    to 2. 
:CHANnel1:BURSt:CYCLes?   

 

 

 

The query returns 2 

:CHANnel<n>:BURSt:GATe:POLarity 

 

Syntax 
:CHANnel<n>:BURSt:GATe:POLarity {POSitive|NEGative} 
:CHANnel<n>:BURSt:GATe:POLarity? 

 

Description 
Set the polarity of gating for the specified channel. There are positive and negative. 
<n>: Channel number, n takes value 1, 2. 

 

Return Format 
The query returns the polarity of gating for the specified channel. 

 

For Example 
:CHANnel1:BURSt:GATe:POLarity POSitive        Set the polarity of gating for CH1 to POSitive. 
:CHANnel1:BURSt:GATe:POLarity? 

 

 

The query returns POSitive. 

:CHANnel<n>:TRIGger:SOURce 

 

Syntax 
:CHANnel<n>:TRIGger:SOURce {INTernal|EXTErnal} 
:CHANnel<n>:TRIGger:SOURce?   

 

Description 
Set trigger source for the specified channel. This instruction is only valid for burst function. 
<n>: Channel number, n takes value 1, 2. 

 

Return Format 

Summary of Contents for UTG1000X Series

Page 1: ...Programming Manual UTG1000X Series Function Arbitrary Waveform Generator...

Page 2: ...blications The information provided in this manual is subject to change without notice UNI T shall not be liable for any errors that may be contained in this manual For any incidental or consequential...

Page 3: ...this feature is being queried Symbol Description The following four symbols are not part of the SCPI command They cannot be sent with the command but they are commonly used for supplementary specific...

Page 4: ...sets Character string must begin and end with paired quotes it can use single or double quotation marks The quotation and delimiter can also be part of a string by typing it twice and not adding any...

Page 5: ...the error message and send and receive queue buffers SYSTem Command It is used for the basic operation of the signal source including voice selection and system data setting SYSTem CONFigure Syntax SY...

Page 6: ...the interchannel to INDependent SYSTem PHASe MODe The query returns INDependent SYSTem LANGuage Syntax SYSTem LANGuage ENGLish CHINese SYSTem LANGuage Description The system language Return Format Th...

Page 7: ...e backlight brightness level to 30 SYSTem BRIGhtness The query returns 30 SYSTem SLEEP TIMe Syntax SYSTem SLEEP TIMe CLOSe 1MIN 5MIN 15MIN 30MIN 60MIN SYSTem SLEEP TIMe Description The sleep time of t...

Page 8: ...od Syntax SYSTem CYMometer PERiod Description Acquiring the currently measured period of the frequency meter Return Format The query returns the currently measured period of the frequency meter in sci...

Page 9: ...OUTPut Description Turn on off the channel output switch of the specified channel n Channel number n takes value 1 2 Return Format The query returns the output status of the specified channel 0 repres...

Page 10: ...e sync output status for the specified channel Notice If there is only one synchronous output interface and only one channel can be opened for synchronous output n Channel number n takes value 1 2 Ret...

Page 11: ...er limit of amplitude for the specified channel voltage represents voltage the unit is the specified unit of the current channel n Channel number n takes value 1 2 Return Format The query returns the...

Page 12: ...ng to high resistance Return Format The query returns load resistance value of the specified channel in scientific notation For Example CHANnel1 LOAD 50 Set the output load for CH1 to 50 CHANnel1 LOAD...

Page 13: ...n BASE FREQuency Syntax CHANnel n BASE FREQuency freq CHANnel n BASE FREQuency Description Set the output frequency for the specified channel freq represents frequency value the unit is Hz 1e 6Hz the...

Page 14: ...the specified channel For Example CHANnel1 BASE PHAse 20 Set the output phase of CH1 to 20 CHANnel1 BASE PHAse The query returns 20 CHANnel n BASE AMPLitude Syntax CHANnel n BASE AMPLitude amp CHANnel...

Page 15: ...GH voltage CHANnel n BASE HIGH Description Set the high level of signal output for the specified channel voltage represents voltage the unit is the specified unit of the current channel n Channel numb...

Page 16: ...d channel to load arbitrary wave data of a file under basic wave and arbitrary wave source n Channel number n takes value 1 2 source INTernal EXTernal which is internal or external filename The filena...

Page 17: ...CHANnel1 PULSe RISe 0 002 Set the rising edge pulse width of impulse wave for CH1 to 2ms CHANnel1 PULSe RISe The query returns 2e 3 CHANnel n PULSe FALL Syntax CHANnel n PULSe FALL width CHANnel n PUL...

Page 18: ...p ARB NOISe CHANnel n MODulate WAVe Description Set the modulation wave for the specified channel There are sine wave square wave upper triangle wave down triangle wave arbitrary wave arbitrary wave a...

Page 19: ...xample CHANnel1 MODulate FREQuency 2000 Set the modulation frequency of CH1 to 2kHz CHANnel1 MODulate FREQuency The query returns 2e 3 CHANnel n MODulate ARB Syntax CHANnel n MODulate ARB source filen...

Page 20: ...Channel number n takes value 1 2 Return Format The query returns the modulation rate value of the specified channel in scientific notation For Example CHANnel1 MODulate RATio 100 Set the bit rate for...

Page 21: ...eviation under PWM mode for the specified channel duty represents duty cycle deviation the unit is The range is 0 100 n Channel number n takes value 1 2 Return Format The query returns the duty cycle...

Page 22: ...entific notation For Example CHANnel1 PSK PHAS 90 Set the output phase of CH1 to 90 CHANnel1 PSK PHAS The query returns 9e 1 Frequency Sweep CHANnel n SWEep TYPe Syntax CHANnel n SWEep TYPe LINe LOG C...

Page 23: ...ncy the unit is Hz n Channel number n takes value 1 2 Return Format The query returns the cut off frequency for the frequency sweep of the specified channel in scientific notation For Example CHANnel1...

Page 24: ...n BURSt PERiod period CHANnel n BURSt PERiod Description Set the burst period for the specified channel period represents time the unit is S n Channel number n takes value 1 2 Return Format The query...

Page 25: ...to 2 CHANnel1 BURSt CYCLes The query returns 2 CHANnel n BURSt GATe POLarity Syntax CHANnel n BURSt GATe POLarity POSitive NEGative CHANnel n BURSt GATe POLarity Description Set the polarity of gatin...

Page 26: ...trigger output of the rising edge for CH1 to RISe CHANnel1 BURSt TRGEdge The query returns RISe WARB Command It is used to write arbitrary wave file command including write configuration of basic arbi...

Page 27: ...h the NI VISA and programming language Programming preparation is only applicable for using Visual Studio and LabVIEW development tools to programming under Windows operating system 1 Setup Communicat...

Page 28: ...ip to decompressing files after the decompression is completed the installation program will execute automatically If your computer needs to install NET Framework4 it will installed automatically duri...

Page 29: ...path is C Program Files x86 National Instruments or you can click Next to change the installation path as shown in the following figure g Double click Next in the license agreement dialogue and to sel...

Page 30: ...Restart the computer after the installation is completed 2 Connecting Device Take USB method as an example to introduce the connection a Turn on the spectrum analyzer b Use USB wire to connect the US...

Page 31: ...AX on the computer The dialogue as shown in the following figure d Turn on the device and scroll down the options to select the spectrum analyzer s drive as shown in the following figure e Use mouse t...

Page 32: ...shown in the following figure g Use mouse to click Query to query IDN of the spectrum analyzer the query result will display at the red area as shown in the following figure h If it can query the rel...

Page 33: ...ect environment that can adjust NI VISA libray which are static library and dynamic library a Static library In NI VISA installment path to find file visa h visatype h and visa32 lib and copy them to...

Page 34: ...nNT include as shown in the following figure Select Linker General in attribute dialog on the left side set the value of Additional Library Directories to visa32 lib as shown in the following figure A...

Page 35: ...defaultRM if status VI_SUCCESS printf Could not open a session to the VISA Resource Manager n return status Find all the USB TMC VISA resources in our system and store the number of resources in the...

Page 36: ...he string IDN n asking for the device s identification char cmmand IDN n status viPrintf instr cmmand if status VI_SUCCESS printf Error writing to the device d n i 1 status viClose instr continue Now...

Page 37: ...f status VI_SUCCESS printf Could not open a session to the VISA Resource Manager n Now we will open a session via TCP IP device char head 256 TCPIP0 char tail inst0 INSTR strcat head pIP strcat head t...

Page 38: ...Access the instrument via USBTMC and TCP IP and send IDN command on NI VISA to query the device information Steps 1 Open Visual Studio software and create a new C console project 2 Add C quote Ivi Vis...

Page 39: ...ass Program void tcp_ip_test string ip using var rmSession new ResourceManager try var resource string Format TCPIP0 0 inst0 INSTR ip var mbSession MessageBasedSession rmSession Open resource mbSessio...

Page 40: ...e visa32 bas and add this file as shown in the following figure 3 Source code a USBTMC Example PrivateFunction usbtmc_test AsLong This code demonstrates sending synchronous read write commands to an U...

Page 41: ...inding resources viClose defaultRM usbtmc_test status ExitFunction EndIf Now we will open VISA sessions to all USB TMC instruments We must use the handle from viOpenDefaultRM and we must also use a st...

Page 42: ...isplayed status viRead instrsesn Buffer MAX_CNT retCount If status VI_SUCCESS Then resultTxt Text Error reading a response from the device CStr i 1 Else resultTxt Text Read from device CStr i 1 Buffer...

Page 43: ...ead from device outputBuffer EndIf status viClose instrsesn status viClose defaultRM tcp_ip_test 0 EndFunction LabVIEW Example Environment Window system LabVIEW Description Access the instrument via U...

Page 44: ...n the node and select Synchronous I O Mode Synchronous from shortcut menu to enable synchronous writing or reading of data as shown in the following figure MATLAB Example Environment Window system MAT...

Page 45: ...he device s identification fprintf vu IDN Request the data outputbuffer fscanf vu disp outputbuffer Close the VISA object fclose vu delete vu clear vu end b TCP IP Example function tcp_ip_test This co...

Page 46: ...script compiling software create an empty test py file 2 Use pip install PyVISA instruction to install PyVISA if it cannot install please refer to this link https pyvisa readthedocs io en latest 3 Sou...

Page 47: ...ltage value and low voltage value can replace CHANnel1 BASE AMPLitude and CHANnel1 BASE OFFSet The following command can generate the sine wave as shown above CHANnel1 MODe CONTinue CHANnel1 BASE WAVe...

Page 48: ...BASE DUTY 20 CHANnel1 OUTPut ON Configuring Sawtooth Wave This section is to introduce how to configure the sawtooth wave Explanation A sawtooth wave has an amplitude an offset and a phase relative t...

Page 49: ...CHANnel1 OUTPut ON Configuring Impulse Wave This section is to introduce how to configure the impulse wave Explanation An impulse wave has an amplitude an offset and a phase relative to a synchronous...

Page 50: ...HANnel1 OUTPut ON Configuring Arbitrary Wave This section is to introduce how to configure the arbitrary wave Explanation A harmonic wave has frequency amplitude offset and phase It also adds mode and...

Page 51: ...FT Right Arrow key RIGHT OK Confirm key CH1 Channel 1 key CH2 Channel 2 key F1 Select the first menu option at the current menu F2 Select the second menu option at the current menu F3 Select the third...

Reviews: