Example Code

Interfacing to the FarSync Bit Error Rate Tester from LabVIEW

Code and Documents

Attachment

The FarSync BERT is a Windows-based synchronous/asynchronous Bir Error Rate Tester produced by FarSite Communications Ltd.

This example VI, fsbert.vi, demonstrates how to interface to the FarSync BERT from a VI.

The BERT supports line rates of up to 16Mbps. A range of network interfaces are supported including RS232, V.35, RS530, RS422, X.21, RS449 and RS485. Also a range of encoding options are supported including  NRZ, NRZI, FM0, FM1, Manchester Encoding and Conditioned Di-phase. All these options are selectable from a VI.

This example can be extended/modified by the developer to meet their specific requirements.

This VI demonstrates how to implement some of the features of the FarSync BERT's standard GUI:

fsbertlv.PNG

 

  • The BERT test is automatically started when the VI is run
  • Clicking the RTS button will toggle the (output) state of RTS signal
  • The CTS LED indicates the state of the (input) CTS signal
  • The Inject button injects errors into the output datastream for as long as the button remains pressed
  • The Reset button resets the displays statistics
  • Both the test and the VI itself are stopped when the STOP button is pressed

The sample configures the BERT port using the following:

fsbert-port.PNG

The sample configures the type of BERT test using the following:

fsbert_vi_test_config.gif

These property values are merely examples and can be set statically or dynamically by the user's own VI as required.

For example, the port's encoding mode could be configured using:

fsbert-encoding.PNG

The sample's signals/LEDs are maintained using:

fsbert_vi_signals.gif

The sample's statistics/results are maintained via:

fsbert_vi_stats.gif

As in the case of the FarSync BERT's GUI and script modes, the BERT's log file is updated with each test that is run from LabVIEW. The maximum log file size can be configured programmatically via the MaxLogFileSize method

To actually run this example, the FarSync BERT product needs to be installed, together with a compatible FarSync card/device. Details of the FarSync BERT are available at http://www.farsite.com/Line_Test_Monitor/FarSync_BERT_Tester.shtml

There are a wide range of FarSync products available - these support a large number of communications options - please refer to http://www.farsite.com/products/index.htm for more details.

This particular sample VI is included as an example in the FarSync BERT product itself. 

 

For more information please contact us at FarSite Communications Ltd. - info@farsite.com

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors