Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Custom debugger visualization question (Read 7414 times)
kireita
Junior Member
**
Offline


Posts: 12
Location: Dominican Republic
Joined: Nov 28th, 2012
Custom debugger visualization question
Nov 29th, 2012 at 3:12am
Print Post  
Hello there.

Im new to the forum and recently installed the debugger tool i love the tool and the capabilities it has to develop in it.

Now the proyect i am currently working on is pretty basic. I want to visualize the buttons (digitalreads) when they are HIGH or LOW, and have a bar graph with a variable resistor (analogread) to show a value i specifically want, and also create a small .exe file of it so whenever i have the arduino connected with the code, i can read those values by just executing the code. 

but right now im having issues trying to follow the instructions in "How to configure arduino debugger visualizations" the step i'm stuck in is where i apparently need to inherit a class this is the instruction: 



Uploaded with ImageShack.us


now my problem is when i try to locate the "using Visual.Micro.Debugger.Extensions" i go to "C:\Program Files (x86)\Visual Micro\Visual Micro for Arduino" but do not find anything similar, this is what i have:




Uploaded with ImageShack.us

I added them all but nothing works and now i dont know what to do... please help.

Thank you for youre time and patience, Kees Binchesco Rodriguez Matias

« Last Edit: Nov 29th, 2012 at 1:20pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Custom debugger visualization question
Reply #1 - Nov 29th, 2012 at 11:53am
Print Post  
Hi kireita,

The Visual.Micro.Debugger.Extensions.dll is in the windows GAC so that it can be shared between Visual Micro and your own apps.

The version of the dll installed with VM is .NET3.5 so that it works with all versions of windows.

For the same reason all of the visualization samples are .net3.5

So you can open or create a project then "Add Reference" and the dll should be in the reference list.

It is best for you to copy and change one of the examples supplied with the debugger. Then you will see how it works and how the references are configured.

Remember this is beta and no other users have made their own visualizations yet. So you will have questions for this forum  Smiley

I hope that helps
« Last Edit: Nov 29th, 2012 at 1:20pm by Tim@Visual Micro »  
Back to top
IP Logged
 
kireita
Junior Member
**
Offline


Posts: 12
Location: Dominican Republic
Joined: Nov 28th, 2012
Re: Custom debugger visualization question
Reply #2 - Nov 29th, 2012 at 8:34pm
Print Post  
Tim@Visual Micro wrote on Nov 29th, 2012 at 11:53am:
Hi kireita,

The Visual.Micro.Debugger.Extensions.dll is in the windows GAC so that it can be shared between Visual Micro and your own apps.

The version of the dll installed with VM is .NET3.5 so that it works with all versions of windows.

For the same reason all of the visualization samples are .net3.5

So you can open or create a project then "Add Reference" and the dll should be in the reference list.

It is best for you to copy and change one of the examples supplied with the debugger. Then you will see how it works and how the references are configured.

Remember this is beta and no other users have made their own visualizations yet. So you will have questions for this forum  Smiley

I hope that helps


Hey Tim.

thank you very much for the awnser, yes i found the " Visual.Micro.Debugger.Extensions.dll", yesterday poking around the programs now the following step for me is to add them to a windows form and make a .exe from all those visualizations....

Basically Tim i want to be able to take any example, place them in a windows form, make them a .exe file and whenever i connect my arduino and execute the program it will read the values and show me whatever i decided. does it make sense???

anyways thanks for awnsering me i hope you can help me further with this.

PS: id suggest you to post in the explanation of the visualization that it is located in " ee8c9ebd4902\Visual.Micro.Debugger.Data.Extensions.dll"", because it gets very confusing. furthermore i will me going on and investigate more about this ok.
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Custom debugger visualization question
Reply #3 - Nov 29th, 2012 at 10:15pm
Print Post  
Hi kireita,

Yes I will make the point in the docs about the GAC but you are using it the wrong way.

GAC dlls are not designed to be mapped to their physical location.

Instead, when you "Add Reference" to a C# or Vb project the assembly will appear in the main lists as KNOWN windows assemblies. So you never need to find the location.

Which version of vs are you using? In 2010 you "Add Assembly" and click the first Tab, the Visual Micro assembly will be in the list with the microsoft assemblies. In 2012 you "Add Assembly" then you should find it in the extensions list. Make sure you create a .NET3.5 project otherwise 2012 won't show the assembly (i think that is an ms bug)

This is why I suggest opening or cloning one of the visual micro examples because in the examples projects you will see the reference clearly.

I have considered making an easy option for an exe in a future release. The current vm system will not work  without visual studio however you can add your own arduino code to send the same messages as the debugger so that it could work in a standalone exe. There is some knowledge you need to learn how to do this but I don't have time right now to help you through this.

Obviously this is unconnected to the debugger, but I will try to make some time over the coming weeks to make an example for you.
  
Back to top
IP Logged
 
kireita
Junior Member
**
Offline


Posts: 12
Location: Dominican Republic
Joined: Nov 28th, 2012
Re: Custom debugger visualization question
Reply #4 - Nov 30th, 2012 at 8:35am
Print Post  
Tim@Visual Micro wrote on Nov 29th, 2012 at 10:15pm:
Hi kireita,

Yes I will make the point in the docs about the GAC but you are using it the wrong way.

GAC dlls are not designed to be mapped to their physical location.

Instead, when you "Add Reference" to a C# or Vb project the assembly will appear in the main lists as KNOWN windows assemblies. So you never need to find the location.

Which version of vs are you using? In 2010 you "Add Assembly" and click the first Tab, the Visual Micro assembly will be in the list with the microsoft assemblies. In 2012 you "Add Assembly" then you should find it in the extensions list. Make sure you create a .NET3.5 project otherwise 2012 won't show the assembly (i think that is an ms bug)

This is why I suggest opening or cloning one of the visual micro examples because in the examples projects you will see the reference clearly.

I have considered making an easy option for an exe in a future release. The current vm system will not work  without visual studio however you can add your own arduino code to send the same messages as the debugger so that it could work in a standalone exe. There is some knowledge you need to learn how to do this but I don't have time right now to help you through this.

Obviously this is unconnected to the debugger, but I will try to make some time over the coming weeks to make an example for you.


Ok well i'm using Visual Studio 2012 and im using Windows 8  X64. now i'm going to list the steps i do as you explain and if its possible please respond me with what i do wrong:

step1:


step2:


step3:


step4:


step5:


step6:


step7:


step8:


step9:


now i got this far and dont know if i followed all the steps correctly. but what i want to do is :
1- Change the colour of a label depending if it reads HIGH or LOW depending from which pin it is atached  for example: i press a button which is in PIN 2 and LED A should turn on and the label should be displaying green.
2- make the progressbar change its value depending on its lecture from a ANALOG PIN, for example : ANALOGREAD0 =75 and the progressbar should be filled 75%.

if i can do this i can probably figure out a lot more but right now im really lost because i cant find any documentation in the digitalread examples nor any links to the USB or COM port so it reads from the arduino.

also i can make the debugger work perfectly but the debugger has it all predefined and i dont know how to get in the code of the debugger  Cry.... PLEASE HELP!!!! anybody!!!

thanks in advance.
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Custom debugger visualization question
Reply #5 - Dec 30th, 2012 at 8:36pm
Print Post  
kireita,

I am really sorry that I missed the notification about your last post. I found the post by accident a few minutes ago when searching the forum.

You are doing quite a bit right but it would be better to copy an existing vm digital pins project and to add your own code. You should find the project below the vm folder. On my machine it is here.

C:\Program Files (x86)\Visual Micro\Visual Micro for Arduino\Micro Extensions\Debugger Visualizations\DigitalPinsExample

Copy and rename the project, give it a new GUID in the project assembly properties window, edit the MicroExtension.xml and change the paths/class name. Put the control in a folder with the same name. for example ...

C:\Program Files (x86)\Visual Micro\Visual Micro for Arduino\Micro Extensions\Debugger Visualizations\MyNewControl

So this will give you a working control of your own. All you then need to do it to change the draw routine to something that you need.

Thanks for some great example images, I am sorry I didn't see them a month ago!
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint