LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

simulink and LABview TCP/IP communication

I put it to -1 to wait indefinetly 
in the error wire nothing is displayed 
and I did not understand your two last questions 

0 Kudos
Message 11 of 24
(1,405 Views)

How does the simulink code for receiving data look like? 

What is the TCP send block settings?  

 

Can you show us the vi runing with probes? 

 

You could make LabVIEW the server, and then simulink will connect to LabVIEW and send data. 
Right now I don't think LabVIEW is connecting to any server 

0 Kudos
Message 12 of 24
(1,401 Views)

I put some probes and I want to ask why in the adress wire it is mentioned not executed 
I attached the capture 

0 Kudos
Message 13 of 24
(1,401 Views)

Can you place a probe on the error wires before and after TCP Read? 

 

I don't know why it is not executed. 

0 Kudos
Message 14 of 24
(1,397 Views)

this is what you asked for 

0 Kudos
Message 15 of 24
(1,392 Views)

I want to ask you how to make labview a server ? 

0 Kudos
Message 16 of 24
(1,388 Views)

One question, when are you placing the probes, before or after you start runing the vi? 

I can't understand why number 13 is not executed, but number 14 is. 

 

An example of a server in LabVIEW, you can just look at the TCP server example that comes with LabVIEW.

0 Kudos
Message 17 of 24
(1,383 Views)

I place the probes after runnig.
I want to tell you that when I send the information from labview to simulink it works . 
But the problem is from simulink to labview.

0 Kudos
Message 18 of 24
(1,370 Views)

Hi Rhmkchw,

 

Part of why you are not seeing errors is because you have the timeout set to -1, this will wait indefinitely. Normally, there is a timeout after a default amount of time that will throw an error. I would change your timeout to something like 5 seconds, the error you should be seeing is Error -56 which is a timeout error. This means that LabVIEW is not connecting with Simulink at all. You can change the timeout back to -1 after, I'd just like to verify that the connection is timing out and that the correct errors are being thrown.

 

I know we mentioned adding rules to the Windows Firewall earlier, have you tried turning the Firewall off completely?

 

Best,

Chris D. | Applications Engineer | National Instruments

0 Kudos
Message 19 of 24
(1,349 Views)

hello , 
I changed the time out like you said and I got the error 65 
this is a screenshot of the running system
And for the firewall it is disabled in my computer

0 Kudos
Message 20 of 24
(1,340 Views)