Gocator Line Profile Sensors: User Manual
Gocator Web Interface • 315
Function Description
value - Value stored in persistent memory
int Memory_Exists (int id) Tests for the existence of a value by ID.
Parameters:
id – Value ID
Returns:
0 – value does not exist
1 – value exists
void Memory_Clear (int id) Erases a value associated with an ID.
Parameters:
id – Value ID
void Memory_ClearAll() Erases all values from persistent memory
Function Description
int RuntimeVariable_Count() Returns the number of runtime variables that can be accessed.
Returns:
The count of runtime variables.
int RuntimeVariable_Get32s(int id) Returns the value of the runtime variable at the given index.
Parameters:
Id – ID of the runtime variable
Returns:
Runtime variable value
Runtime Variable Functions
Function Description
long long Stamp_Frame() Gets the frame index of the current frame.
long long Stamp_Time() Gets the time stamp of the current frame.
long long Stamp_Encoder() Gets the encoder position of the current frame.
long long Stamp_EncoderZ() Gets the encoder index position of the current frame.
unsigned int Stamp_Inputs() Gets the digital input state of the current frame.
Stamp Functions
Function Description
float sqrt(float x) Calculates square root of x
float sin(float x) Calculates sin(x) (x in radians)
Math Functions