From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
07-04-2008 10:19 AM
07-04-2008 10:48 AM
Here's a nicer screenshot.
07-04-2008 10:49 AM
07-04-2008 11:02 AM
Hi, Will,
Not fully understand what you need, but you can get reference to array element by according property node:
but you will be not able to get array of refences of the elemenths, because you have only one.
For example: this code looks the same but will not work:
Andrey.
07-04-2008 11:10 AM
07-04-2008 12:18 PM
If the array processing has to be done in a sub-vi, then why not wire the string array directly to the corresponding string array control in the connector pane? no need for references, no need for locals..
Also, that's why I asked if a sub-vi is even needed.
R
07-04-2008 12:40 PM
07-04-2008 01:05 PM
WilliamLee wrote:
I would like to use the same subVI to modify a single string. Is there a way to create an array reference to a string.
Does the sub-vi already allos to modify a single element? or do you need to modify it?
Did you write the sub-vi or did you inherit it? Does it appear in other code?
Without considering thew sub-vi, can you describe what you would like to do with the string array, the element and the string that you'd like to change?
R
06-17-2009 01:37 AM
This "Index Vals" approach ONLY works if there is only one array element visibly on the Array control / Indicator.
Otherwise clicking on any array element besides the first one before running the VI will return false values.
Shane.
02-09-2010 12:38 PM
I tryed to get the reference of my arrays elements, but if i want to set the "IndexVal" property of my "(strict)array reference" i get the
Error:
"Error 1082 occurred at Property Node (arg 2) in recursiveTypecastToU08.vi:2->Conv_ArrU08ToCluster.vi->conv_ClusterToCluster.vi->DUT_Battery_SetShipmentmode.vi
Possible reason(s):
LabVIEW: Operation not valid for strict type definition instance.
Property Name: Index Values"
But WHY?
The reference:
Class name: Array
Control label: Data
Refnum (in hex): 0xC2A00088
Owning VI: Test.vi
Get a "MoreSpecific Class"-cast to array-class and then the error apears.
If i use it directly there is no "IndexValues"-conector.
Thanks for your help.