12-26-2017 01:35 AM
Hello,
I need help with comunication between the RT Target and Host. I don't understand well how to do this, and I wish knew how to do. Could anyone show me a simple example program to understand it please?
I have already see the NI formation and i have looked for examples in web but i don't understand clearily.
Thanks so much
12-26-2017 03:17 AM
Hi Christina,
There are multiple methods to communicate between an RT target and a client/host pc. viz..
if you are developing a relatively less complex or simple project or is just getting started , you could use shared variables.
There are examples for shared variables in Labview example finder. one such example is
C:\Program Files (x86)\National Instruments\LabVIEW 2016\examples\Data Communication\Shared Variable\Shared Variable.lvproj
For more complex systems i would prefer using TCP or UDP.
cristina.lopez wrote:I have already see the NI formation and i have looked for examples in web but i don't understand clearily.
which part are you finding it difficult to understand?
Regards
Deepu
12-26-2017 03:24 AM
I have readen about
but i don't understand well when to use one or other solution.
I'm going to see the examples that you said me.
12-26-2017 04:03 AM
refer this one for network streams
C:\Program Files (x86)\National Instruments\LabVIEW 2016\examples\Data Communication\Network Stream\Network Streams.lvproj
12-26-2017 07:41 AM
Here is a Good Rule of Thumb (arrived at from a few years of experience with LabVIEW RealTime using a PXI system -- Your Milage May Vary if you are using a different RT Platform) --
Within the last few months, there have been several posts about Network Streams on this Forum (I've contributed to several). I believe there may be some example code out there ...
Bob Schor
12-27-2017 06:48 AM
@cristina.lopez wrote:
I have readen about
- network shared variables,
- network streams
but i don't understand well when to use one or other solution.
I'm going to see the examples that you said me.
Use shared variables when you don't care about every value. If the most recent value is good enough, great.
Use network streams if you have a need for one to one messaging. For each message sent, it is received exactly once by the recipient.
12-27-2017 12:16 PM
If you have money I suggest using DDS for LabVIEW from RTI
https://www.rti.com/products/dds/labview
This is an excellent third party add on, and can handle just about any-type of data exchange needs you can imagine.
In many cases the money you pay for the license will be cheaper than any type of time you would place into creating your own solution.