LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Case structure passes "0" at output

I am writting a routine that compares one U32 generated number to a U32 number stored in a shared variable.  If they are different I want to save the different number to the shared variable and exit (do nothing).  I don't want to resave the origional shared variable number.  
 
I am using a "NOT Equil To" to determine if the two numbers are different and a True/False case structure to route store or don't store the number to the Shared Variable. Everytime the routine runs a "0" for the same case passed to my Shared Variable resulting in a 0 stored. 
 
Is there a way to do a DO NOTHING in the case of a SAME NUMBER? 
 
0 Kudos
Message 1 of 3
(2,365 Views)


jeffc12003 wrote:
Is there a way to do a DO NOTHING in the case of a SAME NUMBER?


Place the code that writes to the shared variable inside the correct case of the case structure.
 
If this does not help, please show us your code. 🙂
0 Kudos
Message 2 of 3
(2,359 Views)
That did it.  Thanks very much. -jeff
0 Kudos
Message 3 of 3
(2,353 Views)