vrbl_to_file

Purpose:

Read or write variables to/from a file which is in a spreadsheet-like format.

Enter:

vrbl_to_file <arg1>  <arg2> … <arg10>

Where:

INPUT:  ‘variable name’ ‘description’

argv1 Specify the task run priority.
argv2 Specify the start event name.
argv3 Specify the stop event name.
argv4 Specify the reply event name.
argv5 Specify the procedure number the task was called from ( not used ).
argv6 Specify the mode number the task was called from ( not used ).
argv7 Specify the name of the procedure that called the task ( not used ).
argv8 Specify the spec file name to read or write.
argv9 Specify the operation type. Specify READ, READ_ONCE, or WRITE.
argv10 Specify the requested field tag or index. Specify a valid label or a value.

Example File:

# The following identifies the file format of the specifications

# for the vrbl_to_file AUXILIARY task. Valid entries are

# ‘HORIZONTAL_LABELS’ or ‘VERTICAL_LABELS’ which defines

# how labels are listed in the file.

HORIZONTAL_LABELS

 

    # variable label   variable label
# run index   # variable units   variable units
  Speed_setpoint Torque_setpoint  
  RPM N-M  
1 1800 980  
2 1800 780  
3 1800 580  
4 1800 390  
5 2200 500  
6 2200 400  
7 2200 300  
8 2200 200  
9 2000 830  
10 2000 664  
11 2000 438  
12 2000 332  
13 1400 1200  
14 1400 976  
15 1400 732  
 
25 500 0  
       

# Test each speed setpoint to see if speed_setpoint < Idle_Speed to stop the test

Notes:

If it is desired to have a registered name other than the default of ‘vrbl_to_fileNNNN’, where NNNN is the task PID, then the desired name should be specified on the file format line in the spec file being read. E.g.:

HORIZONTAL_LABELS  FurballName

If the file format line has the above specification then vrbl_to_file will register the name “FurballName” with the operating system.

The registered name can be used to remove the task from the system, which is the recommended method of slaying a task.

See Also:

release_task  <vrbl_to_file1432>

This will cause the instance of vrbl_to_file that has a PID of 1432 to exit the system.