From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Termination Characters in NI-VISA

I want to set "\r\n" termination character together in NI VISA.
I already know How to set \r independently and \n independently  as  termination character.

I already tried solution given in following link. Here I am able to set the value 5 but it still does not work.
http://digital.ni.com/public.nsf/allkb/862567530005F09C862565BE005AB500

 

best regards

0 Kudos
Message 1 of 4
(3,185 Views)

Why don't you just append those characters to the command string that you're sending?

 

Oh, and please stop asking the same question in different ways, creating new threads. This is very annoying. Original thread: http://forums.ni.com/t5/Instrument-Control-GPIB-Serial/VISA-settable-attraibutes-integer-values/td-p...

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

Please understand that a termination character is not more than one character, so what you are trying is impossible this way.

But as smercurio points out: easy in LabVIEW stringhandling.

greetings from the Netherlands
0 Kudos
Message 3 of 4
(3,143 Views)

Hi  

Thanks for taking time to answer.

 

You commented: "Why don't you just append those characters to the command string that you're sending?"

This is because I am required (and want) to keep my UI out of hurdle of sending it each time thoughout its life.

It must initially set it once on the driver. Then UI and commands should forget about it.

 

You commented: "Oh, and please stop asking the same question in different ways, creating new threads. This is very annoying. Original thread: http://forums.ni.com/t5/Instrument-Control-GPIB-Serial/VISA-settable-attraibutes-integer-values/td-p..."

 

I agree that same question (if already answered in older post) will annoy to the reader. However the question I am asking (again) in this post, was pusehd to a lower priority in other post (the one with multiple questions). I still was looking for the answer to this subset of the original post. Here I must say that Dennis was very kind to answer other key parts of the post.

 

I thought all questions are interrelated related, but may be I can try segmentation, to keep questions small and simple.

 

Thanks again.

bes regards

 

 

0 Kudos
Message 4 of 4
(3,105 Views)