XYPlot Cursor Control

Support forum for MegunoLink
Post Reply
nicolamiele
Posts: 2
Joined: Thu Feb 01, 2024 7:11 pm

Thu Feb 01, 2024 7:21 pm

Hi,

I'm try to control some cursors on XYplot with an arduino via serial.

I have an issue with the command: "PlotterMC2.SetCursorPosition(F("T1"),T1Mc2YY);"

where "T1Mc2YY" is a float variable from 0.0 t 1.0 (as the guidelines ask).

Here is the command in serial plot "{XYPLOT:MC2|C-POS|T1|0.15900}"

But in the XYPlot menu is read as an int 15900 and the cursor goes out the Plotter view.

I can't figure out the problem.

Many thank's for help!

Nicola
nicolamiele
Posts: 2
Joined: Thu Feb 01, 2024 7:11 pm

Thu Feb 01, 2024 11:14 pm

Nevermind!

I found a brutal solution:

Code: Select all

Serial.print("{XYPLOT:MC2|C-POS|T1|0,");
        Serial.print((CommuteTime-T1Mc2));
            Serial.println("}");
Print an ASCII comma and my avribles after.
Post Reply