LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Transmit data over Ethernet network.

Hello.

 

I'm a labview newbie and I'm facing serious difficulties with a labview homework I have to do for school.

 

Basically, I'm currently trying to build a single .vi program to do two separate things:

 

First it would have to simulate, in real time, the step response of a PID controlled process. For that I used the "control & simulation loop", inside "control design & simulation -> simulation", and it's working fine, I can change the controller parameters and see the results in real-time.

 

The second objective for this .vi, and that I've not been able to do, is to communicate as a server with another .vi which would be the client. It is suppose to use TCP/IP protocol to communicate between the two .vi's, and the server should be able to send the step response data (the data displayed in the graphs charts).

 

However it seems that I can't build while loops inside the simulation loop, neither use the response data outside the simulation loop...

I thought I could pull the data outside the simulation loop, and then push it inside a while loop for TCP write and then send it through Ethernet...

 

Please, I ask for some help with this. Could someone give me some lights or examples on how to do this ?

Thanks in advance.

 

PS: I attached the .vi file I'm working on to be easy to understand my issue.

0 Kudos
Message 1 of 2
(2,575 Views)

Hi,

 

Thank you for posting on NI forum.

 

I think you have to use your second solution (make pid and after transmit data).

To help you with TCP communication, use Labview examples.

Find example... >> Network >> TCP & UDP

 

Best regards,

Nicolas M.
National Instruments France


Journées Techniques LabVIEW 2012 : du 27 septembre au 22 novembre
2 sessions en parallèle : Débuter avec LabVIEW - Développer avec LabVIEW

0 Kudos
Message 2 of 2
(2,541 Views)