02-14-2017 05:04 AM
Thank you so much Now its working but
if I enter "123" in write buffer why it is executed continously like 123 123123 123.......... and even if i click on stop button it won't stop
02-14-2017 05:44 AM
Hi arun,
if I enter "123" in write buffer why it is executed continously like 123 123123 123
Because you send the "write buffer" in each iteration!?
and even if i click on stop button it won't stop
Read the manual of your device. It should contain all details of the communication protocol!
02-14-2017 06:38 AM
Yeah. Back in message 6 I told him there was no com port saved as default in the VISA control.
02-14-2017 06:39 AM
May be at that time i am unable to get what you told me ,
Thank you
02-14-2017 06:51 AM
It's important that if you don't understand something, reply back asking what we mean.
I'm glad you've got it working for you now.
02-14-2017 04:07 PM
@arun2929 wrote:
Hi Gredw
I know I am annoying you , But i am aBeginner ... I get same error even i create any VI on serial port please check the following attachment , i find that example in our forum even i execute that example i get the same problem
can you please edit that VI or suggest me any of your example for communicating over serial port
Thank you
Hello arun2929,
Don't fret over annoying people with your questions. It's very difficult, almost impossible, to become Knight of NI without being annoyed at beginners. I try to help out on forums where I can and of course, I am nowhere near the knowledge level of these guys. But even for me, I find myself getting annoyed at some of the questions being asked, even though I was in your beginner's shoes not too many years ago. My advice?
02-14-2017 10:34 PM
Thank you @aputman
I have few more doubts which is continuation to this Topic, can i ask here or else craete a separate discussion .??
02-15-2017 12:50 AM
Hi arun,
I have few more doubts which is continuation to this Topic, can i ask here or else craete a separate discussion .??
When it is related to the topic "serial communication with LabVIEW" you can stay in this thread.
When it is a different problem: create a new thread.
02-15-2017 12:58 AM
I have 2 doubts
1) please check the following attachment while executing that VI we have an error regarding session time mentioned in the screen shot
2) can we send text files over serial port ?? if yes how ..?
Thank you
02-15-2017 01:06 AM
Hi arun,
1. The device didn't answer to your request before the timeout…
In your VI you disabled the TermChar and try to read 31 bytes from your device.
Do you expect exactly 31 bytes (or more) as answer?
Does your device use a TermChar? If yes: why did you disable the TermChar?
2. You can send any string you like using the serial port. Infact the VISAWrite function uses a string as input!
Keep in mind: serial communication was never ment to transfer "files"! It was use to transfer commands and data clearly - both limited to reasonable length/datasize! So you might transfer your "text file" part by part…
(What kind of device are you using so you even want to transfer "text files"?)