The below table shows the EPICS Environment Variables you can alter, their range of values, and their default values.
Environment Variable Name | Range | Default |
---|
EPICS_CA_ADDR_LIST | {N.N.N.N N.N.N.N:P ...} | <none> |
EPICS_CA_AUTO_ADDR_LIST | {YES, NO} | YES |
EPICS_CA_NAME_SERVERS | {N.N.N.N N.N.N.N:P ...} | <none> |
EPICS_CA_CONN_TMO | r > 0.1 seconds | 30.0 |
EPICS_CA_BEACON_PERIOD | r > 0.1 seconds | 15.0 |
EPICS_CA_REPEATER_PORT | i > 5000 | 5065 |
EPICS_CA_SERVER_PORT | i > 5000 | 5064 |
EPICS_CA_MAX_ARRAY_BYTES | i >= 16384 | 16384 |
EPICS_CA_MAX_SEARCH_PERIOD | r > 60 seconds | 300 |
EPICS_TS_MIN_WEST | -720 < i <720 minutes | 360 |
Windows
- Right-click on My Computer and choose Properties.
- Select the Advanced tab and click the Environment Variables button.
- Add a new System Environment Variable (not User) with the following configuration:
Variable name: <Environment Variable Name>
Variable value: <Environment Variable Value>
Example of how it will look to add EPICS_CA_MAX_ARRAY_BYTES with value of 100000000:
- Reboot the Windows system.
Phar Lap or VxWorks Real-Time Targets
- FTP to the target and download the /ni-rt.ini file to your local machine.
- Open ni-rt.ini on your computer using a text editor, such as notepad.
- Add a new section to the bottom of ni-rt.ini with the follow:
[EPICS]
<Environment Variable Name>=<Environment Variable Value>
An example entry for the EPICS_CA_MAX_ARRAY_BYTES variable would look like the below:
[EPICS]
EPICS_CA_MAX_ARRAY_BYTES = 100000000 - Save the ni-rt.ini file and FTP it back to the target , replacing the existing one.
- Reboot the RT target.
NI Linux Real-Time Targets
- Connect to the target via SSH .
- Login using an account with administrator privileges. The default admin account has a blank password.
- Type vi /etc/init.d/tagsrv to open the tagsrv file in the default Linux text editor.
- Navigate to the line above ulimit in the startdaemon section by pressing <J> on your keyboard to move the cursor down. (<K> will move your cursor up)
- Press <O> on your keyboard.
- Press <Enter>.
- Type export <Environment Variable Name>=<Environment Variable Value>
An example entry for the EPICS_CA_CONN_TMO variable would look like the below: - Press <Esc>.
- Type :wq to save your changes and quit the text editor.
Additional Information
There is a known issue with Linux RT targets where the EPICS_CA_MAX_ARRAY_BYTES environmental variable is not read correctly by the EPICS server. You can still use the above method to change the max array bytes variable, but the EPICS server running on the Linux RT target will still use the default value of 16384. This is being tracked on CAR 453991.