Notifications
Clear all
Topic starter
19/03/2018 4:40 pm
An example in Python is worth more than a thousand words...
import serial
import QboCmd
import QboCmd
#Get mics present RMS values 0 - 32767: 0 - 1V
par_list = HeadCtrl.GetHeadCmd("GET_MIC_REPORT", 0)
if response:
mic1_rms = (par_list[1] << 8 | par_list[0]) / 32767.0
mic2_rms = (par_list[3] << 8 | par_list[2]) / 32767.0
mic3_rms = (par_list[5] << 8 | par_list[4]) / 32767.0
if response:
mic1_rms = (par_list[1] << 8 | par_list[0]) / 32767.0
mic2_rms = (par_list[3] << 8 | par_list[2]) / 32767.0
mic3_rms = (par_list[5] << 8 | par_list[4]) / 32767.0
#Switch to mic 1
HeadCtrl.GetHeadCmd("SET_MIC_INPUT", 1)