VeriStand .NET API Reference

IModel.RestoreModelState Method

Restores a model to the state defined by the file you specify.

Namespace: NationalInstruments.VeriStand.ClientAPI
Assembly: NationalInstruments.VeriStand.ClientAPI (in NationalInstruments.VeriStand.ClientAPI.dll) Version: 2013.0.0.0 (2013.0.0.0)
Visual Basic (Declaration)
Function RestoreModelState ( _
	filepath As String _
) As Error
C#
Error RestoreModelState(
	string filepath
)
Visual C++
Error^ RestoreModelState(
	String^ filepath
)

Parameters

filepath
Type: System.String
The path to an XML file containing the saved execution state data you want to load to the model. Use the SaveModelState method to create this file.

Return Value

This method returns an error if no configuration is running on the workspace. If no error occurs, the Code property of the Error object is 0.

See Also

Log in to get a better experience