Download UEIDAQ Software Manual
Transcript
Visual Basic Usage : Declare Function wfm_chan_h Lib "ueidaq.dll" (chan_list%, ByVal n_samp%, ByVal n_cycle%, ByVal hgBuf%) As Integer Target : DOS, Windows 3.1 Description : This function takes a series of samples from the buffer, and outputs them to selected D/A converters. This will occur at the rate set by the prescaler and D/A divider, or the external clock. A list of channels is given by the parameter chan_list, and the number of samples by the parameter n_samp. The number of times that the function is to cycle through the buffer is given by the n_cycle parameter. The parameter f_sample is the integer variable from which the first sample is written. The channel list is an integer array of any length, which must be terminated by a channel number greater than 15. Wfm_chan_h is a Windows specific version of the function; rather than a buffer address, it takes a Windows Global Handle. Return value : ok_30 - operation performed par_30 - Invalid channel number. task_30 - Too many tasks accessing the data acquisition hardware. Prior calls : Set_base, diag or set_type See Also : D/A clock. Windows Examples : DOS Examples : Demo16.c 6.58. Wfmih_chan, Wfmih_chan_h Name : wfmih_chan - Interrupt driven waveform generation via the D/A outputs. Boards Supported : All WIN boards C Usage : #include <PC30.H> int DRVENTRY wfmih_chan(int DRVBUF c_list[], long n_samp, long n_cycle, int __huge *buf, int i_lvl); Borland Pascal Usage : function wfmih_chan(var chan_list; n_samp : longint; n_cycle : longint; var f_sample : integer; i_lvl : integer) : integer; DOS QuickBasic Usage : REM $INCLUDE: 'PC30.INC' FUNCTION wfmih.chan% ALIAS "wfmih_chan" (SEG chan.list%, BYVAL n.samp&, BYVAL n.cycle&, SEG f.sample%, BYVAL i.lvl%) DOS FORTRAN Usage : INCLUDE 'PC30.fi' INCLUDE 'PC30.fd' Programmers Guide 87