⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 halstreamer.1

📁 CNC 的开放码,EMC2 V2.2.8版
💻 1
字号:
.\" Copyright (c) 2006 John Kasunich.\"                (jmkasunich AT users DOT sourceforge DOT net).\".\" This is free documentation; you can redistribute it and/or.\" modify it under the terms of the GNU General Public License as.\" published by the Free Software Foundation; either version 2 of.\" the License, or (at your option) any later version..\".\" The GNU General Public License's references to "object code".\" and "executables" are to be interpreted as the output of any.\" document formatting or typesetting system, including.\" intermediate and printed output..\".\" This manual is distributed in the hope that it will be useful,.\" but WITHOUT ANY WARRANTY; without even the implied warranty of.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the.\" GNU General Public License for more details..\".\" You should have received a copy of the GNU General Public.\" License along with this manual; if not, write to the Free.\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,.\" USA..\".\".\".TH HALSTREAMER "1"  "2006-11-18" "EMC Documentation" "HAL User's Manual".SH NAMEhalstreamer \- stream file data into HAL in real time.SH SYNOPSIS.B halstreamer.RI [ options ].SH DESCRIPTION.BR streamer (9)and.B halstreamerare used together to stream data from a file into the HAL in real time..B streameris a realtime HAL component that exports HAL pins and creates a FIFO in shared memory..B hal_streameris a user space program that copies data from stdin into the FIFO, so that.B streamercan write it to the HAL pins..SH OPTIONS.TP.BI "-c " CHANinstructs .B halstreamerto write to FIFO.IR CHAN .FIFOs are numbered from zero, and the default value is zero, sothis option is not needed unless multiple FIFOs have been created..SH USAGEA FIFO must first be created by loading .BR streamer (9)with .B halcmd loadrtor a.B loadrtcommand in a .hal file.  Then.B halstreamercan be invoked to begin writing data into the FIFO..PData is read from stdin, and is almost always either redirected from a fileor piped from some other program, since keyboard input would be unable to keepup with even slow streaming rates..PEach line of input must match the pins that are attached to the FIFO, for example, if the.B streamerconfig string was "ffbs" then eachline of input must consist of two floats, a bit, and a signed integer, in thatorder and separated by whitespace.  Floats must be formatted as required by.BR strtod (3),signed and unsigned integers must be formated as required by.BR strtol (3)and.BR strtoul (3),and bits must be either '0' or '1'..P.B halstreamertransfers data to the FIFO as fast as possible until the FIFO is full, then it retries at regular intervals, until it is either killed or reads .B EOFfrom stdin.  Data can be redirected from a file or piped from some other program..PThe FIFO size should be chosen to ride through any momentary disruptions in the flow of data, such as disk seeks.  If the FIFO is big enough,.B halstreamercan be restarted with the same or a new file before the FIFO empties, resulting in a continuous stream of data..PThe data format for.B halstreamerinput is the same as for.BR halsampler (1)output, so 'waveforms' captured with.B halsamplercan be replayed using.B halstreamer..SH "EXIT STATUS"If a problem is encountered during initialization,.B halstreamerprints a message to stderr and returns failure..PIf a badly formatted line is encountered while writing to the FIFO, it prints a message to stderr, skips the line, and continues (this behavior may be revised in the future)..PUpon reading.B EOFfrom the input, it returns success.  If it is terminated before the input ends, it returns failure..SH "SEE ALSO".BR streamer (9).BR sampler (9).BR halsampler (1).SH HISTORY.SH BUGS.SH AUTHOROriginal version by John Kasunich, as part of the Enhanced MachineController (EMC) project.  Improvements by several other members ofthe EMC development team..SH REPORTING BUGSReport bugs to jmkasunich AT users DOT sourceforge DOT net.SH COPYRIGHTCopyright \(co 2006 John Kasunich..brThis is free software; see the source for copying conditions.  There is NOwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -