コード例 #1
0
        /// <summary>
        /// This function enables the program to test if a output device is busy on all ports on all bricks
        /// </summary>
        public async Task <bool> IsBusy(OutputPortFlag portFlag = OutputPortFlag.All)
        {
            for (int i = 0; i < 4; i++)
            {
                bool result = await OutputMethods.IsBusy(Brick.Socket, (ChainLayer)i, portFlag);

                if (result)
                {
                    return(true);
                }
            }
            return(false);
        }
コード例 #2
0
 /// <summary>
 /// This function enables the program to test if a output device is busy.
 /// </summary>
 protected async Task <bool> IsBusy()
 {
     return(await OutputMethods.IsBusy(Socket, Layer, PortFlag));
 }
コード例 #3
0
 /// <summary>
 /// This function enables the program to test if the motors are busy.
 /// </summary>
 public async Task <bool> IsBusy()
 {
     return(await OutputMethods.IsBusy(Brick.Socket, Layer, PortFlag));
 }