Keys location within Clusters

6 posts / 0 new
Last post
johnk's picture
Offline
Last seen: 9 years 8 months ago
Joined: 09/10/2013
Posts: 4
Keys location within Clusters
sara's picture
Offline
Last seen: 1 week 6 days ago
Joined: 01/16/2013
Posts: 128

Hi JohnK!

I've been able to reproduce it with the shipped examples. I'll take a look and give you more details about what's going on.

All the best,

Sara

sara's picture
Offline
Last seen: 1 week 6 days ago
Joined: 01/16/2013
Posts: 128

Hi again JohnK!

Sadly, this issue is related to the current limitation of one key in the RTI DDS Toolkit for LabVIEW. To make DDS understand that a field inside a structure is a key, you have to mark that struct as a key in the top level structure. So it would be something like:

struct InnerClusterType {
    int data; //@key    <-- If you want to mark this one as key...
}

InnerClusterType2 {
    int data;
}

ClusterType OuterCluster {
    InnerClusterType innerCluster; //@key    <-- ... you need to mark this one too.
    InnerClusterType2 innerCluster2;
}

As you can see, to define that you need to mark two fields as a key, something that it's currently not supported. We plan to support this soon (most likely next release). Once the new release is available, you will find the RFE code "LABPLG-17" into the "What's new" section of the Release Notes document.

If you need more information about the release or this is a priority for you, contact us and we'll work with you to make you successful :)

All the best,

Sara

Offline
Last seen: 3 years 2 months ago
Joined: 10/18/2013
Posts: 42

Are multiple keys supported in 5.1?

sara's picture
Offline
Last seen: 1 week 6 days ago
Joined: 01/16/2013
Posts: 128

Hi JayC,

We are currently working on a new version of the RTI DDS Toolkit for LabVIEW (version 1.1.0.x) that will be compatible with RTI Connext 5.1. This version will be released soon and will contain, among other improvements, the multiple key support.

Thanks,

Sara

sara's picture
Offline
Last seen: 1 week 6 days ago
Joined: 01/16/2013
Posts: 128

Hi again,

This problem has been fixed in the latest release of the RTI DDS Toolkit for LabVIEW (version 1.1.0.88), compatible with RTI Connext 5.1. In this release multiple keys can been provided to the Create subVIs. 

You can download the new version using the VIPM.

Thanks,

Sara