LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Number reader, email sender, should be simple fix

Hi!

 

I have been slaving away at labview, but I seem to be missing something... I have two things going on the first thing is I have an arduino plugged into COM1 and it is supposed to be delivering numerical values between 0 and 1000. I had this part working earlier, but now I can't seem to get it to display a value other than 0. Also, I am trying to use the email sender example, but instead of a thermomenter I want to use my values from my arduino and when it reaches a value over 600 I want it to send the email. Everything should be working fine except where I highlighted in yellow, if you can help in anaway I would very much apperciate it! If you need further details, feel free to ask!

 

THANKS

Download All
0 Kudos
Message 1 of 2
(2,265 Views)

As you seem to have guessed, running a wire between the two while loops will not work as you want.  If it's not clear why, try running your code with execution highlighting (the "light bulb" icon in the toolbar).  No values pass out of a while loop until that loop terminates, so in your code, one loop has to finish before the other one starts (because a loop won't start running until there are values at all its inputs).  You could use a queue instead to pass data between the two loops.

0 Kudos
Message 2 of 2
(2,255 Views)