12-13-2018 02:51 PM
I am very new to labview...
I want to read a value from and instrument be able to change it and then write it back.
I would like to use a numeric indicator to display the value from the instrument and a control to change it. My problem lies in getting a numeric control to initially display the value from the instrument.
thanks steve
12-13-2018 02:54 PM - edited 12-13-2018 02:55 PM
@Murmsk wrote:
I am very new to labview...
I want to read a value from and instrument be able to change it and then write it back.
I would like to use a numeric indicator to display the value from the instrument and a control to change it. My problem lies in getting a numeric control to initially display the value from the instrument.
thanks steve
This is one case were I recommend using a local variable of your control. With that you can write a value to the control. Just be aware that using local variables introduce the possibility of race conditions.
12-13-2018 03:41 PM
Please include a Snippet of your code, or attach your VIs, so that we can better assist you. As mentioned already, a simple local variable should do the trick.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
12-14-2018 05:53 AM
@Murmsk wrote:
I want to read a value from and instrument be able to change it and then write it back.
What instrument? How are you getting the data from the instrument? How is the said data formatted? What else is your VI doing? How often do you need to read the value?
12-17-2018 08:45 AM
thanks the simple variable worked
12-17-2018 09:56 AM
@Murmsk wrote:
thanks the simple variable worked
Then please mark Mark's post as solution. Potentially give a kudo...
12-17-2018 11:02 AM
@Murmsk wrote:
thanks the simple variable worked
I have never heard of a "simple variable". Can you explain what you did?
12-18-2018 02:45 AM
@altenbach wrote:
@Murmsk wrote:
thanks the simple variable worked
I have never heard of a "simple variable". Can you explain what you did?
A "simple local variable" was mentioned as solution. So I'd bet a local variable was used, and it was referred to as simple variable.