Adding Additional Settling Time

NI Switches Help

Edition Date: April 2015

Part Number: 375472H-01

»View Product Info
Download Help (Windows Only)

Some applications, such as high temperature or vibration measurements, may require additional settling time to acquire accurate measurements.

Setting the Settling Time

You can change the default settling time of a switch by using the niSwitch Property Node or the niSwitch_SetAttributeViReal64 function and NISWITCH_ATTR_SETTLING_TIME attribute.

In LabVIEW:

  1. Add the niSwitch Property Node to the block diagram.
  2. Click the property node and select Module Characteristics»Settling Time.
  3. Right-click the Settling Time property and select Change to Write.
  4. Right-click the Settling Time property and create a constant.
  5. Set the constant to the amount of time (in seconds) to wait for settling.

In C:

  1. Create a new ViSession named switchSession using the niswitchinit function.
  2. Create a ViReal64 variable named settlingTime and set the value to the desired new settling time in seconds.
  3. Call the function niSwitchCheckErr(niSwitch_SetAttributeViReal64(switchSession, VI_NULL, NISWITCH_ATTR_SETTLING_TIME, settlingTime));
Note  If you set the settling time of a switch module below the default settling time, NI-SWITCH coerces the value to the default settling time. You cannot change the settling time values for the NI SCXI-1127/1128/1160/1161/1163R/1190/1191/1192.

Checking the Settling Time

You can check the default settling time of a switch by using the niSwitch Property Node or the niSwitch_CheckAttributeViReal64 function and NISWITCH_ATTR_SETTLING_TIME attribute.

In LabVIEW:

  1. Add the niSwitch Property Node to the block diagram.
  2. Click the property node and select Module Characteristics»Settling Time.
  3. Right-click the Settling Time property and create an indicator.

In C:

  1. Create a new ViSession named switchSession using the niswitchinit function.
  2. Create a ViReal64 variable named settlingTime. Its value in seconds will be returned in the next step.
  3. Call the function niSwitchCheckErr(niSwitch_GetAttributeViReal64(switchSession, VI_NULL, NISWITCH_ATTR_SETTLING_TIME, &settlingTime));

WAS THIS ARTICLE HELPFUL?

Not Helpful