Installation
6
AXP-AI8 Eight-Channel Analog Interface Board
Programming
This section covers programming information and examples for the AXP-AI8 Analog Interface
Board.
Levels
Send_Commands
Inputs are controlled as Channels 1 through 8.
Sample Application
This is an example of Axcess programming that is required before using an AXP-AI8.
Example 1:
PROGRAM_NAME='AI8_EX rev 1'
(* DATE:06/18/02 TIME:17:32:26 *)
(* Date: 12/18/2001 Time: 11:50:50 AM AXedit user: JSHMOE *)
(*{{PS_SOURCE_INFO(PROGRAM STATS) *)
(** FIRST, the program under studio can be written many ways **)
(** but we have to stay within the boundaries of the compiler and **)
(** use of KEYWORDS. This file was created for an AXCESS system **)
(** master and when compiling in AXCESSX, the word BUTTON is NOT a KEYWORD **)
(***********************************************************)
(* FILE CREATED ON: 06/09/2000 AT: 13:56:05 *)
(***********************************************************)
(* FILE_LAST_MODIFIED_ON: 04/25/2001 AT: 16:59:10 *)
(***********************************************************)
Levels
Level Function
1
Voltage output channel 1 and joystick/slider control (0 - 255).
5
Voltage input channel 1 (0 - 255).
2
Voltage output channel 2 and joystick/slider control (0 - 255).
6
Voltage input channel 2 (0 - 255).
Send_Commands
SEND COMMAND AI8,"'DELTA5'"
Puts channel 5 in delta mode.
SEND COMMAND AI8,"'DELTA6'"
Puts channel 6 in delta mode.
SEND COMMAND AI8,"'DELTA7'"
Puts channel 7 in delta mode.
SEND COMMAND AI8,"'DELTA5 ON'"
Puts channel 5 in delta mode.
SEND COMMAND AI8,"'DELTA6 ON'"
Puts channel 6 in delta mode.
SEND COMMAND AI8,"'DELTA7 ON'"
Puts channel 7 in delta mode.
SEND COMMAND AI8,"'DELTA5 OFF'"
Takes channel 5 out of delta mode.
SEND COMMAND AI8,"'DELTA6 OFF'"
Takes channel 6 out of delta mode.
SEND COMMAND AI8,"'DELTA7 OFF'"
Takes channel 7 out of delta mode.
Delta mode should be used with continuous rotation potentiometers. It effectively
filters out the dead zones and provides for smooth, uninterrupted readings.
Continued