02-18-2014 10:15 AM
02-18-2014 10:46 AM
02-18-2014 11:02 AM
Can you tell me what will be ascii of 999.
Becuase last and max decimal shown by seven segment is 999. I think termination character will be good becuase I will get all data uptil 998.
Please tell me ascii of 999.
02-18-2014 11:13 AM
02-18-2014 11:23 AM
Okay how can I know about termination character from coming data in ASCI.
I am comunicating with device that shows maximum reading which is 999.
Now you have to tell how I will know and add termination character.
02-18-2014 11:32 AM
02-19-2014 10:39 AM
Please tell me that
1) How to find termination character in coming string If I don't know termination character.
2) Termination character will come at the end of each and every strings will be same or not. Or termination character will come once at end after whole string come.
02-19-2014 10:52 AM
02-19-2014 10:54 AM
@Haris115 wrote:
Please tell me that
1) How to find termination character in coming string If I don't know termination character.
2) Termination character will come at the end of each and every strings will be same or not. Or termination character will come once at end after whole string come.
I thought you said you were designing to communication protocol. So how is it that you don't know what the termination character is?
If you are dealing with an instrument and it uses a termination character, they tell you what that termination character is. The termination character is ALWAYS the same thing for that instrument. And the termination character is sent at the end of EVERY TRANSMISSION.
So, sine you said here that you are making your own hardware, you can define what the termination character is. You just need to make sure you add the termination character to the end of each transmission. To be consistant with 99% of the instruments out there, we are recommending you use the Line Feed character, which has a hex value of 0xA, a decimal value of 10. If working in a C compiler, it is the special "\n".
So for example, you need to send "999,500". What you really need to output is "999,500\n". Then the VISA Read will stop reading when it finds the line feel character and give you "999,500".
02-19-2014 11:12 AM - edited 02-19-2014 11:13 AM
Great answer.
I want to know that In my case I don't know amount of string come at labview. It might be hundred, thousand or more.
Now my question is that after reading hundred of string and at that time, termination character come and transmission will stop. How can strings after 100 will read because after 100 string might be depended on previous 100 strings.
I am confuse in that termination letter come at end of each sting or not????
Such as 99,400/n, next string, 23,455/n, 12345/n and so on or 99,400, 23,455,..........................................900987/n??????