Hello,

I am new to LabVIEW and my questions would be obvious for some for you. So please help if you know the solution.

This is for my school project. For your information, we need to program an Altera DE2 board to control the traffic lights (something like that) and at the same time, the board transmits the states of the lights to a computer with LabVIEW installed via RS-232 cable.

The rest of the project was going well except for the LabVIEW part because as I said earlier, I am new to LabVIEW.

We are using the 'Basic Serial Write and Read.vi' provided in the NI examples folder. The problem is that we don't know how to modify the vi in order to receive continuously the data coming form the DE2 board. Each time, the vi stops to read after it received 24 bytes of data.

Thus, the first question is:
1.) How to read continuously from the RS-232 port? (We tried to use 'while loop' but with no success, maybe we were doing it the wrong way.) If you know the solution, please shed some light for us in a detailed manner.


JLCPCB – Prototype 10 PCBs for $2 (For Any Color)

China’s Largest PCB Prototype Enterprise, 600,000+ Customers & 10,000+ Online Orders Daily
How to Get PCB Cash Coupon from JLCPCB: https://bit.ly/2GMCH9w

Syed Zain Nasir

I am Syed Zain Nasir, the founder of <a href=https://www.TheEngineeringProjects.com/>The Engineering Projects</a> (TEP). I am a programmer since 2009 before that I just search things, make small projects and now I am sharing my knowledge through this platform.I also work as a freelancer and did many projects related to programming and electrical circuitry. <a href=https://plus.google.com/+SyedZainNasir/>My Google Profile+</a>

Share
Published by
Syed Zain Nasir