rushin Posted May 11, 2015 Report Share Posted May 11, 2015 here i have uploaded VI file. here i am changing amplitude according to slider.wave is displayed on graph.if ampltude is greater than 0.6 then LED on.and case structure write 1 in buffer. if amplitude is less than 0.6 v than case structure write 0 in buffer. now i want to like that if my amplitude is between 0.2 to -0.2. then led on and it will write 2 in buffer. how can we do that??. can you help me? Quote Link to comment
infinitenothing Posted May 11, 2015 Report Share Posted May 11, 2015 (edited) I don't think you attached code as you had intended but have you considered putting a case structure in your <0.6 case that would trigger in a range. You could use the "In Range and Coerce" function and wire the "In Range?" output to the inner case selector. Edited May 11, 2015 by infinitenothing Quote Link to comment
crossrulz Posted May 12, 2015 Report Share Posted May 12, 2015 I would multiply by 10 and then wire the result directly into the case selector. You can then make ranges and proceed as needed in each case. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.