grandMA3 User Manual Publication
GetSample(string)
grandMA3 User Manual » Plugins » Lua Functions - Object-Free API » GetSample(string)
|
Version 2.0
|
Description
The GetSample Lua function returns a number representing a percentage usage based on a string input.
Arguments
- String:
Only a specific list of strings can be input:- MEMORY
- CPU
- CPUTEMP
- GPUTEMP
- SYSTEMP
- FANRPM
Return
- Number:
A number (float) is returned.
Example
This example stores the different samples in a table and then prints the content of the table:
Lua |
return function() |