LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial port - interrupt

Solved!
Go to solution
Solution
Accepted by topic author pedrogomes24

You've got several issues.

 

Your have an outer while loop that serves no purpose as it duplicates the inner while loop.

You are configuring the serial port over and over again every iteration.  That should be done once when the program starts.

Do you ever need to read and responses from the serial port?

Labels should always be shown with the terminals on the block diagram.  You can hide them on the front panel if needed.

 

Sit down with a piece of paper and write out what steps you want your program to do.

 

Here is a cleaner version of the same code.

Message 11 of 13
(576 Views)
Thank you so much,
I don't think I would ever make it.

Yes, this is my next problem, reading different variables on the serial port at the same time!
That is, I want to send and receive variables at the same time.

 

0 Kudos
Message 12 of 13
(573 Views)

It seems like you have very little experience with serial communication concepts.

 

I suggest you look at Crossrulz' VIweek presentation

0 Kudos
Message 13 of 13
(568 Views)