LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

read a tcpip response before writing again

I need a suggestion for reading a response from a TCPIP command before writing again.Each of the following are commands. Each of the comands gives a response but when I create a file for labview to write and then read the response, it only does one and quits. I tried just putting it in an array, through a for loop etc. I just can't get a response from each command.I just need a suggestion.

SC,C:\Program Files(x86)Aircraft)_Example.scn

RU

0 00:00:10,EN,1,1

 

0 Kudos
Message 1 of 5
(2,444 Views)

What port are you using?  What are you talking to?  I have some code that communicates with an Omega temperature controller and port 1000 is of the nature that the iServer will control (& close) the connection.  My notes indicate that port 1000 in general works this way but I'm not 100% sure.  I ended up using port 1000 because that's what the device wanted.  Maybe there's a timeout too.  How much time is there between requests for info?

 

Albert

 

0 Kudos
Message 2 of 5
(2,439 Views)

My port is 15650. I am communicationg with the software. Their is a local utility on the same machine that can read the command and operates correctly but when I try to communicate with a different machine I can't get my file to operate correctly. Example: I send

RU

0 00:00:10,EN,1,1

The following two commands mean run the scenario and the second command means end the scenario after 10 seconds and rewind.

 

 

0 Kudos
Message 3 of 5
(2,437 Views)

Hopefully someone who knows more about this can help.  My only recommendatios at this point is to get sample code or maybe reopen the connection for every request even though it sounds ugly.

 

Albert

 

0 Kudos
Message 4 of 5
(2,435 Views)

Without seeing your code it is virtually impossible to solve your issue. You really need to post what you have written so far so we can see what the issue is.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 5 of 5
(2,420 Views)