demowrite

demowrite -- Test utility that passes IPC messages to cserve.

Synopsis

demowrite iterations [-p pointname] [-c client] [-s command]

Arguments

iterations

The number of times the test point input1 is to be sent from the data server to Windows.

-p pointname

Specify the point to write to Cascade Connect. (The default is input1.)

-c client

Specify the name of the Cascade Connect client registered with the data server (The default is demo.)

-s command

Instruct demowrite to pass the command to the special variable &system, which will be interpreted as a command to the SYSTEM DDE topic of the Windows client task.

Returns

Nothing.

Description

The demowrite test utility sends messages containing point information for the variable input1 to cserve. This information will be transferred to Windows and on to a DDE client if an appropriate link is established before this command is executed. A number of point messages will be transmitted for the point, starting at 1 and increasing by 1 for the given number of iterations.

If the -s option is used, demowrite will transmit a character string to Cascade Connect, destined for the SYSTEM DDE topic of the Windows client. Some clients, such as Word and Excel, implement a form of macro control through the SYSTEM topic. Consult the documentation for the particular program to determine whether the SYSTEM topic is implemented, and for the form of the macro messages.

Dependencies

cserve

See Also

cserve, cascade.exe

Example

    $ demowrite 1000

Sends 1000 point changes to Windows for input1.

    $ demowrite 50 -p test

Sends 50 point changes to Windows for the point test.

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.