GetSignal filter by unit not working

Hi I'm trying to get all signals belonging to a specific unit, but it returns all signals in the system.

            IOFilterTypes aSigFilter = IOFilterTypes.Digital & IOFilterTypes.Unit;
            foreach (Signal sig in unit.Controller.IOSystem.GetSignals(aSigFilter, unit.Name))
            {
                    Console.WriteLine(sig.Name + " = " + sig.Value);
            }

Am I doing something wrong?
Latest RW and PCSDK. 
Sign In or Register to comment.