EasyManuals Logo

Anritsu MG369 C Series User Manual

Anritsu MG369 C Series
266 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #77 background imageLoading...
Page #77 background image
Programming with GPIB Commands 2-17 Fast-Frequency-Switching Commands
MG369xC GPIB PM PN: 10370-10374 Rev. F 2-45
integer_ptr = &num_freqs; /** Point to the number of frequencies. **/
command_str[7] = (char)(*(integer_ptr + 3)); /** Get the value of the fourth byte. **/
command_str[8] = (char)(*(integer_ptr + 2)); /** Get the value of the third byte. **/
command_str[9] = (char)(*(integer_ptr + 1)); /** Get the value of the second byte. **/
command_str[10] = (char)(*integer_ptr); /** Get the value of the first byte. **/
double_ptr = &(freq_list[0]) /** Point to the first frequency. **/
command_str[11] = (char)(*(double_ptr + 7)); /** Get the value of byte 7. **/
/** Data is LSB first on Intel based PCs. **/
command_str[12] = (char)(*(double_ptr + 6)); /** Byte 6. **/
command_str[13] = (char)(*(double_ptr + 5)); /** Byte 5. **/
command_str[14] = (char)(*(double_ptr + 4)); /** Byte 4. **/
command_str[15] = (char)(*(double_ptr + 3)); /** Byte 3. **/
command_str[16] = (char)(*(double_ptr + 2)); /** Byte 2. **/
command_str[17] = (char)(*(double_ptr + 1)); /** Byte 1. **/
command_str[18] = (char)(*double_ptr ); /** Byte 0. **/
double_ptr = &(freq_list[1]) /** Point to the second frequency. **/
command_str[19] = (char)(*(double_ptr + 7)); /** Get the value of byte 7. **/
command_str[20] = (char)(*(double_ptr + 6)); /** Byte 6. **/
command_str[21] = (char)(*(double_ptr + 5)); /** Byte 5. **/
command_str[22] = (char)(*(double_ptr + 4)); /** Byte 4. **/
command_str[23] = (char)(*(double_ptr + 3)); /** Byte 3. **/
command_str[24] = (char)(*(double_ptr + 2)); /** Byte 2. **/
command_str[25] = (char)(*(double_ptr + 1)); /** Byte 1. **/
command_str[26] = (char)(*double_ptr ); /** Byte 0. **/
/** Send the command.
**/
Send(BOARD_ID, source_addr, command_str, 27, DABend);
if (ibsta & ERR)
{
exit (-1);
}
/** Set the pointer back to the start index.
**/
command_str[0] = ‘Z’; /** ZPN command. **/
command_str[1] = ‘P’;
command_str[2] = ‘N’;
integer_ptr = &start_index; /** Point to the start index. **/
command_str[3] = (char)(*(integer_ptr + 3)); /** Get the value of the fourth byte. **/
command_str[4] = (char)(*(integer_ptr + 2)); /** Get the value of the third byte. **/
command_str[5] = (char)(*(integer_ptr + 1)); /** Get the value of the second byte. **/
command_str[6] = (char)(*integer_ptr); /** Get the value of the first byte. **/
/** Send the command.
**/
Send(BOARD_ID, source_addr, command_str, 7, DABend);
if (ibsta & ERR)
{
exit (-1);
}
NOTE: This program is continued on the next page.
Figure 2-12. Fast-Frequency-Switching Programming Example (2 of 3)

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Anritsu MG369 C Series and is the answer not in the manual?

Anritsu MG369 C Series Specifications

General IconGeneral
BrandAnritsu
ModelMG369 C Series
CategoryPortable Generator
LanguageEnglish

Related product manuals