Omega Speaker Systems LCIC-WIM-BEN manual Transmission sends blocks of information Stage

Page 46

The mechanism to receive the data uses events and methods as

described below:

The transmission sends blocks of information.

Stage 1

Except the last one, each block generates the event DataArrivalInFastMode. When the event occurs, run the method Get_CurrentBlock to read the current block. The block consists of integer weights separated by a Carriage Return. At this stage, just store the blocks into a string array. This stage repeats until the last block arrives. That is, if there are 10 blocks, then ‘stage 1’ occurs 9 times.

Stage 2

The last block generates the event DataArrivalLastInFastMode. Run the method Get_LastBlock in order to read the last portion of the integer weights and store them too in the string array used in stage 1.

Run the method Get_Time_ms in order to get the time stamp.

Stage 3

After the last block was received and stored, the weights may be processed:

1.Recalling that the values are separated by Carriage Return, parse the string array and keep the individual values in a numeric array. One clean way to do that is write the array to file by Print and read back the file using Input. Note that a value may be split between two blocks, e.g., the value ‘123’ may appear as ‘12’ in the end of one block and ‘3’ in the beginning of the next block. The above way using a file handles the parsing well.

2.As described in the beginning of this section, the values are integers that were accepted by multiplying the actual weight by

1, 10, 100, 1000 or 10000. You may find the actual weight by multiplying the integer weight by a “Resolution_Factor” which is 1, 0.1, 0.01, 0.001 or 0.0001, respectively. You may find the Resolution_Factor yourself, but for your convenience there is the method Get_Resolution_Factor which returns the proper value.

45

Image 46
Contents LCIC-WIM-BEN Servicing North America Table of Contents Programming your Application Appendices O & the LED DisplayTrouble-shooting General Description IntroductionTypical Applications Installing the board in the PC Page After a while, you’ll have this display Click ‘Finish’ Utilities Setup & RunningRun the setups of the LCIC-WIM utilities in the folders Run a utilityThree stages are Show Data step Calibration UtilityGeneral Pseudo Calibration stepsFive calibration steps are Page Page Page Page Calibrations Library RestoreSave Parameters Calibration Efficiency CE Settings Utility Menu BarTools / Analog Output Tools / Baud Rate for SCI port Tools / General Setpoints Port  The address setting takes effect only upon board resetCommunication Baud RateGet results immediately Max Zero Auto ZeroActivate Min ZeroPage Filter1 Filter2 Decimator FilteringFilling Definition Commands Programming your ApplicationGet a single reading RS485 Address selection, setting & reading Misc Summary of Weight & A/D Reading Commands Parameters Parameter Parameter Description Data Number TypeBecomes effective only after a system reset either Calibration Name 32 characters max LCIC-WIM ActiveX Start/Stop CommunicationVariables GetVariablerVariable NameVariables Table Category Variable Name Description Get SetVariables Table cont’d AnalogOutputM = Manual, 1 = Auto Internal updates there will be a Filters Parameter that needs no changeFast Mode FilteringLevel IntegerTransmission sends blocks of information Stage How to work with the Fast Mode in VB using the ActiveX Misc Interpreting the data in a blockDigital Inputs Appendix a I/O & the LED DisplayGeneral Notes about the I/O Analog OutputPin Function ConnectionsConnecting External Devices to the Inputs LCIC-WIM I/O & Analog Out LED Display Appendix B Scaling the Load Cell Input Appendix C Load Cell Connections Appendix D USB, RS232 & RS485 Communication ParametersBaud Rate RS485 RS485 Commands Activate address x x=1, 2, 3, …, 62, 63Page Hello Read the RS485 address of the active board Set the specified RS485 addressRS485 Responses Examples Page Page Board selection by the supplied utilities Appendix E Fill Mode IntroductionHardware Inputs Special ModeInput #1 Input #2 Input #3 Input #4 Hardware Outputs Output #1 Output #2 Output #3 Output #4Filling Parameters Filling By WeightFilling By = Weight TimeHi Limit Auto Correction Averaging x last fillingsAuto Tare Activate Lo LimitStart from filling # … Valid Results LimitsValid Limits ± … % Stabilization Criterion Tare & Stop Filling By = Time Fast Speed ConfigStabilization Criterion Stop Filling Configurations Library Scale of the displayed weight LED Display Notations# 1 A= 40.99 Tr= 6.65 Cv= 0.00 Ft= 7527 ms St= 2554 ms Cc= Get current status small ‘s’ Response Example Error Codes Appendix F Specifications Load Cell InputAppendix G Trouble-shooting Card does not respond after PC power-onZero function Appendix H Zero & TareManual Zero Auto-Tarefunction ParameterWARRANTY/DISCLAIMER Temperature