Notepad++ Plugin for ABB RAPID

If you cant think of programming without Notepad++ and you would like to write your ABB RAPID codes in Notepad++, then you are in the right page. Thanks to the chinese website whose link also follows (as source), I have found an XML file (plugin) that would add the ABB RAPID syntax highlighting to Notepad++. Download the XML file from the download link and follow the instruction with screenshots down here.

XML file download link.

View - User Defined Dialogue

View – User Defined Dialogue

User Defined Dialogue - Import - Select XML file

User Defined Dialogue – Import – Select XML file

Notepad++ with ABB RAPID highlighting

Notepad++ with ABB RAPID highlighting

Source : http://www.brucebot.com/2010/07/rapid-for-notepad/

DFRobot Shield library for LCD Keypad Shield from DX

If you have ordered “LCD Keypad Shield for Arduino Duemilanove & LCD 1602” from DealExtreme and are wondering about how to get this thing working without datasheet, you are in the right place :-)

This product seems to be very similar(!) a product called “DFRobot LCD Keypad Shield for Arduino” and the Datasheet and even a library (LCD4bit_mod) for easy programming of it is available at following link, http://www.robotshop.com/dfrobot-lcd-keypad-shield-arduino.html, under useful links.

The only issue with the library is that this is built for old versions of Arduino and if one to make it work with newest version (Arduino 1.0), then some parts of the code should change. First you need to install the additional library in your Arduino on your computer (by copying the content of the zip file in the “libraries” folder of Arduino program). Afterwards one should change the content of LCD4bit_mod.cpp 

Continue reading

String to Double issues in C# .NET

If you are simply using

double test = Double.Parse(“12.45″);

and it doesn’t work due to formating issues, here is the right post for you. Almost certainly you’re using the wrong CultureInfo. Try specifying CultureInfo.InvariantCulture to parse in. I suspect it’s currently assuming that “.” is a thousands separator rather than a decimal point.

CultureInfo Invc = new CultureInfo(“”);
Invc = CultureInfo.InvariantCulture;
x1 = Double.Parse(“12.45″, Invc);

alternative:

x1 = Double.Parse(“12.45″, CultureInfo.InvariantCulture);