LabVIEW MathScript RT Module

cancel
Showing results for 
Search instead for 
Did you mean: 

how to feed a cluster into the mathscript?

Solved!
Go to solution

Hi all,

  I am trying to feed a cluster into the mathscript. I found that if the name of the cluster element does not have any space or special characters, it works pretty well. But it doesn't run if the name of the cluster elements have any special characters. Is it how Mathscript designed? Any workaround here?

0 Kudos
Message 1 of 3
(6,939 Views)
Solution
Accepted by topic author dragondriver

Hey dragondiver,

 

Hope you're doing well today. This document overviews the intended use and behavior of data types with MathScript.

 

Passing Data in and out of the MathScript Node (MathScript RT Module)

http://zone.ni.com/reference/en-XX/help/373123C-01/lvtextmathmain/ms_passing_data_lv_mathscript/

 

So, to answer your question more specifically, the rule for naming of elements within a cluster passed into the Node is,

 

"You must label individual elements of the cluster. Labels must start with an alphabetic character and can contain only alphanumeric characters and underscores without any spaces."

 

This should account for the behavior you're seeing with your code!

Tim A.
0 Kudos
Message 2 of 3
(6,906 Views)
0 Kudos
Message 3 of 3
(6,898 Views)