09-11-2007 04:02 AM
09-11-2007 04:20 AM
09-11-2007 04:28 AM
@Meenatchi wrote:
The problem is, when the case is negative value, I don't want it to do anything. But, the case output needs to be wired for all cases. Is there a way around this using a different method?
You can use the option "Use Default if Unwired" for the cases for which you dont want to do anything.
But beware that they will output the default FP control values for those cases.
If you want to keep the last updated value to stay, wire a shift register to the For loop thro' all the cases.
See the attached VI & pic for more...
What version of LV re you using ?
I think prior to 6.1, you wont ve the "Use Default if Unwired" option at all; you ve to compulsorily wire for all the cases...
09-12-2007 06:00 AM
09-12-2007 06:18 AM
09-12-2007 06:21 AM
09-12-2007 06:37 AM
Hi Meenatchi,
I just scribbled the code to change a little.
Maybe your application can be large.
So, what you ve to do is check all the conditions for updation [ compound OR or compound AND ], and then do it inside the True case.
Else, DO NOTHING inside the False case... thats it...
09-12-2007 11:11 AM - edited 09-12-2007 11:11 AM
First of all, you problem is incomplete, because you don't define what should happen if the numeric is zero or >2. You need to define all possible conditions.
Attached is a simple version that updates a cluster with new values if a numeric in it is 1 or 2. See if it makes sense to you. (LabVIEW 8.0)
Message Edited by altenbach on 09-12-2007 09:12 AM