11-19-2019 09:22 AM
Hello,
I need to customize the numeric control. As I know increment and decrement buttons in numeric control are boolean switch. I need these boolean outputs in addition to final numeric output in the control.
please inform via email
Regards
Sarfaraz
11-19-2019 09:55 AM
Posting your e-mail address in a public forum is just begging to receive spam!
Have you tried customizing the control? Right-click, Advanced, Customize.....
11-20-2019 01:05 AM
11-20-2019 07:39 AM
When you say you need the Boolean Outputs as well as the numeric, what do you really need? If I have a numeric Control (say, I32) that initially reads "3" and I push Inc, Inc, Dec, Inc (so I move it to 4, 5, 4, 5), what "output" do you want to see? The final number plus an Array of Booleans (TTFT, where "T" = Inc and "F" = Dec)? The final number + the last-pressed Boolean?
You can, of course, construct such a Control -- it will be a Cluster with an I32 part and a "Boolean" part, and you could create a little routine to "control" this Control (I believe there is even a mechanism called an XControl, or something like that -- I've no direct experience with them -- that can bundle the "Control" and the code together). Is this really what you want?
Bob Schor
11-20-2019 10:32 AM
Thank you for response, actually I want to control a digital potentiometer "X9C103" from LabVies, digital potentiometer increase or decrease its value by pules. In LabView I draw a Thermometer indicator which is up or down by a nemeric control, when I up or down the nemeric control I also want a pulse for digital I/O, to control the digital potentiometer.
11-20-2019 10:36 AM
Thank you for valuable advise regarding email address, further I have tried customized control but remain unsuccessful. Actually I want to control a digital potentiometer "X9C103" from LabVies, digital potentiometer increase or decrease its value by pules. In LabView I draw a Thermometer indicator which is up or down by a nemeric control, when I up or down the nemeric control I also want a pulse for digital I/O, to control the digital potentiometer.
11-20-2019 10:52 AM
If you set your increment for the numeric to be the same size as your "pulse" produces...
You can use an Event >>> Value Change
When the increment is pushed the value will change and the event should give you the "previous" and the "new" value.
You can then use the difference between the old and new to determine how many pulses to send.
But if your increment is set to match the "Pulse" then there should only be one Pulse" required. Now if the user changes the value NOT using the increment buttons, then the difference Old to New will be needed.
X-Controls are not being supported going forward into NXG, if I am keeping score correctly.
They have their own learning curve and are nice if you have some special GUI interactions that need to be used more than once in one or more applications. There was once a note in the LV Advanced course that said something like "X-Control are not easy to implement and should only be implemented by Architects" or something like that. Improperly implemented X-Controls can kill performance and can muck with you even in development mode.
Ben
11-21-2019 09:44 AM
OK I will try Event -- Value Change option.
Thanks