![background image](http://html2.mh-extra.com/html/racal-instruments/3153/3153_user-manual_3135464071.webp)
User Manual 3153
Using The Instrument 3-38
0, 0, 0, 0,
0, 0, 0, 0
};
ViSession vi;
if (InitCVIRTE (0, argv, 0) == 0) /* Needed if linking in external compiler; harmless otherwise */
return -1; /* out of memory */
/* Initialize 3153 in slot 7 */
ri3153_init ("VXI::7::INSTR", 1, 1, &vi);
/* Select Arbitrary waveform mode */
ri3153_select_waveform_mode (vi, RI3153_MODE_ARB);
/* Turn Output on */
ri3153_output (vi, RI3153_OUTPUT_ON);
/* Define Segment 1 */
ri3153_define_arb_segment (vi, 1, 24, 1);
/* Download 24 points */
ri3153_load_arb_data (vi, 1, data_pts, 24);
}
The above program uses the VISA I/O library and the LABWindows/CVI
driver.
16-Bit Shared
Memory Download
When you download waveform data using the standard shared memory
routine, the Model 3153 accepts waveform data only and the internal
CPU places the various bits that control segment length, SYNC position,
etc. Look at Figure 3-9 and observe that you must download 16 bits, of
which only 12 determine point value while the other 4 bits are not used.
The process of downloading waveforms, using the standard shared
memory mode requires a few steps: 1) Select segment, 2) Define
segment length, 3) Define SYNC position, 4) Define breakpoint, 5)
Select the active segment etc. These operations are multiplied by the
number of segments that you want to program.
The 16-bit shared memory download mode lets you bypass all of these
steps and program the entire memory, including SYNC, trigger start
point, break point and stop bit in one download process, thus saving
many valuable time.
There is a basic difference between the two download modes. The
standard shared memory download mode lets you download waveforms
alone. After the waveform has downloaded the CPU takes control and
performs the basic tasks such as placing the data at the appropriate
start address, SYNC, break point and trigger offset bits and setting the
stop bits. The information to set these bits is calculated by the CPU and
therefore, the internal circuit has full control over the memory function.
In contrast, when the download mode is changed to 16-bit shared
memory download, one must expect that control be passed from the
instrument to the user. In this case, the CPU does not perform control
bit settings so it is entirely up to the user to place all bits at the exact
location otherwise the Model 3153 will not generate waveforms as
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com