ApplyLevelsAndTiming(string, string, string)
- Updated2026-01-12
- 1 minute(s) read
Applies digital levels and timing defined in the loaded levels and timing sheets.
Syntax
Namespace: NationalInstruments.ModularInstruments.NIDigital
public void ApplyLevelsAndTiming(string siteList, string levelsSheet, string timingSheet)
Remarks
Any levels not specified in the levels sheet remain unchanged.
When applying a timing sheet, all existing time sets are deleted before the new time sets are loaded.
For more information, refer to Levels and Timing in the Digital Pattern Help.
Parameters
| Name | Type | Description |
|---|---|---|
| siteList | string | A comma-delimited list of strings of the form siteN, where N is the site number. Passing an empty string specifies all sites. |
| levelsSheet | string | The name of the levels sheet to apply. Use the name of the sheet or pass the absolute file path used in the LoadLevels(string) method. The name of the levels sheet is the file name without the directory and the file extension. |
| timingSheet | string | The name of the timing sheet to apply. Use the name of the sheet or pass the absolute file path that you used in the LoadTiming(string) method. The name of the timing sheet is the file name without the directory and file extension. |
Exceptions
| Type | Description |
|---|---|
| Ivi.Driver.IviCDriverException | The NI-Digital Pattern Driver returned an error. |
| Ivi.Driver.SelectorNameException | The specified siteList contains an invalid site. |
| System.InvalidOperationException |
|