National Instruments Welding System 321645c-01 Manual De Usuario

Descargar
Página de 554
Chapter 2
Function Reference — WFM_Load
©
 National Instruments Corporation
2-433
NI-DAQ FRM for PC Compatibles
changing the jumpers on the device, you must call 
AO_Configure
 to set the software copies 
of the settings prior to calling 
WFM_Group_Control
 (operation = START). You can make 
repeated calls to 
WFM_Load
 to change the shape of a waveform in progress, except on E Series 
devices and SCXI DAQ modules used with remote SCXI; if you make repeated calls using 
these devices, this function will return a transferInProgError. You also must use the 
parameter values for numChans and chanVect used in the call to 
WFM_Load
 prior to starting 
the waveform when making calls to 
WFM_Load
 while a waveform is in progress.
(AT-MIO-16F-5 only) If your buffer has been aligned by a previous call to 
Align_DMA_Buffer
WFM_Load
 automatically indexes into the buffer to the new starting 
point of the data. If you call 
WFM_Load
 with a new buffer while a waveform generation is in 
progress, NI-DAQ unaligns the previous buffer when the function returns.
The DSA devices use 32-bit data buffers. If you are using C or Delphi, you will need to type 
cast your i32 array to i16 when you call 
WFM_Load
. If you are using Visual Basic, you should 
use the 
nidaqr32.bas 
file (instead of 
nidaq32.bas
) to relax type checking on buffer. The 
DSA devices use the upper 18 bits of each buffer element. The lower 14 bits are ignored and 
you should set them to zero.