07-04-2022 08:19 AM - edited 07-04-2022 08:26 AM
hello this is not working, Im getting random values..
let me explain the my conditions again, there should be only 4 cases as i have only 4 conditions.
if
N< N1 then case 1 should execute,
if N> n1 and less than n2 then case 2 should execute,
If N>n1,n2 and less than n3 case 3 should execute,
If N>n1,n2,n3 last case 4 should execute.
inside the case im performing some mathematics operations.
07-04-2022 08:39 AM - edited 07-04-2022 08:41 AM
Hi new123,
@newmemeber123 wrote:
if
N< N1 then case 1 should execute,
if N> n1 and less than n2 then case 2 should execute,
If N>n1,n2 and less than n3 case 3 should execute,
If N>n1,n2,n3 last case 4 should execute.
Try this:
Keep in mind: LabVIEW (like any reasonable programming language) starts to count ranges at zero, so you get cases 0…3 (instead of 1…4) for 3 nx values…
07-04-2022 09:15 AM
its showing threshold error array with bad terminal i know why its showing like that. now all the values are scalar not array because i removed previous error i was using indexing tunnel not previous value thats why it was giving output as a array not scalar now its giving scalar.
is there any example if the values are scalar not an array?
07-04-2022 09:54 AM
if
N< N1 then case 0 should execute,
if N> n1 and less than n2 then case 1 should execute,
If N>n1,n2 and less than n3 case 2 should execute,
If N>n1,n2,n3 last case 3 should execute.
07-04-2022 10:11 AM - edited 07-04-2022 10:12 AM
Hi new123,
@newmemeber123 wrote:
is there any example if the values are scalar not an array?
Is it really this complicated to adapt my suggestion to your "only scalar values" requirement?
Really???
(Do you really need to post your requirement again in a new message?)
07-04-2022 06:16 PM
@newmemeber123 wrote:
its showing threshold error array with bad terminal i know why its showing like that. now all the values are scalar not array because i removed previous error i was using indexing tunnel not previous value thats why it was giving output as a array not scalar now its giving scalar.
is there any example if the values are scalar not an array?
The solution I posted earlier does exactly what you are asking. I don't see why you are struggling this much when several correct solutions have been posted.
07-05-2022 03:14 AM
its working now. thanks
best regards