public bool InitializeDll() { /* * This method is to initialize the non-config data. * Non-Config Data is a container to hold the data from our persistent layer. * Like Favorite, VisaInfo, etc. */ bool success = false; if (_tulipParmsInitialized == false) { if (_nonconfigDataManager != null) { NonconfigData dataManager = _nonconfigDataManager.GetNonconfigData(); if (dataManager != null) { AddParamsEntry(dataManager); _nonconfigDataManager.SaveNonconfigData(dataManager); _tulipParmsInitialized = true; } } } InitializeUnmanagedDll(); return(success); }
/// <summary> /// Add the TULIP params entry for this interface to persistent storage. /// For USB this is: /// Name Value /// ========= =================================================== /// agUsb488 LU,Name,Interface,Slot,BusAddr,TimeoutCPRThreshold /// Where 'Name' is the TULIP driver name without the trailing '32.dll' /// </summary> private void AddParamsEntry(NonconfigData dataManager) { //ToDo: If you have the tulip driver, add the parameters here. // dataManager.AddTulipParam(TulipDriverName, _tulipDriverParams); }
/// <summary> /// Add the TULIP params entry for this interface to persistent storage. /// For USB this is: /// Name Value /// ========= =================================================== /// agUsb488 LU,Name,Interface,Slot,BusAddr,TimeoutCPRThreshold /// Where 'Name' is the TULIP driver name without the trailing '32.dll' /// </summary> private void AddParamsEntry(NonconfigData dataManager) { //ToDo: If you have the tulip driver, add the parameters here. // dataManager.AddTulipParam(TulipDriverName, _tulipDriverParams); }