niScope_ConfigureClock

NI High-Speed Digitizers Help (NI-SCOPE)

Edition Date: January 2017

Part Number: 370592AB-01

View Product Info

DOWNLOAD (Windows Only)


NI-SCOPE (English | Japanese)

C Function Prototype

ViStatus niScope_ConfigureClock (ViSession vi, ViConstString inputClockSource, ViConstString outputClockSource, ViConstString clockSyncPulseSource, ViBoolean masterEnabled);

Purpose

Configures the attributes for synchronizing the digitizer to a reference or sending the digitizer's reference clock output to be used as a synchronizing clock for other digitizers.

Note  Some features are not supported by all digitizers. Refer to Features Supported by Device for more information.

Related topics:

Parameters

Input
Name Type Description
vi ViSession The instrument handle you obtain from niScope_init that identifies a particular instrument session.
inputClockSource ViConstString Specifies the input source for the reference clock to which the 100 MHz sample clock is phase-locked. Refer to NISCOPE_ATTR_INPUT_CLOCK_SOURCE for more information.
outputClockSource ViConstString Specifies the output source for the reference clock to which another scope's sample clock can be phased-locked. Refer to NISCOPE_ATTR_OUTPUT_CLOCK_SOURCE for more information
clockSyncPulseSource ViConstString For the NI 5102, specifies the line on which the sample clock is sent or received. For the NI 5112/5620/5621/5911, specifies the line on which the one time sync pulse is sent or received. This line should be the same for all devices to be synchronized. Refer to NISCOPE_ATTR_CLOCK_SYNC_PULSE_SOURCE for more information.
masterEnabled ViBoolean Specifies whether you want the device to be a master or a slave. The master device is typically the originator of the trigger signal and clock sync pulse. For a standalone device, set this attribute to VI_FALSE.

Refer to NISCOPE_ATTR_MASTER_ENABLE for more information.

Return Value

Name Type Description
Status ViStatus Reports the status of this operation. To obtain a text description of the status code, call niScope_GetErrorMessage. To obtain additional information concerning the error condition, use niScope_GetError and niScope_ClearError. The general meaning of the status code is as follows:

Value Meaning
0 Success
Positive Values Warnings
Negative Values Errors

WAS THIS ARTICLE HELPFUL?

Not Helpful