Programmatically change numeric control increment

Hi! I need to programmatically change the increment to a numeric control.
How would I do this in LV6.02? I tried using custom controls (arrows) and an
indicator and adding/subtracting the increment (separate control) to the
value. This works ok but my loop runs at 250ms so it updates real slow. Any
ideas?
As far as I know LV5 never had the facility but does LV6?
Leon

I've used 2 boolean controls (up/down). When either is clicked, the
increment (standalone numeric control) is added/subtracted to the value, the
result of which is displayed on a numeric indicator placed beside the
up/down arrows (makes it look like its an ordinary numeric control). The
problem is the booleans are read only once every 250ms, causing the
increment to take place at 4 times a second. If, however, it was a standard
numeric control, I could change value regardless of loop time (even though
it would be read only when the loop executed).
I will try your suggestion. If the control is invisible, will I be able to
access the arrows? Thanks.
Leon
"PdB_Serenity_nl" wrote in message
news:[email protected]
com...
> Have you tried using an invisible (transparant) control on top of the
> corresponding indicator?
> Takes less time to draw so your UI-loop can be made more quickly.
> Or what about a mechanism for detecting that you pressed the up/down
> button to make the increase-decrease value bigger?

Similar Messages

  • Use mouse scroll wheel to change numeric control

    Does anyone know if and how I can use the mouse scroll wheel to change numeric control values?

    Another option would be to change the timeout.  This would avoid the timeout event every ms when the mouse has not "entered" the contol.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    Mouse Scroll.vi ‏14 KB

  • How to change numeric control and indicator radix programmat​ically?

    Hi All,
     I need to know how can we change the radix of numeric control as well as numeric indicator while program is running.
    Regards,
    Pramod M G
    Solved!
    Go to Solution.

    Right.  Sorry   Display Format -> Format
    Jim
    You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice

  • Programmatically change GUI controls/ prevent event firing

    Hi,
    I often construct GUIs where user input in one control automatically changes other controls.
    A (simple) example:
    A GUI contains controls A and B. When the user changes control A the value of control B has to be adjusted, and the other way round. So the event handler of A tells B to change its value. An event is fired, and the event handler of B tells A to change its value. An event is fired... and you have an endless event handling loop.
    Please believe me, though the example is simple: this happens frequently in real life, too. Since setting Swing controls programmatically most often triggers events, I need a mechanism to prevent event handling loops. What I do so far is
    o set a "deaf" flag
    o change the control
    o the listener gets informed about the change, but since the "deaf" flag is set it does nothing
    o reset the "deaf" flag
    Another, equally awkward way, is removing event listeners before the change and reattaching them afterwards.
    Is there any elegant way to handle this? How do you handle this kind of problem, which can't be too rare in the GUI world (although a rather extensive search with Google did not find much)?
    Chris

    Personally, I usually choose the same approach as you did, implementing a flag which I'll check when events are fired. If you do this, however, be sure to make the flag volatile, otherwise it might (very rarely) happen that a thread caches the value (even though this points to faulty code on your side, it is well near impossible to debug). I would strongly recomment not to remove and readd the listeners since it will create a lot of overhead and is rather hard to maintain.

  • Programmatically changing the Control Type of ViewCriteriaItem

    Our requirement is dynamically changing the Control Type (Date, LOV, Combo box, etc) of ViewCriteriaItem.
    We are trying in the following way,
    ViewCriteriaManager vm = view.getViewCriteriaManager();
    oracle.jbo.ViewCriteria vca[] = vm.getAllViewCriterias();
    oracle.jbo.ViewCriteria vc = vca[0];
    vc.removeAllElements();
    ViewCriteriaRow vcr = vc.createViewCriteriaRow();
    vcr.setAttribute((String)viewItemRow.getAttribute("WvciColumnName"),"");
    ViewCriteriaItem vc_item1 = vcr.ensureCriteriaItem((String)viewItemRow.getAttribute("WvciColumnName"));
    // Based on some condition
    vc_item1.setProperty(ViewCriteriaItem.CONTROL_TYPE, ViewCriteriaItem.ControlType.DATE);
    But the control type is not changed in UI?
    Kindly help us
    Regards,
    Vijay

    Hi Sonny:
    Finally I've solved the problem in Java mapping program, changing the content-type parameter like this:
         public void setParameter(Map mParametro)
              this.mParametro=mParametro;
              if (mParametro==null)
                   this.mParametro=new HashMap();
              mParametro.put(StreamTransformationConstants.CONTENT_TYPE, "text/xml");
    I hope it helps you. Regards,
    Alejandro.

  • Changing numeric control representa​tion causes fatal internal error.

    Has anyone seen this problem.  In the attached program the control at the top of the front panel named "Part Number" is a U64 which was part of an earlier program.  I wanted to change the representation of the control since I don't need a U64 so I tried to change it to a U8 or any other unsign number and get an fatal internal error which closes the program.  The error screen is also attached.  Is this a know issue?  Is there a work around the problem?  Just not sure why changing this control's representation would cause such a error?  Please let know if this has been seen before.
    Regards
    Gary
    Attachments:
    Sockeye1P1.zip ‏210 KB
    LV2010_ErrorScreen.JPG ‏96 KB

    Hey Gary,
    Sorry to hear that you're experiencing this error. This could be related to a known LabVIEW 2010 issue with case structure selectors having their representation changed. A Corrective Action Request for that particular issue has been filed for this so that it can be looked at for future versions. The workaround is to delete and re-add the case structure (just the one where the Part Number is the case selector, located in your "WaitStart" state). Basically, the case structure gets corrupted causing the crash.
    I wasn't able to reproduce this on my machine, however I had to cull a lot of your code to run it here due to missing subVIs, etc. Let me know if deleting and re-adding the case structure fixes your issue and hopefully we can get to the bottom of this.
    Courtney L.
    Applications Engineer
    National Instruments

  • Numeric Control - Text and Background Color changes when operating inc/dec arrows

    Hi,
    I'm developing an application that has a panel with black background and green or red numbers. I've added numeric controls and configured the text color and text background color attributes accordinglingy. I set the numeric control to hot or validate  control mode and show the inc/dec arrows, since I want to be able to incr/decr the numbers.
    The problem is that when I run the application and I hit the inc/dec arrows, then the colors inside the numeric control frame become inverted: the black background becomes white and the green number becomes cyan. I've created a callback function assosicated with the numeric control and tried forcing the text and background color, in the EVENT_VAL_CHANGED section, using the SetCtrlAttrribute() function, but to no avail. Also added ProcessDrawEvents didn't help.
    When I mouse click again outside the numeric control, then it reverts back to its original colors (green text, black background).
    Any suggestions as to how I can fix this ?
    I want it to keep its original colors at all times, even when I'm clicking the incr/decr arrows...
    Kind regards,
    pgriep
    Solved!
    Go to Solution.

    Ok, now I see what's happening.
    The effect you are seeing is a resul of standard numeric control behaviour combined with the black bcakground: when you use arrows to increment/decrement a numeric control its value will be automatically highlighted; on the default background you'll see the white area and figures highlighted in black (white numbers on balck background). If you set the background to black the system will automatically change the colors used to highlight the text, and that's what you're seeing.
    By the way, this does not happens if you use up and down keys on the keyboard: text is not highlighted so colors are not changing.
    Additionally, this is not only valid for numerics: see the behaviour of the string controls on the bottom of your panel when you tab up to them. This effect does not happen on controls set as indicator like the big clock in the upper part of the panel.
    The only way I can see to overcome this behaviour is to hide control built-in arrows and create your own up and down buttons with which you can manipulate the numeric control. I am attaching a modified version of your project with buttons on the left numeric; sorry for the poor aesthetic:  I have used some arrow icons I had on my disk, you may want to create your own arrows with the colors and shape you prefer.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?
    Attachments:
    ModifiedApplication.zip ‏9 KB

  • With Traditional NI-DAQ Compatibility VI's the acquisition locks when I press the increment or decrement button of a numeric control.

    Hello all.
    I´m using a PCI-6220 and the Traditional NI-DAQ Compatibility VI's to make the acquisition that is in the attached VI. But when I click the increment/decrement button on the numeric controls my acquisition stops. In the same PC I made the same experience with a 6040 and I could not see this problem. I tried with the PCI-6220 with the DaqMX VI's and I could not see this problem too, for these reasons I believe that the problem has something to do with the Traditional NI-DAQ Compatibility VI's.
    I built machines that can have one or the other board (depending if it is low-end or normal). Does somebody knows the solution for this problem?
    Thanks in advance.
    Paulo Carmo
    Attachments:
    experiencia.vi ‏49 KB

    Hello
    For what I’ve seen on National web site, using the “Traditional compatibility VI’s”, it sould be possible to control a NI-DAQmx using code written in NI-DAQ Traditional. This information was obtained from the following NI link:
    http://digital.ni.com/softlib.nsf/954feaeea92d90918625674b00658b83/9d67f671bcc6850586256e630059308b?...
    Please read this information and then tell me something please.
    Best regards!

  • The acquisition locks when I press the increment or decrement button of a numeric control

    Hello all.
    I´m using a PCI-6220 and the Traditional NI-DAQ Compatibility VI's to make the acquisition that is in the attached VI. But when I click the increment/decrement button on the numeric controls my acquisition stops. In the same PC I made the same experience with a 6040 and I could not see this problem. I tried with the PCI-6220 with the DaqMX VI's and I could not see this problem too, for these reasons I believe that the problem has something to do with the Traditional NI-DAQ Compatibility VI's.
    I built machines that can have one or the other board (depending if it is low-end or normal). Does somebody knows the solution for this problem?
    Thanks in advance.
    Paulo Carmo
    Attachments:
    experiencia.vi ‏49 KB

    Hello
    For what I’ve seen on National web site, using the “Traditional compatibility VI’s”, it sould be possible to control a NI-DAQmx using code written in NI-DAQ Traditional. This information was obtained from the following NI link:
    http://digital.ni.com/softlib.nsf/954feaeea92d90918625674b00658b83/9d67f671bcc6850586256e630059308b?...
    Please read this information and then tell me something please.
    Best regards!

  • Can you programmatically change the width of columns in a table control\indicator

    Is it possible to programmatically change the width of columns in a table control\indicator ie to fit to width of the data or in my case the header information.

    Create a property node (or reference) and use the 'Active Cell' property to select which column you want to change and then use the 'Cell size'--> 'Width' property to change the size.
    "There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
    Attachments:
    table.vi ‏33 KB

  • How can I programmatically change the fill color Settings of the Cwslide ActiveX Controls

    In design mode (Visual Studio 6.0),I want to programmatically change the fill color in properties of  cwslide  ActiveX Controls.what's the command?
    Attachments:
    cwslide.JPG ‏11 KB

    First, if you want to start getting beyond the basics with DAQ, you are going to have to stop using the DAQ assistant and do it with lower level DAQmx VI's.  There are hundreds of examples in the example finder.  You can even right click on the DAQ assistant and select open front panel.  That will create a subVI that you can open and see what is going on behind the scenes.  Do it.  I think you'll find the DAQ task is being recreated on each (though I'm not 100% of how the settings are established or maintained in each section of that subVI).
    The second problem is you have a bit of a race condition on iteration 0.  Those two DAQ property nodes are running at the same time.  So when you read the AI.Max, it may be happening before or after the AI.Max is set in your case structure.
    Third, make sure you wire up your error wires.

  • Dual Numerical Control Change

    Dear Friends
    I have two Numerical Control in the FrontPanel. Now I want to program Numerical Controls such that when I changed one of them the other one change susequently.
    for example in the attached VI when I set "A" to 1 "B" should be automatically 1 to and when I changed "B" from 1 to 5 "A" Should be changed to 5 automatically.
    Sincerely V.S
    Solved!
    Go to Solution.
    Attachments:
    Dual Numerical Control.vi ‏9 KB

    Hi, V.S
    You have too much event structure in while loop.
    It will run step by step.
    For example, when you change value A , and it will run "A" event but the last three event wait for user changing value.
    The program is not to work, because it wait others event occurs.
    You can add more case in one event.
    Patrick
    Certified LabVIEW Developer
    Attachments:
    Dual Numerical Control.vi ‏17 KB

  • Disable mouse scroll incrementing on numeric controls?

    Is there a way to disable the mouse scroll incrementing on numeric controls?  (When the numeric control has KeyFocus and you scroll your mouse it will increment/decrement).  
    Most of the time it isn't a problem, but if you have a subpanel and you scroll your mouse it will scroll both the subpanel vertical AND increment/decrement a numeric control that has focus.

    HI!
    I cannot disable mouse scrolling if I use a Slide and Digital Display has focus (see the attachement, please). What am I doing wrong?
    Regards,
    Ljubo.

  • Cannot change precision of digital display of a numerical control

    Hi,
    This may be a stupid question. But in the attched slider control, I am unable to set the precision of the digital display. I can only set the precision of the scale. What do I need to do? Thanks.
    Peter
    Attachments:
    Horizontal Fill Slide (numeric control) question.vi ‏9 KB

    In the upper left of the display format tab of the properties dialog box, select digital display.
    I agree that it could be implemented better, for example if you right-click on the digital display ...display format. it should land on the dialog with the digital display selected. It currently does not.
    (as a general rule, you should avoid overlapping controls. It hurts redraw performance)
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    DigitalFormat.jpg ‏42 KB

  • Numeric control error handling

    Hi all,
    I have two question about numeric control.
    1) "How to handle invalid inputs?"
    Let say, I have one numeric control that can only accept 0 to +inf (Range). So negative input will be invalid data input. Whenever I typed the negative value on it, this control automatically changed back to default (min) value. What I want is that. Is there anyway to detect invalid user input? So that I can program whenever user input negative number, it will automatically change back to previous valid input (not default value).
    2) "How to assign the dynamic range of numeric control?"
    I used property node to assign the range but my problem is that. I assigned min 0.1, max 1.2 and increment 0.1 but I cant able to select 1.2 or sometime 0.1 by using increment/decrement arrow. Maybe because of floating points? And also I want to do when user input overrange value (eg.1.3) by typing, the value should go back to previous valid input.
    Any idea? Thanks

    You can choose how LV will react on entries exceeding a limit. The default is, that LV coerces the value to the limit. But you can also ignore the limit and the user can enter any value.
    Nevertheless, if you ignore the limits, you always have to check in your software for invalid values!
    Regarding 2) i couldn't reproduce what you described. Maybe you should post a little example....
    For the 2nd part of your question, please see my answer above...
    hope this helps,
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

Maybe you are looking for

  • Error in setting up message control in WE21...

    Hello Experts, I am currently setting up the partner profiles of my new IDoc in transaction WE21(Partner profiles). Under the message control tab, I chose 'EF' under 'Application', 'NEU' under "Message type' and entered my process code under the 'Pro

  • Slow DL/UL Speeds, Pages not loading, and inability to play games online

    I noticed bad connection speeds on Wednesday and called tech support. They sent a technician out who replaced the modem and did some work on the lines. Long story short, my speeds are still poor, pages are not loading, and I am unable to play compute

  • An intricate question rather than an idea: PDF structure LIVE EDITOR

    I am wondering whether Dom's outline here(1) is really impossible: For PoDoFoBrowser, I think it would be fine if you would have the preview side by side with the pages content stream. And if you type some PDF code into the content stream, like "0 0

  • How to add range navigation to an ADF table ?

    Greetings, I have the following code: <af:table var="messageObject" rowBandingInterval="0" id="t1" value="#{chatForm.chatRoom.messages}" rendered="#{chatForm.chatRoom.messagesSize > 0}" summary="message table" rows="5" first="#{chatForm.first}" conte

  • Deadlock when updating different rows on a single table with one clustered index

    Deadlock when updating different rows on a single table with one clustered index. Can anyone explain why? <event name="xml_deadlock_report" package="sqlserver" timestamp="2014-07-30T06:12:17.839Z">   <data name="xml_report">     <value>       <deadlo