From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
03-11-2014 01:12 PM
Solved! Go to Solution.
03-11-2014 01:27 PM
If they are integers, just use an equal comparison and a case structure. If they are floating point (e.g. DBL), all precautions of comparing floating point values apply.
03-11-2014 01:31 PM - edited 03-11-2014 01:32 PM
03-12-2014 02:01 AM
Thank you sir. I am trying it.
03-12-2014 02:11 AM
You could also simply use a select node and two string diagram constant.
03-12-2014 03:08 AM
Sir, my actual message did not posted clearly. I don't know why it happened. My actual message was like that -
I want to compare two numerics entered through numeric control a,b. If a=b then i want to see "RAM" , if a<b then i want to see "SHYAM" , if a>b then i want to see "JADU" in the indicator.in the front panel. I am using labView version 13.Thanks. Regards Supriyo
03-12-2014 03:32 AM - edited 03-12-2014 03:34 AM
Check the concept on this link Nested Case Structure.
03-12-2014 06:08 AM
@supriyasenapati wrote:
I want to compare two numerics entered through numeric control a,b. If a=b then i want to see "RAM" , if a<b then i want to see "SHYAM" , if a>b then i want to see "JADU" in the indicator.in the front panel.
In another thread, Christian suggested something that I really think would apply here. Subtract a and b and wire the result directly into a case structure selector terminal. Set the first case to be "..-1". This case will be for when a < b. The next case will be "0" (for a = b) and finally "1.." for a > b. Of course, this works best if using integers. When using doubles, then you might want to be more careful.
03-12-2014 06:13 AM - edited 03-12-2014 06:15 AM
@supriyasenapati wrote:
Sir, my actual message did not posted clearly. I don't know why it happened. My actual message was like that -
I want to compare two numerics entered through numeric control a,b. If a=b then i want to see "RAM" , if a<b then i want to see "SHYAM" , if a>b then i want to see "JADU" in the indicator.in the front panel. I am using labView version 13.Thanks.
Well, that's not that different. If this is giving you problems, you should probably start with some tutorials.
Try this:
This is cleaner than case structures, because a single image can show all code ;).
03-12-2014 07:01 AM
@supriyasenapati wrote:
Sir, my actual message did not posted clearly. I don't know why it happened. My actual message was like that -
I want to compare two numerics entered through numeric control a,b. If a=b then i want to see "RAM" , if a<b then i want to see "SHYAM" , if a>b then i want to see "JADU" in the indicator.in the front panel. I am using labView version 13.Thanks.
Most likely you pasted while in HTML Mode and stuff betweeen <> got stripped.
To reproduce, the paragraph above was pasted below while the edit window was set to HTML, so that's clearly what happened!
Sir, my actual message did not posted clearly. I don't know why it happened. My actual message was like that - I want to compare two numerics entered through numeric control a,b. If a=b then i want to see "RAM" , if ab then i want to see "JADU" in the indicator.in the front panel. I am using labView version 13.Thanks.