Example Programs

Zihan Chen edited this page Sep 3, 2013 · 4 revisions

Brief:

There are two programs in the test sub-directory.

  • qladisp - this displays all sensor feedback from one or two attached boards, and allows some simple commands to be issued
  • qlatest - this does a functional test of one FPGA/QLA board set, assuming that it is connected to the FPGA/QLA Test Board

qladisp

Run the program as follows:

./qladisp <b1>  [<b2>] [-pP]

where <b1> is the first board number (from ID switch), <b2> is the (optional) second board number, and P is the Firewire port number (default 0). The program will display all sensor feedback from the specified board(s). While the program is running, the following keys can be pressed:

Key Description
ESC toggle digital output 0
0 toggle digital output 0
1 toggle digital output 1
2 toggle digital output 2
3 toggle digital output 3
p toggle the power (enable/disable motor power)
+ increase the desired motor current
- decrease the desired motor current
r reset the Firewire port

qlatest

Run the program as follows:

./qlatest <b>  [-pP]

where <b> is the board number (from ID switch) and P is the Firewire port number (default 0). The program displays a menu of different tests that can be run.

Hardware setup for qlatest

QLA test setup