Search found 23 matches

by Paul
Sun Apr 22, 2018 9:46 am
Forum: MegunoLink
Topic: TrackBar Command Editor
Replies: 4
Views: 2647

Re: TrackBar Command Editor

Hi Tim, The latest version (1.20.18108.0418) released today will let you get the actual bytes. In your case, you'll want something like: \xFF\x00[Tools.AsByte((byte)TrackBar.Value)] The \xXX are literal byte values; Tools.AsByte(...) converts a number to a sequence of bytes. Expressions (surrounded ...
by Paul
Wed Apr 11, 2018 1:49 am
Forum: MegunoLink
Topic: TrackBar Command Editor
Replies: 4
Views: 2647

Re: TrackBar Command Editor

Hi, You can use: [((int)num.Value).ToString("X4")] to create a message with hex values in a string. But I think you want actual bytes. Unfortunately that doesn't seem to be working at the moment. MegunoLink is converting numbers to strings. I will try to figure out what's gone wrong and fix it. Kind...
by Paul
Mon Oct 02, 2017 5:01 am
Forum: MegunoLink
Topic: Unable to set data to send back to the UI
Replies: 8
Views: 5510

Re: Unable to set data to send back to the UI

Hi RoboBill, Great idea to start breaking your program up into smaller chunks. 1,000 lines is quite a bit for a single file. And breaking your problem down to the simplest example is a good idea too. Without the actual source it is a little hard to be sure what the problem is but my best guess is yo...
by Paul
Sun Jul 09, 2017 10:24 am
Forum: Projects
Topic: UDP from ESP8266 to MegunoLink Pro
Replies: 5
Views: 25405

Re: UDP from ESP8266 to MegunoLink Pro

Hi all,

We've had quite a bit of interest in sending data from the ESP8266. We added a little example in the UDP docs that does just that. Check it out here: http://www.megunolink.com/documentation ... nnections/

Have fun
Paul.
by Paul
Tue Feb 21, 2017 9:39 pm
Forum: MegunoLink
Topic: ToString function bug?
Replies: 1
Views: 1873

Re: ToString function bug?

Howdy, MegunoLink is built on C# and we are using that for formatting. In C# the width specifier sets the minimum width of the output. The output will expand to whatever is necessary to correctly represent the value. And an int is a 32 bit number so negative values will take 8 characters. To solve t...
by Paul
Sat Jan 21, 2017 9:37 am
Forum: MegunoLink
Topic: Can I export the table content?
Replies: 5
Views: 3424

Re: Can I export the table content?

There's also a shortcut to copy table values to the clipboard.

Just select the rows/ cells you want to copy, then type Ctrl + C (the windows shortcut for copying a selection to the clipboard).
by Paul
Sun Jan 15, 2017 7:48 am
Forum: MegunoLink
Topic: Sending Float number to arduino with SerialCommandHandler.AddVariable
Replies: 1
Views: 1928

Re: Sending Float number to arduino with SerialCommandHandler.AddVariable

Hi, Thanks for reporting that; I've added it to our list of bugs. This happens if your windows localization settings are set to a region that uses a comma as a decimal separator. Until I get it fixed, you can use this as a workaround in the interface panel: !SetPoint [num.Value.ToString().Replace(",...
by Paul
Sun Oct 25, 2015 11:00 pm
Forum: MegunoLink
Topic: Hide, Visiable and Enabled
Replies: 1
Views: 5441

Re: Hide, Visiable and Enabled

Sorry, currently only picture boxes can be hidden/ shown. We'll look at adding support for other controls in a future version.
by Paul
Sun Oct 25, 2015 10:57 pm
Forum: MegunoLink
Topic: Use 2d array in EEPROMStore arduino library
Replies: 1
Views: 5532

Re: Use 2d array in EEPROMStore arduino library

Hi, The problem is you are create a new variable in the reset function which hides the one in the structure. You want something more like this: struct EMFConfiguration { byte voltage[2][3]; void Reset() { voltage[0][0] = 1; voltage[0][1] = 2; voltage[0][2] = 3; voltage[1][0] = 4; voltage[1][1] = 5; ...
by Paul
Fri Jul 24, 2015 10:55 am
Forum: MegunoLink
Topic: Typo in MegunoLink IDE - Tooltip Copy
Replies: 1
Views: 5728

Re: Typo in MegunoLink IDE - Tooltip Copy

Well spotted. Thanks!

Paul