LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Indicator control

Solved!
Go to solution
Hello all,
 
In my application i need to compare two values.one value is read using the visa read function and converted into a number.Other value is fixed.Now i was entering the second value and selected hide control property in the front panel.I want to give a fixed no: to the second value so that i can avoid the user entry for the second value.How to implement this?
 
Thanks & Regards
Techiess
0 Kudos
Message 1 of 12
(4,874 Views)
Hi Techiess,

why not simply use a block diagram constant? You find constants (pre-defined ones too...) in the math palette!
When using a control for this purpose don't forget to store the value by using "make current value default"!

Also note to mention: Don't forget the problems involved when trying to compare floating point values! Always use ">=" or "<=" instead of "="...


Message Edited by GerdW on 11-05-2007 01:23 PM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 12
(4,869 Views)
Solution
Accepted by topic author Techiess
Either what Gred has suggested
Or select that particular Control on frontpanel>>right click>>Data operations>>'Make current values default' will do
Message 3 of 12
(4,855 Views)
Thanks very much  GerdW  and  devchander

Again i want your help.Is  there any option in labview to display  two messages depending on O/P false or true?


Thanks & Regards
Techiess



0 Kudos
Message 4 of 12
(4,833 Views)
Hi Techiess,

maybe you want something like this:

A case structure may serve here well, too.


Message Edited by GerdW on 11-06-2007 09:11 AM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 5 of 12
(4,820 Views)


Hello GredW,

What is the use of Ring constant?

I saw a ring constant configured for rising and falling edges.For the rising they have set some value also.Could you please explain this?Is there any method such that we can decide the rising and falling edge positions?

Thanking in advance

Best Regards,

Techiess

"Untill and unless u try it , How do you say No"

0 Kudos
Message 6 of 12
(4,785 Views)
Hi Techiess,

what ring constant are you referring to?

a ring control/constant is similar to an enum: you can combine a text with a number. The difference is: in a ring the numbers don't have to be consecutive (as in an enum) and you can change the text&numbers in runtime (an enum is defined at development). On the frontpanel you can select one of the items of the ring and in the block diagram you will get the associated number...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 7 of 12
(4,783 Views)
Hello GredW,

Thanks for the help.Ring constant is such a wonderful option right?
I am attaching the Vi here.Please see the rising edge value in edit item property.
By changing that value can we change the start of rising edge.My question is how to get that value?


Best Regards,
Techiess

"Untill and unless u try it , How do you say No"
0 Kudos
Message 8 of 12
(4,777 Views)
Hi Techiess,

from my signature you can see that I can't open LV8.5 vi's Smiley Sad
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 9 of 12
(4,775 Views)

You've posted one of the shipping examples. What exactly do you not understand? The pulse width value is returned by the indicator called 'Measured Pulse Width (sec)' so I don't know what you mean by 'how to get that value'.

What type of DAQ board do you have and how do you have it wired? What is the pulse width you expect to measure?

This discussion of pulse width is pretty far from your original question. When changing subjects, it's better to start a new thread.

Message 10 of 12
(4,763 Views)