tik service test program: tiktst

Name

tiktst

Purpose

Demonstrates the features of the tik service.

Usage

tiktst [options]

where options are:

Option

Specifies...

-m n

Test mode. The supported test modes are:

1 = One Natural Access event queue; ten contexts registered with that queue.

2 = Two Natural Access events queues; one context registered per queue.

-t

Tracing on a per-context basis. Set the per-context tracemask to trace DRIVER_EVENTS, DRIVER_COMMANDS, and DEBUG_BIT_0.

-n numTicks

Number of tick strings to request from the tik server. This value overrides the default TIK_START_PARM numTicks parameter.

-f frequency

Frequency of tick strings from the tik server. This value overrides the default TIK_START_PARM frequency parameter.


Description

tiktst is a tik service demonstration program that uses the tik service to interact with the tik server. tiktst uses Natural Access and tik APIs to start a timer on the tik server and receive tick strings at a specified frequency. As each tick string is received, it is printed to stdout.

Build procedure

The tik service, tik server, and test program are shipped as source only. To build the components:

  1. Build the tik server by entering the following commands:

Operating system

Commands

Windows

cd nms\ctaccess\demos\tiksvr
nmake

UNIX

cd /nms/ctaccess/demos/tiksvr
make


  1. Build the tik service by entering the following commands:

Operating system

Commands

Windows

cd nms\ctaccess\demos\tiksvc
nmake

UNIX

cd /nms/ctaccess/demos/tiksvc
make


  1. Build the tik test program by entering the following commands:

Operating system

Commands

Windows

cd nms\ctaccess\demos\tiktst
nmake

UNIX

cd /nms/ctaccess/demos/tiktst
make


Test procedure

  1. Ensure that the tik server, the tik service, and the tik test program are built.

  2. Start the tik server by entering:

tiksvr

  1. Ensure that ctdaemon is running and was initialized with the TIK,TIMGR service/service manager pair.

  2. Start tiktst by entering the following at the prompt:

tiktst [-m n] [-n numTicks] [-f frequency]