Search code examples
labview

LabVIEW - can you use a numeric control as an indicator


I've written LabView code for a locking system.

The lock has a motion timer that relies on input from a numeric control. I've added a script file reader that needs to be able to change that timer value. Using a selector, I can switch between values, but I'd like it to update the value in the control, rather than override it, so that I can see it on the screen.

How can this be accomplished?

This is currently how I switch between the scripted version and the direct numeric input from the control:

Switch

So how can I get the script value to update the control box or is that not possible...?


Solution

  • Do you mean something like this? I created a little vi to demonstrate how the control is updated.

    In most cases "property nodes" are the way to go. Every control has a lot of different options to chose from and usually if you look through the properties you will find what you're looking for :)

    enter image description here


    A little hint:

    If you want to add "code" to your question so that other users can test it, you can create a .png file. To do this, you need to select the parts of the vi that you want to share, and click on "Edit > Create VI Snippet from Selection". Then you save that generated .png and upload it here as a picture. Then others can drag&drop it into their block diagram.

    Important: Check the .png before uploading and make sure that you're not accidentally posting sensitive data of your company.