From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
08-24-2012 08:37 AM
hello,
i want to send data periodically from a host to realtime targets via network streams. the data types delivered by the host are unfortunatly not scalar but rather: a cluster of enums, a cluster of different elements and two arrays of clusters. i was wondering if it works to have multiple streams (4 parallel streams) doing the job?
thanks in advance
Solved! Go to Solution.
08-24-2012 09:43 AM
Network streams will accept any data type.
08-24-2012 10:27 AM
08-24-2012 10:43 AM
thanks for the reply. but what about parallel streams? is it possible to establish multiple network streams (write) from the host to the same real time target?
08-24-2012 11:03 AM
Yes, streams are named pipes. As long as each device provides an end point for the stream you can have multiple streams.
08-24-2012 01:50 PM
Hi Labviewette,
As others have said, you *can* set up multiple streams for each data type if you want.
However, there is overhead that comes along with this and what happens if you need to add more data types?
How many streams will you end up needing?
I prefer to use one stream for writing and one for reading from the RT target.
The streams are configured as an array of 2 strings.
The first string defines the data type.
The second string is the desired data flattened to a string.
When data is received, just check the first string and feed it to a case statement where the data (from the second string) is "unflattened".
This method has less network overhead and is extensible.
steve