IviScope_ConfigureChannel

CVI/LabWindows IVI Class Driver

IviScope_ConfigureChannel

IviScopeBase Capability Group

C Function Prototype

ViStatus IviScope_ConfigureChannel (ViSession vi, ViConstString channel, ViReal64 range, ViReal64 offset, ViInt32 coupling, ViReal64 probeAttenuation, ViBoolean enabled);

Purpose

This function configures the most commonly configured attributes of the oscilloscope channel subsystem. These attributes are the range, offset, coupling, probe attenuation, and whether the channel is enabled.

Parameters

Name Type Description
vi ViSession The instrument handle that you obtain from the IviScope_init or IviScope_InitWithOptions functions. The handle identifies a particular IVI session.
channel ViConstString The name of the oscilloscope channel to configure.
range ViReal64 Specifies the vertical range. The driver uses this value to set the IVISCOPE_ATTR_VERTICAL_RANGE attribute.
offset ViReal64 Specifies the vertical offset. The driver uses this value to set the IVISCOPE_ATTR_VERTICAL_OFFSET attribute.
coupling ViInt32 Specifies how to couple the input signal. The driver uses this value to set the IVISCOPE_ATTR_VERTICAL_COUPLING attribute.
probeAttenuation ViReal64 Specifies the probe attenuation. The driver uses this value to set the IVISCOPE_ATTR_PROBE_ATTENUATION attribute.
enabled ViBoolean Specifies whether the channel is enabled for acquisition. The driver uses this value to set the IVISCOPE_ATTR_CHANNEL_ENABLED attribute.

Return Values