MA2 Lua 函数库

  1. 主页
  2. 文档
  3. MA2 Lua 函数库
  4. gma.network.getperformance()【获取主机性能参数函数】

gma.network.getperformance()【获取主机性能参数函数】

函数名:获取主机性能参数函数
调 用:gma.network.getperformance(number:slot,[table:recycle])
参 数:第一个参数为数字:入栈号
第二个参数为可选的字符串:表单
返回值:
结 果:根据输入的入栈号,获取该主机的性能参数并填入对应的表单中
备 注:入栈号表示为每个控台在同一个session中的唯一号码,
脱机为255,第一张进入session的控台为30,
后面进入session的控台往下递减,MA3D为95。
具体作用不得而知。

例子:

  • 获取MA-NET中脱机控台的性能参数,并导出到temp文件夹:
function Start()
    local table = {}
    gma.network.getperformance(255,table) 
    gma.export('myperformancetable.xml',table)
end
return Start;

--<?xml version="1.0" encoding="utf-8"?>
--<LUA_EXPORT table="true">
--	<table_index i="1" string="RT_DecodeDMX"/>
--	<table_index i="2" number="0.129890"/>
--	<table_index i="3" string="RT_DMXOutput"/>
--	<table_index i="4" number="0.739250"/>
--	<table_index i="5" string="WaitForKeys"/>
--	<table_index i="6" number="17.120720"/>
--	<table_index i="7" string="RT_HardwareEve"/>
--	<table_index i="8" number="0.044250"/>
--	<table_index i="9" string="Wait25"/>
--	<table_index i="10" number="8.158320"/>
--	<table_index i="11" string="RT_Jobques"/>
--	<table_index i="12" number="0.024120"/>
--	<table_index i="13" string="RT_Effects"/>
--	<table_index i="14" number="0.003510"/>
--	<table_index i="15" string="RT_Submaster"/>
--	<table_index i="16" number="0.001940"/>
--	<table_index i="17" string="RT_LocalChanne"/>
--	<table_index i="18" number="0.004410"/>
--	<table_index i="19" string="RT_BMP"/>
--	<table_index i="20" number="0.001130"/>
--	<table_index i="21" string="RT_NormalChann"/>
--	<table_index i="22" number="0.496630"/>
--	<table_index i="23" string="RT_PreviewChan"/>
--	<table_index i="24" number="0.002440"/>
--	<table_index i="25" string="RT_Universes"/>
--	<table_index i="26" number="0.199020"/>
--	<table_index i="27" string="RT_DMXEncode"/>
--	<table_index i="28" number="0.834570"/>
--	<table_index i="29" string="RT_ChannelInfo"/>
--	<table_index i="30" number="0.004070"/>
--	<table_index i="31" string="RT_FadersAndLe"/>
--	<table_index i="32" number="0.062560"/>
--</LUA_EXPORT>
标签 ,
这篇文章对您有用吗?

发表回复

您的电子邮箱地址不会被公开。