11: Utilities and User Commands

Command Purpose
add_wd_ev Add an event to the CyFlex watchdog task for monitoring, specifying the event name, type, and thresholds for error or periodic events.
add_wd_inperrs Add input error events from all active devices in the system as watchdog events for monitoring.
adv_time Produce and update a variable which tracks another variable but has a modified timestamp so as to lead or lag the input variable.
caLoad Load and start a specified CyberApp in the background after verifying no other CyberApp is registered, and the appropriate labels are loaded.
cell_map_db_create_insert Create/Insert/Update /data/cell_map.db with contents of the /data/cell_map.SITE files.
clear_error Send a message to the error manager that will cause the error message queue to be deleted. Running the command “errs” after this will only show errors generated after the clear_error command was issued.
clr_notify_msg Clear all notify messages from console screens.
clr_safety_msg Clear the SAFETY_MSG and SAFETY_MSG2 display strings.
cre8_script Generate a script file for CyFlex systems by processing an input file and replacing keywords with data from the cell_map file.
cre8_secure_login_pwd Create an encrypted password file for the secure_vrbl_chg program.
critical Set the watchdog critical flag for a specified task in the given scheduler intervals.
ctlgevlist Generate and set an event with comma-delimited values derived from a specified file containing CyFlex variables, including a calculated checksum.
cyflex_wd Monitor specified events for watchdog conditions and initiate shutdown procedures if predefined criteria, such as event counts or frequencies, are met.
cyflexlogevent Provide and use a command line interface to add entries to the CyFlex system log.
darts_datapoint Control the sequencing and reporting of various channel measurements.
dec2hex Convert a decimal number to its hexadecimal equivalent with an option for zero-padded output and output its binary representation.
deg2mv Convert a specified temperature value for a given channel back to its equivalent millivolt value using a calibration table.

del_wd_ev

Delete an event from monitoring by the watchdog task.
delay Produce delayed streams of data from specified input variables to output variables based on configuration settings.
dspec_qt5_conv Create a .ui file from a dsply_specs.nnn file.
dumpit Display a table of all active CyFlex variables optionally filtered by a string in the label.
dump_csar_lookup Display and query CSAR variable tables for CyFlex, including options to view active, shadow, owner tables, and export in CSV format.
dump_labels Display a table of all active CyFlex variables optionally filtered by a string in the label.
dy_ff Switch dyno feed forward ON/OFF
elb Insert an electronic logbook entry into the the /specs/log/elogbook.db database file. The user is prompted to enter in their RACFID and a comment to be written to the logbook.
elog_event_watch Monitor for elog_push and elog_pull events and execute corresponding scripts to push or pull data to or from the central elogbook database.
eo Execute a specified command using arguments read from a file or standard input and run the command for each line of input.
err_codes Obtain an error description associated with a given error code or number.
errc Obtain error code information.
errs Retrieve errors from the error manager database.
errs_state Retrieve errors from the error state manager database. The retrieved errors are written to a readable file.
evnt_info Display event, task, and attachment information for the CyFlex system through an interactive menu.
evreal Monitor a specified event for messages containing a filter string, parse the message into real numbers, and assign them to specified CyFlex variables.

fdump

Display filtered CyFlex variables from shared memory, including labels, values, units, and other attributes based on specified criteria.
flash_rpt Use this generic report writer to convert a template into a point-in-time report that contains variable label/value/units for each label tag found in a template file.
flexui_specs Configure display consoles with a specified display specification file.
framp Ramp a real variable to a specified value at a specified rate.
garb_ck Check one or more files for non-printable characters.
get_cart_info Retrieve and display information about an emission cart based on its specified name or index.
get_hostname Retrieve the hostname associated with a specified cell name and store it in a specified CyFlex string variable. If the variable does not exist, it will be created.
get_mapped_file Retrieve and print the mapped file location for a given keyword from a configuration file.
get_mapped_host Retrieve and print the hostname associated with a specified keyword from a mapping file.
get_site_cfg Read a specified file and output the @SITE_CONFIG entry to STDOUT.
get_tc_name Print the cell name to the standard output.
get_tc_num Read a cell name from a configuration file and return its numerical equivalent as an integer exit code.
get_vrbl_age Return the value of the time in seconds since one or more variables were last updated.
gval Retrieve and display the value of a CyFlex variable from shared memory.
gvals Output the values of a list of variables.
gvar Retrieve and display the value of a specified variable from shared memory in CyFlex.
hex2dec Convert a hexadecimal string to its decimal equivalent.
is_name_ready Determine if a particular CyFlex application is running by checking if its registered name is available.
learnit Process learning specifications for recording and playing back data cycles based on events.
limit_status Display the current state of all limits in the system.
list_wd_ev List the events currently being monitored by the CyFlex watchdog task.
LV_test Test the LV interface for CyFlex by performing operations such as aliasing variables and retrieving labels.
merge_keyword_files Merge two files containing keyword sections into a single output file by combining their contents.
mkdate Save a date/time value to a specified CyFlex string variable.
mk_data_dirs_cn

Create the data directories on the central node for the specified site, including subdirectories based on the cell map and other fixed directories such as /tmp.

mk_data_dirs_tc

Create necessary directories for a test cell node, including subdirectories under /data, /specs, and /cell.

mk_PAMtestids Create files in the /data/PAMtestids directory for each unique testid from a specified input file containing the corresponding datapoint number.
mk_string_tran Create a transition event for a string variable.
newtest_cron

Produce a log file and Electronic Log entry that documents all tests and associated TRVs.

noncritical Remove the watchdog critical flag for a specified task in the given scheduler intervals to prevent the watchdog from tripping if the task fails to respond.
ramp Ramp a real variable to a specified target value at a given rate.
re-read Send a re-read event to a specified registered application.
recal_spd_pm Recalibrate the speed and period measurement tables based on the specified number of flywheel teeth.
release_task Set the RELEASE_TASK_EVENT to enable a specified task to clean up and exit and send a SIGTERM signal if the task is located.
rm_event Remove a permanent CyFlex event.
rm_headers_in_btw Remove extraneous headers from a specified input file and write the result to an output file.
rnd_trip Measure the time intervals for changes in one or two linked variables, recording data such as mean time, maximum and minimum intervals, variance, and standard deviation based on specified parameters.
roadspeed_oly Process and transmit vehicle speed data based on input events.
rstr_pnp_dat Read a configuration file and set any pnp logical variables to their saved values.
rtsched Set the real-time scheduling policy and priority for a specified process or for a new command to be executed.
set_color Set the display color or status of variables such as REAL, INTEGER, LOGICAL, STRING, and their arrays.
secure_vrbl_chg Allow an authorized user to change the value of private shared memory variables.
setAEI_time Retrieve the current time and set a specific string variable with a formatted timestamp for compatibility.
setev Set a CyFlex event.
setevint Set an event with integer content.
setevlist Set an event with content derived from variables in a specified file.
setevparam Set an event with additional structure message data based on a specification file and provided index-value pairs.
setevstr Set an event with string content.
settoll Set the compressed history tolerance value for a list of real variables.
show_mem

Display the available and used memory sizes for common shared memory areas allocated for CyFlex variables, including usage statistics and warnings if memory approaches limits.

sigmon Monitor a list of specified events (up to 20) and report when they occur or are destroyed.
simple_elb Insert an electronic logbook entry into the the /specs/log/log.nnn file. The user is prompted to enter in their RACFID and a comment to be written to the logbook.
sine Apply a sine wave to a specified CyFlex variable with a given offset, amplitude, frequency, and duration, updating at the CyFlex fast process interval.
snap Capture active CyFlex variables from shared memory areas and write their labels, values, and units to a file.
squarew Apply a square wave to a CyFlex variable by superimposing an offset with the specified amplitude and frequency for the given duration.
tcs_more Query and display information about CyFlex systems from the cell_map file including cell name, version, hostname, build number, last go time, and Linux version.
wait_for_event

Wait for a specified event with an optional timeout in seconds.

windows_reader Read data from a specified file, typically from a Windows share via Samba, store the data into CyFlex variables, and then delete the file, running continuously to monitor for new files.