📄 daq2.h
字号:
typedef char i8;
typedef unsigned char u8;
typedef short i16;
typedef unsigned short u16;
typedef long i32;
typedef unsigned long u32;
typedef float f32;
typedef double f64;
typedef i16 (* DAQEventCallBack) (i16, i16, u16, u32);
extern i16 A2000_Calibrate (
i16 slot,
i16 saveNewValues,
i16 calMethod,
i16 channel,
f64 extRefVoltage);
//%novectorize
extern i16 A2000_Config (
i16 slot,
i16 sampClkSrc,
i16 sampClkDrv,
i16 dither);
//%novectorize
extern i16 A2150_Calibrate (
i16 slot,
i16 ref0,
i16 ref1);
//%novectorize
extern i16 AI_Check (
i16 slot,
i16 * status,
i16 * value);
//%output status
//%output value
//%novectorize
extern i16 AI_Clear (
i16 slot);
//%novectorize
extern i16 AI_Configure (
i16 slot,
i16 chan,
i16 inputMode,
i16 inputRange,
i16 polarity,
i16 driveAIS);
//%novectorize
extern i16 AI_Mux_Config (
i16 slot,
i16 numMuxBrds);
//%novectorize
extern i16 AI_Read (
i16 slot,
i16 chan,
i16 gain,
i16 * value);
//%output value
//%novectorize
extern i16 AI_Setup (
i16 slot,
i16 chan,
i16 gain);
//%novectorize
extern i16 AI_VRead (
i16 slot,
i16 chan,
i16 gain,
f64 * volts);
//%output volts
extern i16 AI_VScale (
i16 slot,
i16 chan,
i16 gain,
f64 gainAdjust,
f64 offset,
i16 reading,
f64 * voltage);
//%output voltage
//%novectorize
extern i16 Align_DMA_Buffer (
i16 slot,
i16 resource,
i16 * buffer,
u32 cnt,
u32 bufSize,
u32 * alignIndex);
//%input buffer(cnt)
//%output alignIndex
//%novectorize
extern i16 AO_Calibrate (
i16 board,
i16 operation,
i16 EEPROMloc);
//%novectorize
extern i16 AO_Configure (
i16 slot,
i16 chan,
i16 outputPolarity,
i16 IntOrExtRef,
f64 refVoltage,
i16 updateMode);
//%novectorize
extern i16 AO_Change_Parameter (
i16 slot,
i16 channel,
u32 paramID,
u32 paramValue);
//%novectorize
extern i16 AO_Update (
i16 slot);
//%novectorize
extern i16 AO_VWrite (
i16 slot,
i16 chan,
f64 voltage);
//%novectorize
extern i16 AO_Write (
i16 slot,
i16 chan,
i16 value);
//%novectorize
extern i16 Calibrate_E_Series (
i16 deviceNumber,
u32 calOp,
u32 setOfCalConst,
f64 calRefVolts);
//%novectorize
extern i16 Config_Alarm_Deadband (
i16 slot,
i16 mode,
i8 * chanStr,
f64 trigLvl,
f64 deadbandWidth,
HWND handle,
i16 alarmOnMsg,
i16 alarmOffMsg,
DAQEventCallBack callbackAddr);
//%nowrap
extern i16 Config_ATrig_Event_Message (
i16 slot,
i16 mode,
i8 * chanStr,
f64 trigLvl,
f64 winSize,
i16 trigSlope,
u32 skipCnt,
u32 preTrigScans,
u32 postTrigScans,
HWND handle,
i16 msg,
DAQEventCallBack callBackAddr);
//%nowrap
extern i16 Config_DAQ_Event_Message (
i16 slot,
i16 mode,
i8 * chanStr,
i16 DAQEvent,
i32 trigVal0,
i32 trigVal1,
u32 skipCnt,
u32 preTrigScans,
u32 postTrigScans,
HWND handle,
i16 msg,
DAQEventCallBack callBackAddr);
//%nowrap
extern i16 Configure_HW_Analog_Trigger (
i16 deviceNumber,
u32 onOrOff,
i32 lowValue,
i32 highValue,
u32 mode,
u32 trigSource);
//%novectorize
extern i16 CTR_Config (
i16 slot,
i16 ctr,
i16 edgeMode,
i16 gateMode,
i16 outType,
i16 outPolarity);
//%novectorize
extern i16 CTR_EvCount (
i16 slot,
i16 ctr,
i16 timebase,
i16 cont);
//%novectorize
extern i16 CTR_EvRead (
i16 slot,
i16 ctr,
i16 * overflow,
u16 * counts);
//%output overflow
//%output counts
//%novectorize
extern i16 CTR_FOUT_Config (
i16 slot,
i16 FOUT,
i16 mode,
i16 timebase,
i16 division);
//%novectorize
extern i16 CTR_Period (
i16 slot,
i16 ctr,
i16 timebase);
//%novectorize
extern i16 CTR_Pulse (
i16 slot,
i16 ctr,
i16 timebase,
u16 delay,
u16 pulseWidth);
//%novectorize
extern i16 CTR_Rate (
f64 freq,
f64 duty,
i16 * timebase,
u16 * period1,
u16 * period2);
//%output timebase
//%output period1
//%output period2
//%novectorize
extern i16 CTR_Reset (
i16 slot,
i16 ctr,
i16 outState);
//%novectorize
extern i16 CTR_Restart (
i16 slot,
i16 ctr);
//%novectorize
extern i16 CTR_Simul_Op (
i16 slot,
i16 numCtrs,
i16 * ctrList,
i16 mode);
//%input ctrList(numCtrs)
//%novectorize
extern i16 CTR_Square (
i16 slot,
i16 ctr,
i16 timebase,
u16 period1,
u16 period2);
//%novectorize
extern i16 CTR_State (
i16 slot,
i16 ctr,
i16 * outState);
//%output outState
//%novectorize
extern i16 CTR_Stop (
i16 slot,
i16 ctr);
//%novectorize
extern i16 DAQ_Check (
i16 slot,
i16 * status,
u32 * retrieved);
//%output status
//%output retrieved
//%novectorize
extern i16 DAQ_Clear (
i16 slot);
//%novectorize
extern i16 DAQ_Config (
i16 slot,
i16 startTrig,
i16 extConv);
//%novectorize
extern i16 DAQ_DB_Config (
i16 slot,
i16 dbMode);
//%novectorize
extern i16 DAQ_DB_HalfReady (
i16 slot,
i16 * halfReady,
i16 * status);
//%output halfReady
//%output status
//%novectorize
extern i16 DAQ_DB_StrTransfer (
i16 slot,
i8 * buffer,
u32 * ptsTfr,
i16 * status);
//%nowrap
//%output buffer
//%output ptsTfr
//%output status
//%novectorize
extern i16 DAQ_DB_Transfer (
i16 slot,
i16 * hbuffer,
u32 * ptsTfr,
i16 * status);
//%nowrap
extern i16 DAQ_Monitor (
i16 slot,
i16 chan,
i16 seq,
u32 monitorCnt,
i16 * monitorBuf,
u32 * newestIndex,
i16 * status);
//%output monitorBuf(monitorCnt)
//%output newestIndex
//%output status
//%novectorize
extern i16 DAQ_Op (
i16 slot,
i16 chan,
i16 gain,
i16 * buffer,
u32 cnt,
f64 sampleRate);
//%output buffer(cnt)
//%novectorize
extern i16 DAQ_Rate (
f64 rate,
i16 units,
i16 * timebase,
u16 * sampleInt);
//%output timebase
//%output sampleInt
//%novectorize
extern i16 DAQ_Start (
i16 slot,
i16 chan,
i16 gain,
i16 * buffer,
u32 cnt,
i16 timebase,
u16 sampInt);
//%nowrap
extern i16 DAQ_StopTrigger_Config (
i16 slot,
i16 preTrig,
u32 preTrigCnt);
//%novectorize
extern i16 DAQ_to_Disk (
i16 slot,
i16 chan,
i16 gain,
i8 * fileName,
u32 cnt,
f64 sampleRate,
i16 concat);
//%novectorize
extern i16 DAQ_VScale (
i16 slot,
i16 chan,
i16 gain,
f64 gainAdjust,
f64 offset,
u32 cnt,
i16 * binArray,
f64 * voltArray);
//%input binArray(cnt)
//%output voltArray(cnt)
//%novectorize
extern i16 DIG_Block_Check (
i16 slot,
i16 grp,
u32 * remaining);
//%output remaining
//%novectorize
extern i16 DIG_Block_Clear (
i16 slot,
i16 grp);
//%novectorize
extern i16 DIG_Block_In (
i16 slot,
i16 grp,
i16 * buffer,
u32 cnt);
//%output buffer(cnt*grp)
//%novectorize
extern i16 DIG_Block_Out (
i16 slot,
i16 grp,
i16 * buffer,
u32 cnt);
//%input buffer(cnt*grp)
//%novectorize
extern i16 DIG_Block_PG_Config (
i16 slot,
i16 grp,
i16 PGmode,
i16 reqSource,
i16 timebase,
u16 interval,
i16 externalGate);
//%novectorize
extern i16 DIG_DB_Config (
i16 slot,
i16 grp,
i16 DBMode,
i16 oldDataStop,
i16 partialTransfer);
//%novectorize
extern i16 DIG_DB_HalfReady (
i16 slot,
i16 grp,
i16 * halfReady);
//%output halfReady
//%novectorize
extern i16 DIG_DB_StrTransfer (
i16 slot,
i16 grp,
i8 * halfBuffer,
u32 ptsTfr);
//%nowrap
extern i16 DIG_DB_Transfer (
i16 slot,
i16 grp,
i16 * halfBuffer,
u32 ptsTfr);
//%nowrap
extern i16 DIG_Grp_Config (
i16 slot,
i16 grp,
i16 grpsize,
i16 port,
i16 direction);
//%novectorize
extern i16 DIG_Grp_Mode (
i16 slot,
i16 grp,
i16 sigType,
i16 edge,
i16 reqpol,
i16 ackpol,
i16 settleTime);
//%novectorize
extern i16 DIG_Grp_Status (
i16 slot,
i16 grp,
i16 * status);
//%output status
//%novectorize
extern i16 DIG_In_Grp (
i16 slot,
i16 grp,
i16 * grp_pat);
//%output grp_pat
//%novectorize
extern i16 DIG_In_Line (
i16 slot,
i16 port,
i16 linenum,
i16 * status);
//%output status
//%novectorize
extern i16 DIG_In_Port (
i16 slot,
i16 port,
i16 * pattern);
//%output pattern
//%novectorize
extern i16 DIG_Line_Config (
i16 slot,
i16 port,
i16 linenum,
i16 direction);
//%novectorize
extern i16 DIG_Out_Grp (
i16 slot,
i16 grp,
i16 grp_pat);
//%novectorize
extern i16 DIG_Out_Line (
i16 slot,
i16 port,
i16 linenum,
i16 status);
//%novectorize
extern i16 DIG_Out_Port (
i16 slot,
i16 port,
i16 pattern);
//%novectorize
extern i16 DIG_Prt_Config (
i16 slot,
i16 port,
i16 latch_mode,
i16 direction);
//%novectorize
extern i16 DIG_Prt_Status (
i16 slot,
i16 port,
i16 * status);
//%output status
//%novectorize
extern i16 DIG_SCAN_Setup (
i16 slot,
i16 grp,
i16 numPorts,
i16 * portList,
i16 direction);
//%input portList(numPorts)
//%novectorize
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -