Announcement

Collapse
No announcement yet.

Help to chosse programming mode.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Help to chosse programming mode.

    Hi guys.

    Ive tryid to startup programming my 4D 32PTU display, but everytime I get stocked and wondering is I choosed the correct programming mode.

    So what I use it for:

    I will use my 32PTU display along with a Arduino Mega 2556 boad wich runs "machine code" the display is for settings, realtime values and so on. If it's possible I would also like to use 4 digial pins on the display for pushbuttons with leds. (2 in and 2 out).

    I would really like to use th uSD card to hold all the graphics to spare the main processor for that gfx workload.

    I just tryid the Compatible Arduino enviroments, but then I cannot choose digital pins??

    can someone point me in the "right" direction?

    /Kasper.
    Last edited by kaspervissing; 31 May 2018, 11:09 PM.

  • #2
    Hello Kasper,

    You can do this in the Serial SPE programming enviroment. When you say your Arduino mega runs 'Machine code' do you mean you don't use the Arduino IDE for programming. This datasheet should help with the Serial commands to use to set pins https://www.4dsystems.com.au/product...nual_R_2_0.pdf Page 171 shows the how to use the pinSet command serially.

    If using the AR extended graphics then this should work to set a pin,

    Display.pin_Set(mode,pin number);

    I hope this helps

    Best regards

    Paul

    Comment


    • #3
      Originally posted by pauleilio View Post
      Hello Kasper,

      You can do this in the Serial SPE programming enviroment. When you say your Arduino mega runs 'Machine code' do you mean you don't use the Arduino IDE for programming. This datasheet should help with the Serial commands to use to set pins https://www.4dsystems.com.au/product...nual_R_2_0.pdf Page 171 shows the how to use the pinSet command serially.

      If using the AR extended graphics then this should work to set a pin,

      Display.pin_Set(mode,pin number);

      I hope this helps

      Best regards

      Paul
      thnaks for your time.

      your pointing at a DIABLO16 processor, mine is PICASSO, tdoes that matter?

      I mean by machine code, that my Arduino mega runs the main program which controls actuators, pumps, valves, timers etc.. So what i need is a way to send and receive events to my 32PTU display to show realtime values, set parameters....

      Display.pin_Set(mode,pin number);
      and to read a PIN?
      could that be like this:
      "if (genie.EventIs(&Event, GENIE_REPORT_OBJ, GENIE_OBJ_PININPUT, 0))"




      I just get confused with all the different ways to do the display programming.

      /Kasper

      Comment


      • #4
        Hi,

        You could use Visi-genie as you are using just digital inputs, this appnote will show you how to use inputs & outputs in Visi-genie

        https://www.4dsystems.com.au/appnote/4D-AN-00035/

        My apologies I misread and thought it was for a Diablo but pin_Set will still work with a Picaso in the Serial SPE environment. Your project could be accomplished in any of the programming environments but Visi-genie will give you the quickest result.

        I hope this helps

        Paul

        Comment


        • #5
          Originally posted by pauleilio View Post
          Hi,

          You could use Visi-genie as you are using just digital inputs, this appnote will show you how to use inputs & outputs in Visi-genie

          https://www.4dsystems.com.au/appnote/4D-AN-00035/

          My apologies I misread and thought it was for a Diablo but pin_Set will still work with a Picaso in the Serial SPE environment. Your project could be accomplished in any of the programming environments but Visi-genie will give you the quickest result.

          I hope this helps

          Paul
          thanks alot.
          One last question.

          Is there different command set's for each inviroment?

          or where can i see the differens? Im not sure what why I had so hard to understand the differens in the way it can be done.. :/

          So from Arduino side, can i use the same events/instructions neverless what inviroment I chossed in the display?

          /Kasper.

          Comment


          • #6
            Hi Kasper,

            Designer & Visi use the same command set, Serial SPE uses the same command names and parameters so it is pretty straight forward to adapt a code written in Visi / designer to Serial SPE using the Arduino library. Visi genie works with events and objects and is designed to be the simplest and fastest software development tool.

            There are libraries available for both Serial SPE and Visi-genie which can be found here.

            https://github.com/4dsystems

            Best regards

            Paul

            Comment

            Working...
            X