cancelar
Mostrando resultados para 
Pesquisar então 
Você quer dizer: 

compare two data

Resolvido!
Ir para a solução
Hi 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. Please suggest Best Regards Supriyo Senapati
0 Kudos
Mensagem 1 de 16
6.015Exibições

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.

Mensagem 2 de 16
6.005Exibições

Try something like this:

 

 

Baixar tudo
Mensagem 3 de 16
6.002Exibições

Thank you sir. I am trying it.

0 Kudos
Mensagem 4 de 16
5.945Exibições

You could also simply use a select node and two string diagram constant.

Mensagem 5 de 16
5.942Exibições

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

0 Kudos
Mensagem 6 de 16
5.935Exibições

Check the concept on this link Nested Case Structure.

 

Mensagem 7 de 16
5.919Exibições

@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.



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
Mensagem 8 de 16
5.888Exibições

@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 ;).

Baixar tudo
Mensagem 9 de 16
5.885Exibições
Solução
Aceita por supriyasenapati

@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.


 

Mensagem 10 de 16
5.872Exibições