09-06-2008 01:55 AM
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.
09-06-2008 02:08 AM
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
09-06-2008 09:13 AM - edited 09-06-2008 09:15 AM
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.
09-06-2008 09:19 AM
...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
09-06-2008 01:02 PM