Next: Sample Code and "How-to's" Up: C API Previous: C SLAC Throttle Status (non-threaded version only)

C SLAC Shortcuts



The following "shortcuts" are provided to reduce the amount of typing necessary to invoke some of the throttling functions from the VxWorks shell. They take the same arguments as the corresponding C calls, and they also write their output to stdout in addition to the error log.

Please note that the setThrottle() shortcuts take an integer value, not a double, for the deltatime argument. This is done because of problems with the interpretations of floats/doubles in the vxWorks command-line shell. Also, note that there are no shortcuts for cmlog_slac_set_throttle_double or cmlog_slac_set_throttle_float, due to the same problems with the vxWorks shell.

Original Shortcut
cmlog_slac_set_throttle_byte(char * tag, int limit, double deltatime, BYTE val)    cml_byte(char * tag, int limit, int deltatime, BYTE val)
cmlog_slac_set_throttle_short(char * tag, int limit, double deltatime, short val)    cml_short(char * tag, int limit, int deltatime, short val)
cmlog_slac_set_throttle_ushort(char * tag, int limit, double deltatime, unsigned short val)    cml_ushort(char * tag, int limit, int deltatime, unsigned short val)   
cmlog_slac_set_throttle_long(char * tag, int limit, double deltatime, long val)    cml_long(char * tag, int limit, int deltatime, long val)
cmlog_slac_set_throttle_ulong(char * tag, int limit, double deltatime, unsigned long val)    cml_ulong(char * tag, int limit, int deltatime, unsigned long val)
cmlog_slac_set_throttle_string(char * tag, int limit, double deltatime, char * val)    cml_string(char * tag, int limit, int deltatime, char * val)
cmlog_slac_throttle_on()    cml_on()
cmlog_slac_throttle_off()    cml_off()
cmlog_slac_throttle_show()    cml_show()
cmlog_slac_throttle_remove(int n)    cml_remove(int n)
cmlog_slac_check_throttle_status()    cml_status()



James Silva
2002-10-28