Angilent Signal Source Control Program

Source: Internet
Author: User
The signal source control interface is as follows:

At the beginning of the signal source, you must set three parameters: mod 1C RF, which are enabled and disabled respectively. When transmitting signals, you must set the transmission frequency and power. After determining the Emission frequency and power values, click set all to change the instrument settings. The frequency and power control code is similar to the frequency spectrometer. Here we will introduce how to enable and disable the MOD code.

Open mod

Visession defaultrm, VI; vistatus result; char Buf [256] = {0}; viopendefaultrm (& defaultrm); cstring S3 = "tcpip0: 10.10.150.155: instr "; vistring Toal = s3.getbuffer (0); viopen (defaultrm, Toal, vi_null, vi_null, & VI); vistring strcommand; cstring SS1, svalue; SS1 = ": outp: moD 1 \ n "; strcommand = ss1.getbuffer (0); Result = viprintf (Vi, strcommand); If (result = vi_success) {MessageBox (" set successfully "); getdlgitem (idc_button11)-> setwindowtext ("Mod enabled"); getdlgitem (idc_button12)-> setwindowtext ("Disable MOD");} viclose (VI); viclose (defaultrm );

Disable mod: visession defaultrm, VI; vistatus result; char Buf [256] = {0}; viopendefaultrm (& defaultrm); cstring S3 = "tcpip0: 10.10.150.155: instr "; vistring Toal = s3.getbuffer (0); viopen (defaultrm, Toal, vi_null, vi_null, & VI); vistring strcommand; cstring SS1, svalue; SS1 = ": outp: moD 0 \ n "; strcommand = ss1.getbuffer (0); Result = viprintf (Vi, strcommand); If (result = vi_success) {MessageBox (" set successfully "); getdlgitem (idc_button12)-> setwindowtext ("Mod disabled"); getdlgitem (idc_button11)-> setwindowtext ("enable MOD");} viclose (VI); viclose (defaultrm );
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.