LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Scripting - Array Constant

Solved!
Go to solution

Hello,

 

I am familiar with LabVIEW and have been fumbling my way through scripting in order to develop a few vis that need to be dynamic.  I am attempting to generate an array constant in the block diagram.  So far I have gotten closest with the following:

NI_User_11108_0-1683307627123.png

The problem is that when generated the array is empty and does not contain my test of string elements (a, b, c).  This is the outcome:

NI_User_11108_1-1683307835649.png

Any feedback as to why the created vi is empty would be appreciated.

 

Lastly, a more general question.  Working with scripting has been a bit of a trial-and-error situation.  Is there any documentation available that might help learn this?  Thanks.

0 Kudos
Message 1 of 3
(920 Views)
Solution
Accepted by topic author NI_User_11108

I ended up getting this working with the following, which makes sense since I couldn't assign the value prior to the type:

NI_User_11108_0-1683312054593.png

 

My question still remains on any scripting material.  Thanks.

0 Kudos
Message 2 of 3
(900 Views)

@NI_User_11108 wrote:

I ended up getting this working with the following, which makes sense since I couldn't assign the value prior to the type:

NI_User_11108_0-1683312054593.png

 

My question still remains on any scripting material.  Thanks.


Good that you find the answer, just sharing my old module.

 

ArrayScripting.png

 

You can find few basic documentation here- VI Scripting - NI , also you can find more such modules in NI Examples (Scripting).

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
Message 3 of 3
(871 Views)