7. UD Function Reference
BYTE DscFree() (void)
BYTE DscInitBoard (BYTE boardtype, DSCCB dsccb, DSCB board)
BYTE DscPCIInitBoard (BYTE boardtype, DSCCBP dsccbp, DSCB board)
BYTE DscFreeBoard (DSCB board)
A/D Functions
BYTE dscADSetSettings (DSCB board, DscADSettings* settings)
BYTE dscADSetChannel (DSCB board, BYTE low_channel, BYTE high_channel)
BYTE dscADSample (DSCB board, DSCSAMPLE* sample)
BYTE dscADSampleAvg (DSCB board, DFLOAT* sample, int count)
BYTE dscADSampleInt (DSCB, DSCAIOINT* dscaioint)
BYTE dscADScan (DSCB board, DSCADSCAN dscadscan, DSCSAMPLE sample_values)
BYTE dscADScanAvg (DSCB board, DSCADSCAN dscadscan, DFLOAT sample_values, int count)
BYTE dscADScanInt (DSCB board, DSCAIOINT* dscaioint)
BYTE dscADSetScan (DSCB board, DSCADSCAN* dscadscan)
BYTE dscADSetTiming (DSCB board, DscADSettings* settings)
BYTE dscADIntStatus (DSCB board, DscADIntStatus* status)
BYTE dscPauseOp (DSCB board)
BYTE dscResumeOp (DSCB board)
BYTE dscADIntCancel (DSCB board)
D/A Functions
BYTE dscDASetSettings (DSCB board, DSCDASETTINGS* settings)
BYTE dscDASetPolarity (DSCB board, BYTE polarity)
BYTE dscDAConvert (DSCB board, BYTE channel, DSCDACODE output_code)
BYTE dscDAConvertScan (DSCB board,DSCDACS* dscdacs)
BYTE dscDASetSim (DSCB board, BOOL sim)
DIO Functions
BYTE dscDIOSetConfig (DSCB board, BYTE* config_bytes)
BYTE dscDIOInputByte (DSCB board, BYTE port, BYTE* digital_value)
BYTE dscDIOOutputByte (DSCB board, BYTE port, BYTE digital_value)
BYTE dscDIOInputBit (DSCB board, BYTE port, BYTE bit, BYTE* digital_value)
BYTE dscDIOIntCancel (DSCB board)
BYTE dscDIOOutputBit (DSCB board, BYTE port, BYTE bit, BYTE digital_value)
BYTE dscDIOOutputInt (DSCB board, DSCDIOINT* dscdioint)
BYTE dscDIOSetBit (DSCB board, BYTE port, BYTE bit)
BYTE dscDIOClearBit (DSCB board, BYTE port, BYTE bit)
Counter Functions
BYTE dscCounterSetRate (DSCB board, float hertz)
BYTE dscCounterSetRateSingle (DSCB board, float hertz, DWORD ctr)
BYTE dscCounterDirectSet (DSCB board, BYTE code, WORD data, BYTE ctr_number)
BYTE dscCounterFunction (DSCB board, DSCCR *dsccr)
BYTE dscCounterRead (DSCB board, DSCCR* dsccr)
BYTE dscCounterRate (DSCB board, DSCCR* dsccr)
BYTE dscCounterConfig (DSCB board, DSCCR* dsccr)
BYTE dscCounterReset (DSCB board, BYTE Ctrno)
BYTE dsc9513SetMMR (DSCB board, DSCCR* dscqmmmmr)
BYTE dsc9513SetCMR (DSCB board, DSCQMMCMR* dscqmmcmr)
BYTE dsc9513SingleCounterControl (DSCB board, BYTE counter, BYTE action)
BYTE dsc9513CounterControl (DSCB board, DSCQMMMCC dscqmmmcc, BYTE status)
BYTE dsc9513SetLoadRegister (DSCB board, BYTE counter, WORD value)
BYTE dsc9513SetHoldRegister (DSCB board, BYTE counter, WORD value)
BYTE dsc9513ReadHoldRegister (DSCB board, BYTE counter, WORD* value)
BYTE dsc9513SpecialCounterFunction (DSCB board, DSCQMMSCF* dscqmmscf)
BYTE dsc9513MeasureFrequency (DSCB board, BYTE interval, BYTE source, WORD* pulses)
BYTE dsc9513MeasurePeriod (DSCB board, BYTE frequency, DWORD* periods)
BYTE dsc9513PulseWidthModulation (DSCB board, DSCQMMPWM* pwm)
Calibration Functions
BYTE dscSetCalMux (DSCB board, BOOL on)
BYTE dscAACCommand (DSCB board, DWORD cmd)
BYTE dscAACGetStatus (DSCB board, DSCAACSTATUS* status)
BYTE dscADAutoCal (DSCB board, DSCADCALPARAMS* params)
BYTE dscDAAutoCal (DSCB board, DSCDACALPARAMS* params)
BYTE dscADCalVerify (DSCB board, DSCADCALPARAMS* params)
BYTE dscADClockConfig (DSCB board, BYTE adclk)
BYTE dscDACalVerify (DSCB board, DSCDACALPARAMS* params)
BYTE dscGetReferenceVoltages (DSCB board, DFLOAT* refs)
BYTE dscSetReferenceVoltages (DSCB board, DFLOAT* refs)
BYTE dscDAGetOffsets (DSCB board, DFLOAT* offsets, int count)
BYTE dscDASetOffsets (DSCB board, DFLOAT* offsets, int count)
BYTE dscSetTrimDac (DSCB board, DWORD trimDac, BYTE value)
User Interrupt Functions
BYTE dscSetUserInterruptFunction (DSCB board, DSCUSERINTFUNCTION* dscuserintfunction)
BYTE dscSetUserInterruptFunctionType (DSCB board, DSCUSERINTFUNCTION* dscuserintfunction, DWORD int_type)
BYTE dscClearUserInterruptFunction (DSCB board)
BYTE dscClearUserInterruptFunctionType (DSCB board, DWORD int_type)
BYTE dscUserInt (DSCB board, DSCUSERINT* dscuserint)
BYTE dscUserIntRun (DSCB board, DSCUSERINT* dscuserint)
Watchdog Timer Functions
BYTE dscWatchdogEnable (DSCB board, WORD wd1, BYTE wd2, SDWORD options)
BYTE dscWatchdogDisable (DSCB board)
BYTE dscWatchdogTrigger (DSCB board)
BYTE dscWatchdogConfig (DSCB board, DSCWATCHDOG* watch)
D/A Wave Form Generator Functions
BYTE dscWGCommand (DSCB board, DWORD cmd)
BYTE dscWGConfigSet (DSCB board, DSCWGCONFIG* config)
BYTE dscWGBufferSet (DSCB board, DWORD address, DSCDACODE value, DWORD channel, BOOL simul)
BYTE dscWGBufferLoad (DSCB board, DSCWGCONFIG* config)
PWM Functions
BYTE dscPWMStart (DSCB board, DSCPWM* cmd)
BYTE dscPWMClear (DSCB board, BYTE pwm_circuit)
Special Functions
BYTE dscSpecialFunction (DSCB board, DSCSPECIALFUNC *func, MACRO)
Error Functions
BYTE dscGetLastError (ERRPARAMS errparams)
char* dscGetErrorString (BYTE error_code)
Optoinput Functions
BYTE dscOptoInputByte (DSCB board, BYTE port, BYTE * optoValue)
BYTE dscOptoInputBit (DSCB board, BYTE port, BYTE bit, BYTE* optoValue)
BYTE dscOptoGetPolarity (DSCB board, BYTE* polarity)
BYTE dscOptoGetState (DSCB board, DSCOPTOSTATE* state)
BYTE dscOptoSetState (DSCB board, DSCOPTOSTATE* state)
Relay Functions
BYTE dscSetRelay (DSCB board, BYTE relay, BYTE value)
BYTE dscGetRelay (DSCB board, BYTE relay, BYTE* value)
BYTE dscSetRelayMulti (DSCB board, BYTE relayGroup, BYTE value)
BYTE dscGetRelayMulti (DSCB board, BYTE relayGroup, BYTE* value)
IR104 Functions
BYTE dscIR104SetRelay (DSCB board, BYTE relay)
BYTE dscIR104ClearRelay (DSCB board, BYTE relay)
BYTE dscIR104RelayInput (DSCB board, BYTE relay, BYTE* value)
BYTE dscIR104OptoInput (DSCB board, BYTE opto, BYTE* value)
EMMDIO Functions
BYTE dscEMMDIOGetState (DSCB board, DSCEMMDIO* state)
BYTE dscEMMDIOSetState (DSCB board, DSCEMMDIO* state)
BYTE dscEMMDIOResetInt (DSCB board, DSCEMMDIORESETINT* resetinfo)
Miscellaneous Functions
BYTE dscGetTime (DWORD *ms)
BYTE dscSleep (DWORD ms)
BYTE dscGetEEPROM (DSCB board, DWORD address, BYTE* data)
BYTE dscSetEEPROM (DSCB board, DWORD address, BYTE data)
BYTE dscGetStatus (DSCB board, DSCS* status)
BYTE dscCancelOp (DSCB board)
BYTE dscCancelOpType (DSCB board, DWORD int_type)
BYTE dscInp (WORD address, BYTE *value)
BYTE dscInpw (WORD address, WORD value)
BYTE dscInpl (WORD address, DWORD value)
BYTE dscInpws (WORD address, WORD value, WORD n)
BYTE dscOutp (WORD address, BYTE value)
BYTE dscOutp (WORD address, WORD value)
BYTE dscOutpw (WORD address, WORD value)
BYTE dscOutpl (WORD address, DWORD value)
BYTE dscOutpws (WORD address, WORD buffer, WORD n)
BYTE dscGetBoardMacro (char boardtype, BYTE macro)
BYTE dscRegisterRead (DSCB board, WORD address, BYTE data)
BYTE dscRegisterWrite (DSCB board, WORD address, BYTE data)
BYTE dscGetFPGARev (DSCB board, WORD fpga)
BYTE dscSetSystemPriority (DWORD priority)
BYTE dscADCodeToVoltage (DSCB board, DSCADSETTINGS adsettings, DSCSAMPLE adsample, DWORD voltage)
BYTE dscVoltageToADCode (DSCB board, DSCADSETTINGS adsettings, DWORD voltage, DSCSAMPLE adsample)
BYTE dscDACodeToVoltage (DSCB board, DSCDASETTINGS dasettings, DSCDACODE dacode, DWORD voltage)
BYTE dscVoltageToDACode (DSCB board, DSCDASETTINGS dasettings, DWORD voltage, DSCDACODEdacode)
BYTE dscEnhancedFeaturesEnable (DSCB board, BOOL enable)
BYTE dscLEDTest (DSCB board, BOOL state)
BYTE dscSetPage (DSCB board, BYTE page_number)
BYTE dscFifoStatus (DSCB board, DSCFIFO* Fifo)
Last updated
Was this helpful?