LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to parse 2D array between sub VIs

Hi,
 
I am a new user of LabView.  I want to create different sub VIs which will be called by diffrent VIs.
 
My problem is to cretae a sub VIs with an n-D array as an ouput.  I can not find any array function in "Control Front Panel" to map this output.  So I try to use a "Variant" function for mapping.  And then in the VIs where sub VIS is called, I have probem to mapping this input "Variant" to a n-D array.
 
See attached files.
 
Questions:
1) Is it the correct way?  Is there other solution?
2) If "Variant" is the correct way, then how to map?
 
Thanks
Download All
0 Kudos
Message 1 of 4
(3,076 Views)
Hello titibena,

why don't you go the easy way: just use an array indicator?

Have a look at my changed example!

How to add an array control/indicator to the front panel:
1) from the controls palette -> array&cluster -> array
2) put numeric (or whatever you need) control/indicator inside this array
3) change dimension of array

Also easy...

Message Edited by GerdW on 10-27-2005 03:56 PM

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 4
(3,068 Views)
Thanks GerdW.  It fix my problem and help me to understand how to create an array in "Control Front Panel"
0 Kudos
Message 3 of 4
(3,051 Views)
An even easier way to create the front panel indicator would have been to right click on the output of the Build Array and select Create>IndicatorSmiley Happy.
0 Kudos
Message 4 of 4
(3,045 Views)