User Manual 3153
Using The Instrument 3-36
Use an I/O routine such as ViMoveAsync (from the VISA I/O library) to
transfer the data.
SMEM:STATE OFF
Figure 3-9, Data format for shared memory download
The following program fragment shows an example of programming the
3153
#include <visa.h>
#include <ansi_c.h>
#include "ri3153.h"
#include <cvirte.h> /* Needed if linking in external compiler; harmless otherwise */
/*=========================================================================*/
/* Function: Load Arbitrary Data
*/
/* Location: ri3153.c
*/
/* Purpose: This function loads arbitrary data into the specified segment */
/*=========================================================================*/
ViStatus _VI_FUNC ri3153_load_arb_data (ViSession vi,
ViInt16 segment_number,
ViInt16 *data_pts,
ViInt32 number_of_points)
{
ViInt32 max_size;
ViStatus error;
ViUInt32 cnt;
ViJobId job;
ViEventType etype;
ViEvent event;
/* range check the parameters */
if (error = ri3153_int_range (segment_number, RI3153_MIN_SEG_NUMBER,
WAVEFORM POINT 1
X
X
X
D0
D1
D2
WAVEFORM POINT DATA
D4
D5
D6
D7
D0
D1
D2
D3
D4
D5
D6
D7
X
X
X
D0
D1
D2
WAVEFORM POINT DATA
D4
D5
D6
D7
D0
D1
D2
D3
D4
D5
D6
D7
X
X
X
D0
D1
D2
WAVEFORM POINT DATA
D4
D5
D6
D7
D0
D1
D2
D3
D4
D5
D6
D7
X
X
X
D0
D1
D2
WAVEFORM POINT DATA
D4
D5
D6
D7
D0
D1
D2
D3
D4
D5
D6
D7
WAVEFORM POINT 2
WAVEFORM POINT 3
WAVEFORM POINT 4
DATA GROUP
X
X
X
X
D3
D3
D3
D3
MSB
LOW BYTE
HIGH BYTE
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com