public static string[] FilterNameSet() { //Figure out the filter mapping //Find the filter name for the filter filter Number ccdsoftCamera tsxc = new ccdsoftCamera(); try { tsxc.Connect(); } catch (Exception ex) { return(null); } try { int filterCount = tsxc.lNumberFilters; string[] TSXFilterList = new string[filterCount]; for (int f = 0; f < filterCount; f++) { TSXFilterList[f] = (tsxc.szFilterName(f)); } return(TSXFilterList); } catch (Exception ex) { return(null); } }
public static string[] FilterNameList() { //Figure out the filter mapping //Find the filter name for the filter filter Number ccdsoftCamera tsxc = new ccdsoftCamera(); int filterCount = tsxc.lNumberFilters; string[] TSXFilterList = new string[filterCount]; for (int f = 0; f < filterCount; f++) { TSXFilterList[f] = (tsxc.szFilterName(f)); } return(TSXFilterList); }
public static List <string> FilterWheelList() { ccdsoftCamera tsxc = new ccdsoftCamera(); //Connect the camera, if fails, then just return after clean up try { tsxc.Connect(); } catch { return(null); } List <string> tfwList = new List <string>(); for (int filterIndex = 0; filterIndex < tsxc.lNumberFilters; filterIndex++) { tfwList.Add(tsxc.szFilterName(filterIndex)); } return(tfwList); }
public static string LookUpFilterName(int filterIndex) { ccdsoftCamera tsxc = new ccdsoftCamera(); return(tsxc.szFilterName(filterIndex)); }