Hello Larry,
This looks like a mistake in the DDG Manual. The recommendation would be to add Ivi_LockSession at the top as in the following code (from the latest fl45 source):
ViStatus _VI_FUNC fl45_ConfigureHold (ViSession vi, ViBoolean holdEnable,
ViInt32 holdThreshold)
{
ViStatus error = VI_SUCCESS;
checkErr( Ivi_LockSession (vi, VI_NULL));
viCheckParm( Ivi_SetAttributeViBoolean (vi, VI_NULL, FL45_ATTR_HOLD_ENABLE,
0, holdEnable), 2, "Hold Enable");
if (holdEnable)
viCheckParm( Ivi_SetAttributeViInt32 (vi, VI_NULL, FL45_ATTR_HOLD_THRESHOLD,
0, holdThreshold), 3, "Hold Threshold");
checkErr( fl45_CheckStatus (vi));
Error:
Ivi_Un
lockSession (vi, VI_NULL);
return error;
}
If you are interested in driver development, I would recommend downloading some drivers from our website (http://www.ni.com/idnet) and walking through them -- we provide the source to many complete drivers.
Sincerely,
Jeremiah Cox
Applications Engineer
National Instruments
http://www.ni.com/ask