Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 67224

How to use replace invoke node on a typedef constant inside a typedef cluster in VI scripting?

$
0
0

Hi,

 

I want to write a program to rename every element on my blockck diagram. I had difficulty when rename a typedef inside a typedef cluster. 

for example, I have a target VI contains only one constant in its BD. The constant is a cluster. It has only one element: a typedef string constant with a name tst1 String 1.ctrl.

My plan was to create a copy of the string typedef with a different name, tst2 String 1.ctrl, and use the "replace" to replace tst1 String 1.ctrl.

change constant.png

 

 

The same code works if the cluster is not a typedef. However, I got an error from the replace invoke node when the cluster is a typedef.

It seems that it does allow me to replace it since it is an element of a type def. 

Is there any way I can achieve what I want, even when there is type def inside type def?

 

The target VI and the VI script VI are in the attached zip file.

 

Thanks in advance,

 


Viewing all articles
Browse latest Browse all 67224

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>