Home arrow Forums
914 PC Bots Forum  


<< Start < Prev 1 2 3 4 5 6 Next > End >>
etgohomeok
User

Senior Boarder
Posts: 14
graphgraph
Karma: 2  
Installing .NET components for Visual Studio - 2007/06/08 01:55 Hey. I'm trying to install the .NET Framework Components for Visual Studio. The documentation for inastalling it says to "drop the M3 component into the project." How do I do this? I'm trying to set it up with J#.
  | | The administrator has disabled public write access.
jamesbruton
Admin

Admin
Posts: 683
graph
Karma: 8  
Re:Installing .NET components for Visual Studio - 2007/06/08 02:46 If they are installed correctly, then you should see them under 'General' in the toolbox. Then you just drag them to the form like you would any other control - a button or dialog box for instance:

  | | The administrator has disabled public write access.
etgohomeok
User

Senior Boarder
Posts: 14
graphgraph
Karma: 2  
Re:Installing .NET components for Visual Studio - 2007/06/08 13:48 I see... I was trying to make a basic console-based application. I see that I have to use a "form." I guess I'll mess around with it.
  | | The administrator has disabled public write access.
etgohomeok
User

Senior Boarder
Posts: 14
graphgraph
Karma: 2  
Re:Installing .NET components for Visual Studio - 2007/06/09 01:22 I dragged the M3 Component into Form1 and opened Form1.jsl and added this to it.
Code:

 public void moveForward() {     m31.Open();     m31.Connect();     m31.Drive(100202020);     m31.Close(); }



Then I added this to the Main method in Program.jsl:

Code:

 Form1 myForm = new Form1(); myForm.moveForward();



It built properly but nothing happened when I ran it. What else do I have to do?
  | | The administrator has disabled public write access.
jamesbruton
Admin

Admin
Posts: 683
graph
Karma: 8  
Re:Installing .NET components for Visual Studio - 2007/06/09 03:48 Hi, I'm not an expert in J#... but if you drag the toolbar onto the form, connect it's M3 property to the M3 object, and build it - then click the buttons for open/connect/reset/status etc - does it connect to the hardware ok?

I think otherwise it looks like you have the right things in your code, but it's hard to say where the problem is without seeing if the other components work or not.
  | | The administrator has disabled public write access.
jamesbruton
Admin

Admin
Posts: 683
graph
Karma: 8  
Re:Installing .NET components for Visual Studio - 2007/06/09 04:14 You'll need the messages component as well so you can see it connecting of course. It might be cool to try a simple 'no code' manual drive app to start with - at least that way you know it will work and you can get the 914 doing something.

After that you can try some more code based testing, but by then at least you know you're on the right track...
  | | The administrator has disabled public write access.
<< Start < Prev 1 2 3 4 5 6 Next > End >>