Technical FAQs

Ask a Question

How to calculate standard deviation for a tag value in Vijeo Citect project.

For calculating the Standard Deviation in Citect, there is a inbuilt function is available " TableMath( ) ". You can use this in cicode as shown below:
 
******************************************************
REAL Array[5]=10,15,50,100,200;
 
FUNCTIONStdDev()
 
REAL Result=0;
 
Result = TableMath(Array, 5,3,0);
STDEV = Result;
 
END
******************************************************
 
Where STDEV is a variable tag defined in the project, you need to call this StdDev() function using a button or in events.
Was this helpful?
What can we do to improve the information ?