LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

the readings are not changing

hello. im still new to this software and facing a problem which is the readings from my arduino are remain the same every sec. please help me. thank you 🙂

0 Kudos
Message 1 of 3
(2,536 Views)

Please do a Save For Previous Version and save back to LV 2015 or 2014.  Not everyone has 2016 yet.

0 Kudos
Message 2 of 3
(2,510 Views)

You've (properly) set up VISA so that it reads up to a Termination Character, which defaults to \n, <LineFeed>.  When you do this, the best way to do VISA Reads is to ask VISA to read 1024 (or some other "too large" number of) bytes.  Now, if you want, you can use Bytes Read and process all the bytes all at once.  Alternatively, if you are reading a string, you can parse the string however it is appropriate using the String functions.

 

Something you should always do when starting with a new piece of LabVIEW Hardware is to open MAX and use it to "play" with your hardware so you are sure you know how to do I/O.  So for a VISA port, you'd do a Read and see what comes back.  A good way to check that you have the Baud rate, parity, termination character, etc.

 

Bob Schor

0 Kudos
Message 3 of 3
(2,507 Views)