LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Display only if value is >1

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

0 Kudos
Message 1 of 11
(3,916 Views)

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 11
(3,907 Views)

If it's a numeric indicator, change the minimum value to 1 and Coerce all other values below it to 1. 

Capture.PNG

aputman
0 Kudos
Message 3 of 11
(3,876 Views)

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

0 Kudos
Message 4 of 11
(3,873 Views)

Oops, my response was for a control, not an indicator. 

aputman
0 Kudos
Message 5 of 11
(3,868 Views)

Messed up as it is, here is what I am working on. Smiley Embarassed

0 Kudos
Message 6 of 11
(3,857 Views)

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.

0 Kudos
Message 7 of 11
(3,844 Views)

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.

0 Kudos
Message 8 of 11
(3,826 Views)

Not exactly sure how to do that :manembarrassed:

0 Kudos
Message 9 of 11
(3,817 Views)

How are you trying to display the data?  Chart?  Single Numeric?  There are different approaches I would do based on this answer.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 10 of 11
(3,802 Views)