Next: , Previous: Installation, Up: Top


3 Usage

3.1 Graphical user interface

3.1.1 Preferences

In the graphical user interface, the configuration is accessible from the edit menu.

3.1.1.1 Acquisition preferences

The acquisition dialog does not allow you to adjust any setting at the moment but it displays the current AD cards and drivers used. You can see how many channels are available from the detected cards and the current sampling rate.

3.1.1.2 Recording preferences

You can select the channels that you want to record in that page. Only channels with a check mark will be recorded.

3.1.1.3 Oscilloscope preferences

The oscilloscope has 10 groups of channels to display. The channels within a group are displayed together in the oscilloscope. Up to 16 channels can be part of a single group. You can change the channel selection for each group in the oscilloscope preferences dialog. You can drag and drop channels within groups to change their order. Changes to the oscilloscope have no effect on the recording process. Therefore, you can display channels that are not recorded or vice versa.

3.1.2 Recording

Pressing the red recording button will start recording. The button will remain pressed, which indicates you that kacq is recording. A second click on this same button will stop recording. During recording, a message is displayed on the status bar at the button of the main window. You can use this message to know if recording is in process. By default, the data are saved in your home directory. The recording directory can be changed in the recording preferences dialog. You can change the name of the file at the bottom right of the main window. The file index increases by 1 automatically when the recording is stopped.

3.1.3 Oscilloscope

The oscilloscope shows the raw data. You can control it via the toolbar at the bottom left of the main window. Pressing the play button will start the oscilloscope and a second click on the button will stop the oscilloscope. The oscilloscope is entirely independent from recording. This means that you can start and stop the oscilloscope without affecting the recording process. The oscilloscope has a buffer containing the recently displayed data. Therefore, you can at any time stop the oscilloscope and rewind it to see the previously shown signals. You can navigate backward or forward in the buffer using the buttons surrounding the play button.

3.2 Controling kacq from a remote computer

The X Window System running on Linux allows you to run a graphical application remotely from a different computer. Therefore, you can easily run kacq on a computer located in the lab and get the oscilloscope forwarded to your office computer. This is usually done with the command ssh -l username -X 192.168.1.2. The numbers there are the ip address of the computer running kacq. Then, just type kacq. How cool is that?

3.3 Terminal mode

kacq can also record data without the graphical user interface. That can be useful if you want to run it from a shell script for example. Run kacq --terminal config_file. config_file is a file telling kacq what to do. It contain one entry per line. The first line is the name of the file in which the data will be recorded. The second line is the sampling rate in Hz. The third line is the lenth of the recording in seconds. Each following line is a channel you want to record. The first channel is channel 0.