Jump to content

write three different values in serial buffer using case structure according to comparison value


Recommended Posts

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?

Link to comment

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 by infinitenothing
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.