Omega Speaker Systems VR200 instruction manual Input Buffer, Buffer Overflow

Page 10

1.4 Data Configuration

Note

The VR200 identifies an LF as the end of a text when receiving data (and sends a CR and LF as the terminator when sending data). As shown in the example in Figure 1.6, when a CR and LF are used as the terminator, the CR is ignored. Take care when communicating with a PC, since some PCs may not send the LF character depending on the mode when the PRINT command, etc. is invoked.

1.4.3 Input Buffer

The input buffer of the VR200 recorder is a rotary buffer. The rotary buffer outputs a text on a first-in, first-out basis while storing the data in turn. The user must be aware of this when programming, and take care to prevent the buffer from overflowing. One merit of the rotary buffer is that it can flexibly cope with more than one text being sent contiguously because of the low loss in case of variable text length.

Start 1

End 1

T

 

e

 

xt

 

1

Start 2

 

e

End 2

T

 

x

 

t

 

2

 

Start 3

T e x t

3

End 3

Figure 1.7 Rotary Buffer

1.4.4 Buffer Overflow

As described already, the input buffer is necessary for data communication. The capacity, however, is limited (256 bytes for a 4-channel model). Thus, in the receiver, the buffer capacity may not be sufficient if a lot of data is sent in a short time, causing some data to be dropped and adversely affecting the data communications (buffer overflow).

To prevent buffer overflow, confirm the status of the VR200 using the ESC S command immediately after a command has been sent (from the PC).

Note

A PC may not be able to send the ESC S command after having sent the LF or FM command.

After receiving the ESC S command, the VR200 outputs its status to the PC. This is done in the following sequence. The VR200 first stores the ESC S command in the input buffer, then this command is read from the buffer. Consequently, the VR200 outputs its status to the PC. If the PC does not send the next command until it receives the VR200 status, the next command will be always received without fail, since there must be a space in the input buffer of the VR200.

1 INSTALLING THE RS-422-A INTERFACE

1 - 5

Image 10
Contents User’sGuide Servicing North America Preface TrademarksContents Transmitting Functions Time Chart Initial Status Errors During RS-422-A OutputProgram Examples Installing the RS-422-A Interface Interface SpecificationsInterface Terminal Terminal Assignment Cable TerminationCommunication Wiring Data ConfigurationStart-stop Asynchronous Communication TextInput Buffer Buffer OverflowSetting up the RS-422-A Communication Interface Setup ProcedureParameters IdentifierTerminator Format SRp1,mode List of Program Set CommandsSetting the Range and Scale Example SR01,SKIPExample SR01, DI, Format SRp1, mode, p2Format SRp1, mode, p2, p3, p4, p5, p6, p7, p8 Setting Alarms Setting the Clock Setting the UnitSetting the Waveform Span Rate TIME/DIV Copying the Channel SettingsSetting the Partial Expanded Display Setting the Discrete Zone DisplaySetting the Tag Setting the Trip Level Setting the Data File Name FileSetting the LCD Brightness and LCD Saver LCD Setting the Summer/ Winter Time DSTFormat MDp1, p2, p3 Example MD02, ON, onStandard Screen Call List of Program Control CommandsAlarm Acknowledge Initializing the Data MemorySelecting the Output Data Loading the SET Configuration FileSaving the SET Configuration File Selecting the Output Format for Measured DataMessage Writingfor the VR 200 with style number 2 or higher Status Output Execution of TriggerRequests for the data to be prepared in the buffer ESC O Crlf Open CommandClose Command ESC C CrlfIntroduction to Output Data Formats Sequence see also Sections 2.3.7Output Format of Measured Values in Ascii Mode Output Data FormatsOutput Format of Measured Values in Binary Mode Output Format of Parameter Settings Output Format of Unit and Decimal Point Information Time Chart Initial Status Preventing Errors OutputHow to Request Error Message Output ESC S CR LFTiming of Resetting the Error Status Program Examples EnvironmentOpen TEST.DAT for Input AS #2 Others LF is sent automatically 210 ‘ 220 ‘ Open COM11200,N,8,1,LF AS #1 Print a Appendix Appendix 1 Ascii Code TableLowercase/Uppercase Letters Appendix 2 File Naming RulesFile Name Length System-reserved File NamesIndex Index for Command Reference Warrant Y/ Disclaimer Temperature