ARC Pro

Upgrade to ARC Pro

ARC Pro is your passport to a world of endless possibilities in robot programming, waiting for you to explore.

#1  

Could you explain a little more of just what this does, please.

#3  

I'm not sure the plugin is right. It shows Cats and Dogs and does not change value of when the example script changes the variables.

#4  

Hmm. Will look into it asap. Thanks for letting me know.

PRO
Synthiam
#5  

If you'd like, I can take a look at the code and make some recommendations? After testing today, I noticed there are no ControlCommands published for the cheat sheet. It would be easier to use if it showed on the Cheat Sheet the available commands.

Also I received an error about a series1 not existing - and it was in the form of a messagebox - even though the series1 is already in the example posted.

Do you want me to take a look, modify and report the source here for you with my recommendations?

PRO
Synthiam
#6  

Here you go - I tweaked your project and made some changes, including new functionality to Add/Remove/Rename series.

Source Code: EZChart-src.zip

Give it a try and see if you like it - publish if you do:D

Changes: [feature] changed the chart object to dock with the form so it can be resized

changed the form to be resiable so users can resize it

removed decleration of MyForm since it is the form

moved settings the chart series data into a delegate that only calls if invoke is required

removed the private variables from being static - since there may be more than one instance of this control

removed class scope variables for chart series since they are only referenced once

added constants for the series name so the string will always be the same throughout the code

removed reference to "Find the chart1" since chart1 is always available because it's in the form

renamed the barchart on the form to BarChart

added conditions in the SendCommand for each series (windowsCommand) with messagebox displayed if windowcommand is incorrect. normally this would use the .EQUALS with a stringcomparison type of case insensitive comparison - but since the chart series is case sensitive, i added a message if the series wasn't found to check the case sensitivity

the messagebox for errors displays the name of the control in the error message for userfriendliness

added the cheatsheet to return each series option that can be specified

changed the output build folder to be c:\users.. instead of c:\public.. because my machine puts the public folder in the c:\users

added the ability to rename the title of the chart

added ability to add new series

added ability to remove series

added ability to rename series

added a bunch of syntax checking [/feature]

#7  

@DJ Wow! I wish you worked at my day job... well kinda not then there wouldn't be a EZ Robot. I've been doing almost exclusively web programming for the last 6 years I seriously need a refresher on winforms dev.

@JustinRatliff I think in my mad rush, with a head cold, to get the plug in published I somehow uploaded an early version .dll and not the current one. The zip plug in upload requirement combined with windows send to compressed folder was causing me grief. Also, initially I thought the whole solution had to be uploaded for the plugin project section. I thought for some reason EZrobot was housing the project as a repository of code as well. I now believe it is just the .dll and xml for the plug in.

I'm guessing Github is the intended location for the plug in source code/project.

PRO
Synthiam
#8  

Ah, that make sense why the variables and find control was used. I took those notes while changing in case there was interest in what changes I was making. Didn't want to change your program without telling you, that wouldn't benefit either of us:).

If you have any questions about the things I changed, ask away!

PRO
Synthiam
#9  

Also i should add - if you edit your Plugin.xml in the source i gave you, i would recommend changing the category to "Graphs" instead of Misc.

Additionally, add a Title.png or Title.jpg to the project and include it in the plugin Archive so the control has an icon rather than using the default plugin icon.

#10  

Notes:

Changed plugin.xml tag <VersionRelease>1</VersionRelease> to version 1 <CATEGORY_TYPE>Graphs</CATEGORY_TYPE> causes a new category button to appear in ARC called "Graphs"

Title.png - 128x128 suggested plugin control image size in ARC.

Three files need to be in the plugin .zip archive upload yourpluginname.dll Title.png plugin.xml

PRO
Synthiam
#11  

The size is 128x128 - if you upload a different size, it will be resized. I'll add that to the notes.

#12  

I believe I have a correct plug files uploaded. Tried installing from scratch and all was good. Welcome to version 1. Let me know if you have any issues.

Thanks DJ for pressing the turbo button.

PRO
Synthiam
#13  

:) awesome! I was working on ARC last night with the auto-update for plugin feature. Fell asleep on my keyboard watching Moonbeam City. Most likely finish it tonight.

I recommend moonbeam city btw. Discovered it last night and it's great!

#14  

Love it @leversofpower ! Awesome job! Thank you for creating and sharing this!

#15  

I'm really excited about being able to contribute to such a great community.

I just uploaded a more polished version and you can now change the colors of the bars in the series.

PRO
Synthiam
#16  

Woohoo! That is awesome! Nice work dude. You're a real quick learner.

Wonder where wbs has been? He's also a great community candidate for creating plugins.

Did you see the sort array plugin that u made for Bob? I published the source code. You might be interested to see how I accessed variables from the ezscript engine.

PRO
Synthiam
#17  

Just used your plugin - i like the color change. I have a suggestion for the RGB values.

Currently they are specified in a string...


ControlCommand(&quot;EZ Chart&quot;, SetSeriesColor, 0, &quot;50,50,50&quot;)

It would increase versatility if each color was specified separately like so...


ControlCommand(&quot;EZ Chart&quot;, SetSeriesColor, 0, 50, 50, 50)

Because then you could do this...


repeat($red, 0, 100, 10)

ControlCommand(&quot;EZ Chart&quot;, SetSeriesValue, &quot;Series1&quot;, $red)

ControlCommand(&quot;EZ Chart&quot;, SetSeriesColor, 0, $red, 10, 10)

sleep(100)

endrepeat

#18  

Great, idea. For some strange reason I think I took the more obtuse way doing that by using a string. Will do for next release.

PRO
Synthiam
#19  

awesome - looking forward to it! I've been using the graph control for visualization.

Any idea if you will be making a historical line graph in the future?

#20  

Nice work @leversofpower.... I can use this as a graphical monitor for my ezb and roomba battery voltages.... It would also be awesome to use if you had 3 or 4 pings across the front or around your robot in order to monitor various distances....