Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

I am trying to send positional data to an instrument over tcpip. It does not use visa protocol.

I am using tpcip to communicate with the device. I want to send positional data once a second. Using VISA is not an option. My earlier posting was not detailed enough to explain my dilemna. I open my tcpip connection and am trying to figure out how to get the string array to the device. Thanks in advance.
0 Kudos
Message 1 of 4
(3,398 Views)

You shouldn't have started a new thread. Responding to the original would have worked.

VISA does support TCP/IP but if you don't want to use it, replace the VISA Write I used in the example with TCP Write. The data you write in both cases is a string and if you wire your array outside the for loop, each call of the TCP Write or VISA Write will send one element of the array.

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

Thanks for your quick response but the data I am trying to send over tcpip is not all numeric it is a combination of both. Here is a snippet of it below. Sorry to start a new thread I don't get on here very ofter and didn't know the correct protocol.

START_TIME,24-OCT-2004 16:44:54,0 00:02:21
00:00:00,INIT_POS,v1_m1,33.7487,-118.035,16.97
AR
RU
00:00:00,mot,v1_m1,-2495192.9594000001,-4685876.5558000002,3523316.4575999998,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
00:00:00.100,mot,v1_m1,-2495192.9594000001,-4685876.5558000002,3523316.4575999998,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
00:00:00.200,mot,v1_m1,-2495192.9594000001,-4685876.5558000002,3523316.4575999998,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
00:00:00.300,mot,v1_m1,-2495192.9594000001,-4685876.5558000002,3523316.4575999998,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
00:00:00.400,mot,v1_m1,-2495192.9594000001,-4685876.5558000002,3523316.4575999998,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
00:00:00.500,mot,v1_m1,-2495192.9594000001,-4685876.5558000002,3523316.4575999998,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
00:00:00.600,mot,v1_m1,-2495192.9594000001,-4685876.5558000002,3523316.4575999998,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
00:00:00.700,mot,v1_m1,-2495192.9594000001,-4685876.5558000002,3523316.4575999998,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
00:00:00.800,mot,v1_m1,-2495192.9594000001,-4685876.5558000002,3523316.4575999998,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
00:00:00.900,mot,v1_m1,-2495192.9594000001,-4685876.5558000002,3523316.4575999998,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
00:00:01,mot,v1_m1,-2495192.9594000001,-4685876.5558000002,3523316.4575999998,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
00:00:01.100,mot,v1_m1,-2495192.9594000001,-4685876.5558000002,3523316.4575999998,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
00:00:01.200,mot,v1_m1,-2495192.9594000001,-4685876.5558000002,3523316.4575999998,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0

 

0 Kudos
Message 3 of 4
(3,379 Views)
No matter what the data is, you have to convert to strings if you use TCP Write or VISA Write. Is this what you are having trouble with? All of this can be done with the functions on your String palette. Look at what you can do with Format Into String, Array to Spreadsheet String, Concantanate Strings, etc. Which parts of the string are being created dynamically and which parts are always the same?
0 Kudos
Message 4 of 4
(3,374 Views)