7. UD Function Reference
BYTE DscInit (WORD version)
Initializes the Universal Driver. Must be called once at the beginning of each program.
Frees the system resources used by the universal driver. Must be called once at the end of each program. This function will automatically call DscFreeBoard for all initialized boards.
Initializes and sets the hardware settings of the given board. Must be called once for each board before using that board.
Initializes and sets the hardware settings of the given PCI board. Must be called once for each board before using that PCI board.
Frees the system resources used by the given board and disables any of the board's currently running interrupt operations. Must be called once for each board after finishing using that board. To free up all initialized boards call DscFree instead of this function.
Sets the configuration for future A/D conversions.
Sets the channel range for future A/D conversions.
Performs a single A/D conversion on the currently selected channel.
Performs count A/D conversions on the currently selected channel and returns the average.
Performs A/D conversions using interrupt-based I/O with one conversion per A/D clock tick.
Performs a set of A/D conversions on the selected range of channels.
Performs count sets of A/D conversions on the selected range of channels and returns the averages for each channel.
Performs A/D scans using interrupt-based I/O with one scan per A/D clock tick
Sets the configuration for A/D scan settings.
Sets the configuration for A/D clock source and scan settings.
Receives the status of A/D interrupt generated.
Pause the A/D interrupt generating process.
Resumes the A/D interrupt which is passed.
Cancels the A/D interrupt generated.
Sets the configuration for future D/A conversions.
Sets the current software-based polarity setting for D/A conversions.
Performs a single D/A conversion on the given channel.
Performs a set of D/A conversions on multiple target channels.
Configures the board for simultaneous update or regular single-channel update mode
Sets the DIO port configuration for future DIO operations.
Receives a BYTE from a given digital input port.
Sends a BYTE to a given digital output port.
Receives a bit value from a given digital input port at a specified bit location (0-7).
This function is used to cancel the digital interrupts.
Sends a bit value to a given digital output port at a specified bit location (0-7).
This function installs a pointer to a user function that runs when digital interrupts occur.
Writes a 1 to the specified bit on the specified port.
Writes a 0 to the specified bit on the specified port.
Sets the overall clock rate by using all individual counters.
Sets the clock rate for a specific counter or group of counters.
Sets the configuration for an individual counter.
Configures a counter/timer based on the all the options using user input.
Reads the configuration for all individual counters.
Sets the configuration and clock rate for all individual counters.
Configures the counter registers for all individual counters.
Resets the individual counter.
Programs the 9513 chip Master Mode Register on GPIO-MM 11/12.
Programs a Counter Mode Register on GPIO-MM 11/12.
Performs load, arm, disarm, and save actions on a single counter on GPIO-MM 11/12.
Performs load, arm, disarm, and save actions on a group of counters on GPIO-MM 11/12.
Loads a value into a counter's Load register on Quartz-MM.
Loads a value into a counter's Hold register on Quartz-MM.
Reads a counter's Hold register on Quartz-MM.
Performs special operations on a counter on Quartz-MM, including alarms, output values, and stepping.
Measures the frequency of an input signal on Quartz-MM.
Measures the period of an input signal on Quartz-MM.
Generates a PWM output on Quartz-MM.
Turns the calibration multiplexer on or off.
Command to start, stop, trigger, and reset auto auto-calibration.
Command to get status of auto auto-calibration operation and register status
Performs an A/D auto-calibration on a selected A/D mode or on all A/D modes.
Performs a D/A auto-calibration.
Verifies the accuracy of the A/D calibration.
Configures the clock source for A/D calibration.
Verifies the accuracy of the D/A calibration.
Reads the reference voltages from the EEPROM.
Sets the reference voltages in the EEPROM.
Retrieves the D/A offsets from the EEPROM.
Stores the D/A offsets into the EEPROM.
Modifies the onboard autocalibration TrimDAC values.
Installs a user interrupt function on all interrupt types in the driver for later use.
Installs a user interrupt function on all interrupt types in the driver for later use.
Uninstalls all user interrupt functions from this board.
Uninstalls all user interrupt functions from this board.
Starts execution of user interrupts.
Start user interrupts when they are running in Alone mode.
Enables the watchdog timer circuit on the CPU boards supported and configures it according to the given parameters.
Disables the watchdog timer circuit on the CPU board.
Retriggers the watchdog timer circuit on the CPU board.
Configures watchdog timer for desired operation and it does not enables the watch timer.
Function to stop, start, trigger, and reset the D/A wave form generator.
Sets up the D/A wave form depth, number of output per trigger, and input source.
Sets D/A output code for D/A wave form generator.
Loads the waveform data to the waveform buffer.
Configures and starts the PWM circuit.
Stops and resets the PWM circuit.
Perform the special functions applicable for specific boards.
Returns the most recent error that occurred during a Universal Driver function call.
Returns the corresponding error string for the given error code.
Simultaneously gets the state of 8 optoinputs from the board.
Gets the state of a single optoinput from the board.
Gets the polarity of the optoinputs.
Gets the overall state of optoinputs from the board.
Sets the overall state of optoinputs on the board.
Sets the state of one relay on the board.
Gets the state of one relay on the board.
Simultaneously sets the state of multiple relays on the board.
Simultaneously gets the state of multiple relays on the board.
Sets an individual relay on an IR104 board.
Clears an individual relay on an IR104 board.
Reads back an individual relay's current state on an IR104 board.
Reads an individual optoisolated digital input bit on an IR104 board.
Returns the current configuration for an Emerald-MM-DIO board.
Sets the current configuration for an Emerald-MM-DIO board.
Resets interrupt status on an Emerald-MM-DIO board.
Get a millisecond precision clock time
Waits for a specified number of milliseconds.
Reads data from the EEPROM at the specified address.
Writes data to the EEPROM at the specified address.
Returns the current status of any interrupt operations.
Terminates any currently running interrupt operation.
Terminates any currently running interrupt operation.
Direct I/O read a byte from the address
Direct I/O read a word from the address
Direct I/O read a double word from the address
Direct I/O read n words from the address
Direct I/O write a byte to the address
Direct I/O write a word to the address
Direct I/O write a word to the address
Direct I/O write a double word to the address
Direct I/O write n words to the address
Returns the corresponding board macro for the given board type string.
Reads a BYTE from an I/O port address.
Writes a BYTE to an I/O port address.
Returns the FPGA revision of the board.
Sets the system priority for the interrupt handling thread.
Unit conversion utility function for converting AD units to voltage.
Unit conversion utility function for converting voltage to AD units.
Unit conversion utility function for converting DA units to voltage.
Unit conversion utility function for converting voltage to DD units.
Enables/disables enhanced features
Toggles LED on/off
This function is used to set the particular page
Read current status of FIFO and store all the values of structure variables.
Last modified 4yr ago