raw_raw

Section: WIN SYSTEM (1W)
Updated: 2005.3.7
Index Return to Main Contents
 

NAME

raw_raw - Selection of channels from RAW format data  

SYNOPSIS

raw_raw [-BDg] inkey outkey shmsize [ chfile [ logfile ]]

raw_rawd [-Bg] inkey outkey shmsize [ chfile [ logfile ]]

 

DESCRIPTION

Raw_raw loads win format data cyclically written in a shared memory segment identified by a key  inkey and writes the data to another shared memory segment identified by another key  outkey. If a channel file  chfile is given, only the data of the channels listed in this file will be written. If the channel file name is prefixed with '-,' however, the data of all the channels other than those listed in this file will be written. If chfile is not given or if '-' is specified as the channel file, all the channel will be written. If the share memory segment with the key  outkey does not exist, a shared memory segment with a size of  shmsize  (KB) will be created. If it already exists but has a size smaller than  shmsize  (KB), an error will occur. The shared memory key is a 32-bit integer.

Raw_rawd is initiated in daemon mode.

When log file name  logfile is specified, operation log is set here. When it is not specified, log information is sent to the standard output (however, it is sent to syslogd(8) when operation is made in the daemon mode). The log file is opened/closed in each write.

The channel file is a text file that hexadecimally lists channel numbers, one for each line. In each line, only the first item is read, while the subsequent items delimited by blanks or tabs are all bypassed. Any lines starting with '#' are also bypassed. When receiving a hang-up signal, the raw_raw process rereads the channel file.

The format in the shared memory inkey can be either one sorted in order of time (Cf. order(1W)) or otherwise (Cf. recvt(1W)). The format in the shared memory outkey will be the same as that of inkey.

When raw_raw is initiated without argument, brief usage is displayed.

 

OPTIONS

-g
Converts only the values of the data of channels with a sampling rate of 1 Hz into 4-bit right shift (i.e., 1/16) values. This conversion is performed for low-speed data for GTA-45U manufactured by Meisei Electric Co., Ltd.
-B
Uses the "format with blocks ending with a block size" to write data to the output shared memory. For more details on this, refer to recvt(1W) and order(1W).
-D
Is initiated in the daemon mode.
 

SOURCE

raw_raw.c
 

SEE ALSO

winformat(1W), order(1W), send_raw(1W)


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
SOURCE
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 03:59:59 GMT, September 20, 2017