02-18-2017 04:51 AM
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
02-18-2017 06:10 AM
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.
02-18-2017 06:25 AM
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
02-18-2017 07:12 AM
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...