Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Termination character finding problem

 

Great answer.

 

Please tell me that which I have to add 0XA, 10, /n????

 

Coming data is in acsii??????/

 

0 Kudos
Message 31 of 36
(4,721 Views)

Haris115 wrote:

Please tell me that which I have to add 0XA, 10, /n????


If you are using a C compiler, use "\n".  That is a special character in C to designate a new line.

 

 


Haris115 wrote:

Coming data is in acsii??????/


Data coming from where?  You told us that the data from the instrument is binary.  You are making a special converter to change it to ASCII.  That is what you told us.  Is that information not correct?


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 32 of 36
(4,715 Views)

yes my statment is correct.

 

Data that run seven segment display is in bits and I make a converter that convert bits that run 7-segment display to ASCII

0 Kudos
Message 33 of 36
(4,710 Views)
Since your inability to append a termination character and even your inability to understand what a termination character is, is solely Ann issue with the firmware of your hardware, you need to take your questions elsewhere. There is no LabVIEW problem or NI hardware problem. Find a c forum for help in understanding how to write the firmware. Move on and mark the thread as solved.
Message 34 of 36
(4,700 Views)

Hellow I have one question after searching on website that

 

Using windows OS, we have to use both EOL and CR as termination character in Labview. that is \r\n

 

I am using windows 8.1 and want to add termination character in coming string. Either I have to add both of them or single linefeed will do work for termination caharcter.????

0 Kudos
Message 35 of 36
(4,673 Views)

Windows doesn't matter in this case.  VISA only uses 1 character for the termination character.  Just use the Line Feed.


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 36 of 36
(4,667 Views)