LJM_STREAM_PROCESS_PRIORITY_MODE | LabJack
 
« Close

Datasheets and User Guides

App Notes

Software & Driver

 
Friday May 29th 2020
Support: LabJack engineers available through email and chat.
Shipping: We are processing and shipping all orders.
Stock: 51 of 56 products are in stock. More details.
Supply Chain: Minor impacts. More details.

LJM_STREAM_PROCESS_PRIORITY_MODE

Requires LJM 1.2100 or later.

Windows-only. On Linux, chrt can be used to increase process priority: chrt --rr 1 ./my_test

Summary

Sets whether or not LJM elevates the process priority temporarily during stream.

LJM_STREAM_PROCESS_PRIORITY_ELEVATED = 1 (default)

  • Elevates the process priority when LJM_eStreamStart or LJM_StreamBurst is successfully called. When LJM_eStreamStop is called or when LJM_StreamBurst ends, process priority is reset back to what it was essentially when the first LJM call was made (or NORMAL_PRIORITY_CLASS if the initial call to GetPriorityClass() failed).
  • Windows: Elevates process priority to REALTIME_PRIORITY_CLASS.
  • Linux/macOS: Not implemented.

LJM_STREAM_PROCESS_PRIORITY_UNALTERED = 2

  • The priority of the process is not altered.

The constant LJM_STREAM_PROCESS_PRIORITY_MODE can be used interchangeably with the string "LJM_STREAM_PROCESS_PRIORITY_MODE".

Remarks

LJM_STREAM_PROCESS_PRIORITY_MODE does not affect currently running or already initialized streams.

If process priority cannot be set, a debug log message is generated.

See also the related LJM_STREAM_THREADS_PRIORITY_MODE, which sets priority for threads instead of for the process.

Relevant Functions

To read LJM_STREAM_PROCESS_PRIORITY_MODE, use LJM_ReadLibraryConfigS.

To write LJM_STREAM_PROCESS_PRIORITY_MODE, use LJM_WriteLibraryConfigS or LJM_LoadConfigurationFile.