LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Doubts Regarding serial port communication in LabView

I have a VI which  communicates serial port RS 422, i have 3 problems here

1) Even the serial port is not connected , the data is tranferring but when we connect the port we got some lights at the USB port (which indicates tranferring of data ), I want an error message when port is not connected..

 

2) The data which we transferred  displayed in a  data box , i want to save that data in to a text file 

3) Is it possible to run timer while the data is transmiting and stops the timer when  the process is completed ..???

 

i attached my VI here please look and help me guys i am beginner 

 

Thank You

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

1. RS-422 has no way to know if something is connected on the other side of the cable.  If you expect a response, you can use that to determine if you should keep sending data.

 

2. Look in the File IO pallette.  There are plenty of functions there for saving to a file.  In particular, look at Write To Text File.

 

3. If you write the data in chunks, you can use the Elasped Time express VI to see if enough time has passed on stop your write loop.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 4
(2,474 Views)

1) I set my serial port as loop back so i receive what i send

 

2) Take  a look on my vi.  i tried what you said from  pallette and link it with various places but it doesnt give the correct way to save the file  

 

3) I am a beginner can i know how to write the in chunks 

0 Kudos
Message 3 of 4
(2,466 Views)


 

3) I am a beginner can i know how to write the in chunks 


You see those links at the top of the forum? You should go through some tutorials, even better if you take the Core 1-2 online trainings. You will see, some learning will be a huge help...

0 Kudos
Message 4 of 4
(2,460 Views)