QUIZ - Are you using arrays in your VI? Do you need sequences?

3 posts / 0 new
Last post
sara's picture
Offline
Last seen: 1 year 11 months ago
Joined: 01/16/2013
Posts: 128
QUIZ - Are you using arrays in your VI? Do you need sequences?

Hi LabVIEW developers,

We are working on the next version of the RTI DDS Toolkit and we would like your feedback!!

Currently, LabVIEW arrays are mapped as DDS arrays. We are considering replacing DDS arrays by DDS sequences. Sequences can be initialized to a length of 0 and then be resized as needed. Pretty much as LabVIEW arrays! The behavior will be something like this:

  • Create Reader/Writer subVI: As input in the data pin, you will need to attach an array as big as your longest array, i.e. establish your max_length. No change so far.
  • Read/Write subVI: You could attach an array of any length. This will get ride of the "Type Code Incorrect" error

The downside is this will break backward compatibility.

What do you think? How much would this affect  to your applications? Add your comments below or send us an email to labview AT rti.com.

Thanks for your answers!!

Sara

Organization:
Offline
Last seen: 9 years 1 month ago
Joined: 08/12/2015
Posts: 10

I need to implement the following IDL sequence The RTI Labview guide suggests using a LV array to build the sequence, is that still the best nethod?

truct umfnumEType::Sc85_ecgEType{
    umfnumEType::Ef44_sourceEType source;    //@ID 0
    octet index;    //@ID 1
    umfnumEType::Se03_numEType num;    //@ID 2
};
//@Extensibility EXTENSIBLE_EXTENSIBILITY

struct umfnumEType::Sb28_paramsEType{
    sequence<umfnumEType::Sc85_ecgEType,3> ecg;    //@ID 0
};
//@Extensibility EXTENSIBLE_EXTENSIBILITY

Offline
Last seen: 1 hour 54 min ago
Joined: 04/23/2014
Posts: 58

Hello Bruce,

By default, the LabVIEW arrays are mapped as sequences, altough you can force it to use arrays by enabling the Advanced Configuration flag: forceArrayMapping. However, in your case, the array of clusters is not currently supported by the LabVIEW toolkit.

Thanks,

Angel.