Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA Write TCP/IP port problem

I want to send a command to the instrument using VISA WRITE modul (TCP/IP port).I am not sure how to send the command using VISA. I have to send two numbers 10 as U8(1 byte) and etc. 25.5 as DBL (8 byte) as one string. Which format suppose to be that string HEX, binary or ASCII and how to create one string from the two numbers which is ready to be sent to VISA write? Could you please create an example which will show me how to solve problem. I tried to use Active talk example and everything is fine with reading but when i try to send some strings (write down a string into Input line)i got error1. Apparentlly again syntax problem. Could you please give me an example string which i can send by Active talk.
Thanks in advance
0 Kudos
Message 1 of 2
(3,368 Views)
Hi,

From your description it seems that you're having having problems with the string formatting.

You can find the string handling VIs in the String sub-pallete. A very useful VI to format complex strings is the "Format into string.vi".

LabVIEW comes with a few string handling examples. If you're using LabVIEW 6.1, you can go to Find examples and search for "string".

You can also check the LabVIEW support site:

http://www.ni.com/support/lvsupp.htm

DiegoF.
0 Kudos
Message 2 of 2
(3,368 Views)