ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

VeriStand .NET API Reference

IMacroRecorder.SaveMacro Method

Saves the current macro recording. You must use the StopRecording method to stop recording before you call this method. This method creates a file of the type .nivsmacro. You can use the IMacroPlayer interface to load the file this method creates and to play back the saved recording.

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 SaveMacro ( _
	filepath As String _
) As Error
C#
Error SaveMacro(
	string filepath
)
Visual C++
Error^ SaveMacro(
	String^ filepath
)

Parameters

filepath
Type: System.String
The path to the .nivsmacro file to which to save the current recording.

Return Value

This method returns an Error object. If no error occurs the Code property of the Error object is 0. If the Macro Recorder is still in record mode, the Code property is 1. If another error occurs, the Code property is 2.

See Also

Log in to get a better experience