Exemple #1
0
        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);
            }
        }
Exemple #2
0
        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);
        }
Exemple #3
0
            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);
            }
Exemple #4
0
        public static string LookUpFilterName(int filterIndex)
        {
            ccdsoftCamera tsxc = new ccdsoftCamera();

            return(tsxc.szFilterName(filterIndex));
        }