Ets_Odb_Run_Command()
Abstract
Runs an ODB command and returns the output in a list.
Syntax
Ets_Odb_Run_Command (state_ptr, command)
| Argument | Type | Description |
|---|---|---|
state_ptr |
void * |
Simulation state |
command |
const char * |
ODB command to be executed |
Return Type
PrgT_List *
List of output strings from the command.
Header
ets_api_odb.h
Example
int dest_ip_objid;
char tmp [VOSC_STR_LEN];
sprintf (tmp, "proldiag %d ip_interfaces", dest_ip_objid);
// first check if the sim hasn't initialized.
PrgT_List *ip_addrs_output = Ets_Odb_Run_Command (sim_state_ptr, tmp);
char *line = (char *)prg_list_access (ip_addrs_output, 0);
Details
Simulation flow is not interrupted by this function. The command and response do not appear in the console.