vrbl_to_file

Purpose:

Read variables from a specified file and either update memory or write variables from memory to the file based on the specified action.

Enter:

vrbl_to_file <priority> <start_event> <stop_event> <reply_event> <proc_number> <mode_number> <proc_name> <filename> <action> <field_tag>

Where:

priority Specify the task run priority.
start_event Specify the start event name.
stop_event Specify the stop event name.
reply_event Specify the reply event name.
proc_number Specify the procedure number. 
mode_number Specify the mode number.
proc_name Specify the procedure filename.
filename Specify the specification file name.
action

Specify the operation type. Specify READ, READ_ONCE, or WRITE.

field_tag Specify the requested field tag or index. Specify a valid label or a value.

Example:

vrbl_to_file 10 start_event stop_event reply_event 1 1 proc_name spec_file.txt READ 0

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:

Specify a registered name on the file format line in the spec file if an alternative task identification is desired.

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.