Page 4.22
SECTION 4 - PROGRAMMING GUIDE
PXI/PXIe LVDT/RVDT/Resolver Simulator Module 41/43-670
pickering
PROGRAMMING CONTROL - C# FUNCTIONS
Set Mode Function
The Set Mode function allows you to choose between 5/6-Wire, 4-Wire or Resolver functionality (if it is available
on the card).
BYTE setMode = 1; // Set Mode 5_6_Wire
DWORD sub = 1; // Bank 1
void* p = NULL;
p = &setMode;
ErrCheck(PIL_SetAttribute(card, sub, outSub, ATTR_VDT_MODE, p));
Set Percent Position (LVDT ONLY)
In 5/6 Wire the Set Percent Position sets both outputs A and B relative to the input signal.
double s1 = 100.0;
p = &s1;
ErrCheck(PIL_SetAttribute(card, sub, outSub, ATTR_VDT_PERCENT_POSITION, p));
Set VSUM
double vSum = 5.5;
p = &vSum; // Sets VSUM to 5.5V
ErrCheck(PIL_SetAttribute(card, sub, outSub, ATTR_VDT_VOLTAGE_SUM, p));
Get Maximum Output Voltage
Get the maximum output voltage the card can set. (Vrms).
double vMax = 0.0
ErrCheck(PIL_GetAttribute(card, sub, TRUE, ATTR_VDT_MAX_OUT_VOLTAGE, p));
vMax = *(double*)p;
Set Auto Input Attenuation
BYTE setInputAtten = 100; // Sets Gain to 100
p = &setInputAtten;
ErrCheck(PIL_SetAttribute(card, sub, outSub, ATTR_VDT_AUTO_INPUT_ATTEN, p));