nxtlib/src/Protocol.cs
/// <summary> 
/// [Native] Stops the currently running program on the NXT brick.
/// </summary>
/// <returns>Returns true if program running then stopped successfully.  Returns false if no program was running.</returns>
[Native] Stops the currently running program on the NXT brick.
[ Native ] Stops the currently running program on the NXT brick .
public bool StopProgram()
        {
            try
            {
                byte[] request = new byte[22];
                request[0] = (byte)(0x00);
                request[1] = (byte)(DirectCommand.StopProgram);
                CompleteRequest(request);
                return true;
            }
            catch (NXTNoActiveProgram)
            {
                return false;
            }
        }
public bool StopProgram ( ) { try { byte [ ] request = new byte [ 22 ] ; request [ 0 ] = ( byte ) ( 0x00 ) ; request [ 1 ] = ( byte ) ( DirectCommand . StopProgram ) ; CompleteRequest ( request ) ; return true ; } catch ( NXTNoActiveProgram ) { return false ; } }
[Native] Stops the currently running program on the NXT brick.
[ Native ] Stops the currently running program on the NXT brick .
Returns true if program running then stopped successfully.  Returns false if no program was running.
Returns true if program running then stopped successfully . Returns false if no program was running .