3.2.1 SetAttribute Function Group
3.2.1.1 ssa_SetAttributeViInt32 (ViSession vi, ViConstString channelName, ViAttr
attributeId, ViInt32 value)
Example: When you want to set the sweep mode, you can call the SetAttribute
function to change the sweep mode.
ssa_SetAttributeViInt32(session, VI_NULL, SSA_ATTR_SWEEP_MODE,2)
Set the scan mode to FFT.
3.2.1.2 ssa_SetAttributeViReal64 (ViSession vi, ViConstString channelName,
ViAttr attributeId, ViReal64 value)
Example: When you want to set the start frequrncy, you can call SetAttribute or
GetAttribute function to change or obtain the start frequency value.
ssa_SetAttributeViReal64(session,VI_NULL,SSA_ATTR_FREQUENCY_START,1000);
Set the starting frequency to 1khz.
3.2.1.3 ssa_SetAttributeViString (ViSession vi, ViConstString channelName,
ViAttr attributeId, ViConstString value)
Example: When you want to set the marker label trace, you can call SetAttribute or
GetAttribute function to change or obtain the active marker label trace.
ssa_SetAttributeViString(session,VI_NULL,SSA_ATTR_MARKER_TRACE,"TRACE1")
;
set active marker mark trace 1.