Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Community
Community
Notifications
close
  • Forums
  • Knowledge Center
  • Events & Webinars
  • Ideas
  • Blogs
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Sustainability
Sustainability

Join our "Ask Me About" community webinar on May 20th at 9 AM CET and 5 PM CET to explore cybersecurity and monitoring for Data Center and edge IT. Learn about market trends, cutting-edge technologies, and best practices from industry experts.
Register and secure your Critical IT infrastructure

Can I create a variant data container that contains a cluster of data types?

Industry Automation and Control Forum

This forum is addressing industrial automation design & engineering, operations, asset performance, cyber security and digital transformation for Plants & Machines.

cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Schneider Electric Community
  • Industrial Automation
  • Industry Automation and Control Forum
  • Can I create a variant data container that contains a cluster of data types?
Options
  • Subscribe to RSS Feed
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Experts
User Count
Bastian_Schmitz
Admiral Bastian_Schmitz Admiral
32
LeTomas
Lt. Commander LeTomas Lt. Commander
11
RoozeeR
Lt. Commander RoozeeR Lt. Commander
6
JerryBartlemay
Lieutenant JG JerryBartlemay Lieutenant JG
6
View All

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Back to Industry Automation and Control Forum
Yelper85
Ensign Yelper85
Ensign

Posted: ‎2024-08-15 08:47 AM

0 Likes
2
422
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2024-08-15 08:47 AM

Can I create a variant data container that contains a cluster of data types?

Hi all,

 

I'm a LabVIEW programmer and one of the elegant things you can do is use a variant data class to pass a cluster of objects of different data types. The beauty of this is it acts like Object Orientated Programming and allows you to pass any data with a message, so at the other end of the comms the data knows where to go, it's data type for conversion, and what to do with the data.

 

So for instance, I can pass a message that says 'Log Event Data' with a cluster of data that includes say a Boolean array, a numeric, and a string which all get thrown into the variant object. On the other end the message dictates what the main function is and the cluster information is used to 'unpack' the data which then gets fed into another function, in this case logging  event data and uses the data to determine the file write.

I want to know if something similar can be designed in Machine Expert? I've seen some code whereby a new variable is created and seems to contain an arbitrary amount of attributes which seems similar to a cluster, so for example if the main variable (the cluster name in the LabVIEW environment) is called Log Data, the entire variable looks something like: Log Data (Status, Bool; Message, String; Count, INT;)

Obviously the above is wrong, I know that, but does the principle of creating such a variable exist and if so, what does the specific syntax look like?

Many thanks in advance,

Mitch.

Labels
  • Labels:
  • Smart Design & Engineering
  • Tags:
  • english
Reply

Link copied. Please paste this link to share this article on your social media post.

  • All forum topics
  • Previous Topic
  • Next Topic
Replies 2
Bastian_Schmitz
Admiral Bastian_Schmitz Admiral
Admiral

Posted: ‎2024-08-19 02:46 PM

0 Likes
1
377
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2024-08-19 02:46 PM

If you use Machine Expert (not Machine Expert Basic, and not Machine Expert HVAC) the software support object orient programming. If you want to use different datattypes in one variable you could creat a structure. 

Reply

Link copied. Please paste this link to share this article on your social media post.

Yelper85
Ensign Yelper85
Ensign

Posted: ‎2024-08-22 02:12 AM

In response to Bastian_Schmitz
0 Likes
0
354
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2024-08-22 02:12 AM

Hi @Bastian_Schmitz,

 

Could you provide clarification on what the variable structure/syntax would look like? 

 

Cheers

 

Mitch

Reply

Link copied. Please paste this link to share this article on your social media post.

Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

 
To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2025 Schneider Electric

This is a heading

With achievable small steps, users progress and continually feel satisfaction in task accomplishment.

Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.

of