LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to add GetValueByPointer XNode in LabVIEW Application

Hi,

 

How can I add "getvaluebypointer.xnode" file that I use in labview and subvi to .lvproject (labview project file)?
In LabVIEW, how can I specify this in a support directory, also called a resource?

0 Kudos
Message 1 of 9
(1,673 Views)

An XNode is purely an editor related function.  It uses scripting to help do things in the IDE and doesn't have any real use in a built application.  When you interact with an XNode in the IDE it generates code.  That generated code is brought into the application because it is needed.  But the XNode itself serves no purpose, and can't be used in the runtime environment, since it doesn't include scripting.

 

That being said why are you trying to do this?

0 Kudos
Message 2 of 9
(1,667 Views)

Hi,

The subvi I'm currently working with has GetValueByPointer.xnode. It's a subvi that works fine, but I need to make it an app, but I'm getting an error in that part of the project file. I need to fix this urgently. Do you have a solution to help?

0 Kudos
Message 3 of 9
(1,658 Views)

You aren't giving enough details.  What error?  Does the error remain if you replace the XNode with the equivalent G Code?  Again the XNode isn't doing anything that you can't do yourself, it just makes using the IDE easier.

0 Kudos
Message 4 of 9
(1,646 Views)

@iErd wrote:

Hi,

The subvi I'm currently working with has GetValueByPointer.xnode. It's a subvi that works fine, but I need to make it an app, but I'm getting an error in that part of the project file. I need to fix this urgently. Do you have a solution to help?


That Xnode isn't from NI.

If you send me the VI that contains the XNode, I can replace the instance of that XNode with the code that's hiding inside it.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 5 of 9
(1,621 Views)

Hİ,

I followed the error code below and the solution steps given by the NI regarding this error,

Error 7 occurred at Call Library Function Node
Possible reason(s):
LabVIEW: (Hex 0x7) File not found. The file might be in a different location or deleted. Use the command prompt or the file explorer to verify that the path is correct.
Now, this error does not come out, but when reading data from the array, a '0' value is constantly displayed.
now i sent subvi, what could be the reason for the error on it?
idilE_1-1651046460073.png

 


 

 
0 Kudos
Message 6 of 9
(1,599 Views)

That XNode is from NI and is a function in vi.lib. It makes use of a shared library (DLL) file and the LabVIEW application builder seems to fail to detect this dependency automatically. You need to add that DLL explicitly in the build specs to be added to the exe build.

I don’t have a PC available to check but there have been discussions about this on LavaG and while I prefer to replace the Xnode through my own Call Library Nodes, adding that shared library to the build spec is much quicker and easier.

 

I believe the shared library resides in the resource directory inside the LabVIEW directory but don’t remember its name.

Rolf Kalbermatter
My Blog
0 Kudos
Message 7 of 9
(1,592 Views)
0 Kudos
Message 8 of 9
(1,577 Views)

Try replacing it with this.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 9 of 9
(1,564 Views)