06-01-2015 12:59 PM
Hello All,
I have a voltage that is being read by LabVIEW. I have that value displayed on the Vi. What I am trying to do is create a property node for that value so it only displays that value if its value is >1. That value is part of an array, because I have 3 different instruments that are using the USB-6002, DAQ device. I used an idex array and have the correct address indexed out, as shown by an indicator. Now I just need to figure out how to use the property node.
Thank you
06-01-2015 01:04 PM
Please attach your code that you have so far. I do not know what indicator you are talking about. But I think what you really want here is simply a Greater Than? with a case structure. You write to the indicator in the TRUE case of the indicator.
06-01-2015 01:29 PM
If it's a numeric indicator, change the minimum value to 1 and Coerce all other values below it to 1.
06-01-2015 01:30 PM
While it is clear what you want to do if the value is >1 (namely to display it), it is less clear what the other case should be. Do you want to display a default? Do you want the indicator to disappear? Do you want to display a message?
I agree that you should show us some code, at a minimum the code that shows the value being displayed (and any attempts you have to do what you want to do ...).
Bob Schor
06-01-2015 01:31 PM
Oops, my response was for a control, not an indicator.
06-01-2015 01:41 PM
Messed up as it is, here is what I am working on.
06-01-2015 01:49 PM
This example doesn't show all of the channels I am using, I thought it would be easier to explain this way. So on the front panel under the "Acquired Data" it shows the array. The very top element is what is reading my voltage. I don't have the indicator on it as I am trying to set it so that it will show nothing, or maybe just "0", unless the voltage is >1. I am not the greatest at describing what I am trying to do.
06-01-2015 02:01 PM
You have an array of waveforms and are trying to squeeze it into a plain numeric array indicator. That will discard most of the data.
To display nothing, you need to use an array of strings and format it according (empty string for <0).
If displaying zero is sufficient, multiply the array with the output of ">1" and (boolean to 0,1). This will zero everything smaller than 1.
06-01-2015 02:05 PM
Not exactly sure how to do that :manembarrassed:
06-01-2015 02:17 PM
How are you trying to display the data? Chart? Single Numeric? There are different approaches I would do based on this answer.