diff --git a/POCloud_Driver/channels.txt b/POCloud_Driver/channels.txt new file mode 100644 index 0000000..d19269e --- /dev/null +++ b/POCloud_Driver/channels.txt @@ -0,0 +1,90 @@ +alarm_mode - boolean +alarm_pressure - boolean +alarm_remote - boolean +alarm_temperature - boolean +alarm_tubingpressure - boolean +alarm_vfd - boolean +auto_mode - boolean +dh_dischargepressure - integer +dh_dischargetemperature - integer +dh_downholestatus_int - integer +dh_fluid_level - float +dh_intakepressure - float +dh_intaketemperature - float +dh_maxintakepressure_forever - integer +dh_maxintakepressure_startup - integer +dh_maxintaketemperature_forever - float +dh_maxintaketemperature_startup - float +dh_numchannels - integer +dh_pressure_shutdown_enabled - boolean +dh_pressure_shutdown_limit - float +dh_pressure_startup - float +dh_pressure_startup_enabled - boolean +dh_psirating - integer +dh_temp_shutdown - float +dh_temp_shutdown_enabled - boolean +dh_temp_startup_enabled - boolean +dh_temp_startup_limit - float +dh_tooltype - integer +dh_toolvoltage - integer +dh_windingtemperature - integer +downhole_tool_enabled - boolean +hand_mode - boolean +mode_test - boolean +off_mode - boolean +remote_shutdown_disabled - boolean +rp_mode - boolean +rp_pressure - boolean +rp_remote - boolean +rp_temperature - boolean +rp_trip - boolean +rp_tubingpressure - boolean +rp_vfd - boolean +run_permissive - boolean +sp_mode - boolean +sp_pressure - boolean +sp_remote - boolean +sp_temperature - boolean +sp_trip - boolean +sp_vfd - boolean +sp_voltage - boolean +start_permissive - boolean +stop_command - boolean +tubingpressure_alarm_delay - integer +tubingpressure_alarm_startup_delay - integer +tubingpressure_eu_max - float +tubingpressure_eu_min - float +tubingpressure_hi - boolean +tubingpressure_hi_sp - float +tubingpressure_lo - boolean +tubingpressure_lo_sp - float +tubingpressure_ok - boolean +tubingpressure_transducer_enabled - boolean +vfd_MinFreq - float +vfd_acceltime - float +vfd_active - boolean +vfd_atspeedref - boolean +vfd_clearfault - boolean +vfd_cmdfwd - boolean +vfd_dcbusvoltage - float +vfd_deceltime - float +vfd_disabled - boolean +vfd_fault - boolean +vfd_fault_code - integer +vfd_fault_commerror - boolean +vfd_fault_drivefault - boolean +vfd_maxfreq - float +vfd_motorpoles - integer +vfd_nameplatefla - float +vfd_nameplatehp - float +vfd_nameplatehz - float +vfd_nameplateolcurrent - float +vfd_nameplaterpm - float +vfd_nameplatevolts - float +vfd_outputcurrent - float +vfd_outputvoltage - float +vfd_ready - boolean +vfd_speedfdbk - float +vfd_speedref - float +vfd_stopmode - integer +vfd_torqueperfmode - integer diff --git a/POCloud_Driver/getChannels.py b/POCloud_Driver/getChannels.py new file mode 100644 index 0000000..536bf5e --- /dev/null +++ b/POCloud_Driver/getChannels.py @@ -0,0 +1,20 @@ +import pickle +with open('vfd_ipp_channels.p', 'rb') as ch_f: + channels = pickle.load(ch_f) +out = [] +for x in channels.keys(): + chName = x + dType = channels[x]['data_type'] + if dType == 'REAL': + dType = "float" + elif dType[-3:] == "INT": + dType = "integer" + elif dType == "BOOL": + dType = "boolean" + else: + print dType + + out.append("{0} - {1}".format(chName, dType)) + +for a in sorted(out): + print a