ramacc0 .

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Problem while setting up MonoBrick #4472
    Author Image
    ramacc0 .
    Participant

    I have tried to run the porgram from above on a NXT and it works fine, on the EV3 however, I still get the samen error.Hopefully there is a solution for my problem.

    Regards,
    Ramacco

    in reply to: Problem while setting up MonoBrick #4469
    Author Image
    ramacc0 .
    Participant

    Hi,

    I figured last night that you have to use the standard firmware (read it somewhere on this forum). So, after downloading the testprogram again, I tried to run it via usb, but I got exact the same error message.

    I used this program and in the attachement you can see the imported files in Xamarin Studio

    using System;
    using MonoBrick.EV3;

    namespace ev3
    {
    class MainClass
    {
    public static void Main (string[] args)
    {

    var ev3 = new Brick<Sensor,Sensor,Sensor,Sensor>(“usb”);

    try{
    ev3.Connection.Open();
    ev3.MotorA.On(50);
    System.Threading.Thread.Sleep(3000);
    ev3.MotorA.Off();
    }
    catch(Exception e){
    Console.WriteLine(e.StackTrace);
    Console.WriteLine(“Error: ” + e.Message”);
    Console.WriteLine(“Press any key to end…”);
    Console.ReadKey();
    }
    finally{
    ev3.Connection.Close();
    }
    }
    }
    }

    Also, what is it easier to develop with the custom firmware? Or is it not necessary to use the custom firmware when trying to progam as efficient as possible?

    Hope you can help me.

    Regards,
    Ramacco

    Attachments:
    You must be logged in to view attached files.
Viewing 2 posts - 1 through 2 (of 2 total)
Posted in

Make a donation