Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Application Server

Script basic functions

  • Last UpdatedJul 26, 2024
  • 1 minute read

The following is a collection of basic functions used to read buffer data from the script accompanied by script snippets.

Declaration

dim vtq as ValueTimeQuality;

To access samples in each buffer

FOR EACH vtq in me.U1.buffer

Note: The only syntax that can be used to process buffers in scripts is FOR EACH.

To write the buffer to text file

Declaration:

dim strWriter as System.IO.StreamWriter;

Usage:

strWriter = System.IO.File.AppendText("C:\\sample.txt");

To write the buffer to Logger (or OCMC)

LogMessage();

TitleResults for “How to create a CRG?”Also Available in