Announcement

Collapse
No announcement yet.

Dipswitch event reporting

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

  • Dipswitch event reporting

    Hello,
    I'm using a ULCD-43 module with different widgets in genie environment with a microcontroller host.
    I have several 2-positions dipswitches, that I can't make work properly :
    I have programmed the dipswicthes to 'report message' on 'onchanged' event, like other input widgets.
    When I tap the switch to change it's state, I receive the message, but not always.
    When I slide the switch to change it's state, I never receive the message.
    Is there anything wrong in the way I'm using these buttons ?
    All other input buttons (winbuttons) are working, so I believe the communication is OK.

    Thanks in advance for any advice.

    Regards
    PP

  • #2


    Can you see this problem when using GTX, or only with your controller?

    When you fail to get any message, has the dipswitch actually changed?

    If it hasn't maybe you need to calibrate the touch on your display, it may not be registering the touch in the correct location.

    With a 2 position dipswitch set up to report both changing and changed, you should get two messages for each position change.
    Mark

    Comment


    • #3


      Hello again,
      First many thanks for your prompt reply.
      Yes, the behaviour with GTX is exactly the same as with controller: sometime no message when using a 'tap', no message at all when sliding.
      In both cases (GTX and controller), the dipswitch state actually always changes normally on the screen : touchscreen seems to work properly, only the expected message is missing.
      I'll try to use also changing to see what happens.
      I have a rectangle (nofill) surrounding the dipswitches. Does this have an influence on the switch operation ? (does not seem to have any on winbuttons).

      Regards
      PP


      Attached files

      Comment


      • #4


        The rectangle should have no effect.

        Can you send your complete project to mark at 4dsystems dot com dot au
        Mark

        Comment


        • #5


          OK, thanks, done.
          Let me know if something is missing.
          PP

          Comment


          • #6


            The program works fine for me on Workshop 4.1.0.18, but I can see you have an earlier version perhaps 4.0.3.14 or earlier.
            Mark

            Comment


            • #7


              I'll try after downloading a newer version. (current 4.02)
              Regards
              PP

              Comment


              • #8


                Hello,
                I have upgraded both module Pmmc and workshop, recompiled all.
                It seems to work fine now.
                Sorry, I should have done this before posting.
                Regards
                PP

                Comment

                Working...
                X