LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help with Set Control Value, Control Name

Hello,

 

I am having a rather difficult time getting the Set Control Value function to work with the involke node. I am just trying to get the basic functionality out of it, but it seems not matter what I wire to the 'Control Name', I always get an ERR1.

 

Specifically, "Invoke Node in event1.vi<APPEND>
Method Name: <b>Control Value:Set [Flattened]</b>

"X" not found"

 

I don't know why this is the case. I have been trying to follow the examples, but nothing seems to work. I also noticed that with LabVIEW 8.6, the Set Control Value has changed quite a bit. Unlike previous versions, there is no longer a Type Descriptor or Flattened Data terminal. Instead, only Value (variant) and Control Name. I guess I need a better description on how Control Name works. I have no idea how to use it.

 

 

Download All
0 Kudos
Message 1 of 5
(2,946 Views)

Hi Newbie217,

try the attached example please. Make also sure, that the path to your vi is correct and connect the error from "Open VI Reference" the invoke node.

 

Mike

0 Kudos
Message 2 of 5
(2,936 Views)

If you use just the name of the VI then you must use a string constant rather than a path constant, and the assumption is that the VI is already in memory. A path constant indicates that the VI may or may not be in memory, but you must specify a full path to the VI.

 

Side-note: The picture you tried to embed in your message is linked to an image on your computer, so it cannot be viewed. To embed a picture you must first post the message with the image attached, then go back and edit the message. This will allow you to get the links for the pictures which are relative to the NI servers, not your computer. 

Message Edited by smercurio_fc on 09-06-2008 09:15 AM
0 Kudos
Message 3 of 5
(2,921 Views)

...adding to the above...

 

 

 

Does the tareget VI have a control labeld "String"? I just had that error yesterday and it was due to me specifying the wrong name.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 5
(2,915 Views)
Yes, the reason I was getting the error was because the target had a control named "string" and did not match the "String" specified in the first VI. Silly mistake, and something I should have caught earlier 😃 Thanks for the help!
0 Kudos
Message 5 of 5
(2,897 Views)