Object: ContextVnV <Data Preprocessor>
- Updated2024-09-12
- 1 minute(s) read
SystemLink > Objects > Object: ContextVnV <Data Preprocessor>
Object: ContextVnV <Data Preprocessor>
The ContextVnV <Data Preprocessor> object provides information on the data preparation event On_ValidationAndVerification.
The following example checks whether a channel exists, and marks the file as valid or invalid. If the file is valid, the example executes further analyses.
| VBScript | Python |
Sub On_ValidationAndVerification(oContext) If (Data.Root.ActiveChannelGroup.Channels(1).Name = "Time") Then Call oContext.MarkDataAsValid() Else Call oContext.MarkDataAsInvalid("Time channel does not exist") End If If oContext.IsDataValid Then ' do something End If End Sub
Properties
Arguments | IsDataValid | Tags