diff options
author | Mike <mjc@avtechpulse.com> | 2000-01-01 00:15:51 +0900 |
---|---|---|
committer | Mike <mjc@avtechpulse.com> | 2000-01-01 00:15:51 +0900 |
commit | efca4799e5dbb52fed6963b88d8c73e59b42e123 (patch) | |
tree | 1c97b3b8bc419519a679fae2e4379d61baaed8cf | |
parent | c042b503b4ce1a5d000b45cbbb029cf30ee86cc1 (diff) |
make all aux error messages configurableINSTRUMENT_6_2_36c
-rw-r--r-- | error_utils.c | 4 | ||||
-rw-r--r-- | flash.c | 3 | ||||
-rw-r--r-- | globals.h | 3 |
3 files changed, 7 insertions, 3 deletions
diff --git a/error_utils.c b/error_utils.c index 6055ae5..dfd6f93 100644 --- a/error_utils.c +++ b/error_utils.c @@ -446,11 +446,11 @@ void get_error_text(gchar **response, int error_num) break; case Overtemp_Detected: - format_error_text(response,-300,"Overheating or interlock problem. Output disabled."); + format_error_text(response,-300,globals.Flash.ot_error_message); break; case Overvolt_Detected: - format_error_text(response,-300,"Over-voltage or over-current. Output disabled."); + format_error_text(response,-300,globals.Flash.ov_error_message); break; case Soft_Limit_Exceeded: @@ -899,7 +899,8 @@ static void initFlashValues(FlashStruct *mem) mem->extended_relay_delay_in_sec=0.5; strcpy(mem->aux_error_message,"PRF too high! Output disabled."); - + strcpy(mem->ot_error_message,"Over-heating problem. Output off."); + strcpy(mem->ov_error_message,"Over-voltage/over-current. Output off."); /* default PW DACs */ mem->pw_dac[0]=2; /* channel 1: ONLY used for EXTERNAL voltage-controlled PW */ @@ -772,6 +772,9 @@ typedef struct { float os_zero_equiv[max_channels]; // addr 10684 + char ot_error_message[40]; /* addr 10692 */ + char ov_error_message[40]; /* addr 10732 */ + char flash_end; } FlashStruct; |