Godpheray
-
Posts
4 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Downloads
Gallery
Posts posted by Godpheray
-
-
QUOTE(Tomi Maila @ Oct 30 2007, 01:34 AM)
Hi,I noticed that LabVIEW 8.5 ships an interesting XNode called GetValueByPointer.xnode under folder <vi.lib>\Utility\importsl\GetValueByPointer. Has anyone experience what is this node, how does it work and how should it be safely used?
Cheers,
Tomi
GetValueByPointer takes the C style pointer and the corresponding data type, which are generated by Import Shared Library Tool, as inputs and copies the value which the pointer points in shared library(dll/so/framework) to LabVIEW.
Input terminals:
Input Type: Input type is the LabVIEW data type to which you want to pass into LabVIEW. Input type can be Numeric, string, Array, Cluster . This VI returns an error if LabVIEW cannot convert the data wired to Pointer to the data type you wire to this input. If the data is integer, you can coerce the data to another numeric representation, such as an extended-precision, floating-point number.
Pointer: Pointer is a memory address represented by a 32-bit unsigned integer in LabVIEW.
Pack Type: Byte alignment information of the Input Type.
Output terminals:
Value:Value is the data copied from the memory which is pointed by Pointer and changed to the data type specified by Input type.
-
QUOTE(Tomi Maila @ Oct 30 2007, 01:34 AM)
Hi,I noticed that LabVIEW 8.5 ships an interesting XNode called GetValueByPointer.xnode under folder <vi.lib>\Utility\importsl\GetValueByPointer. Has anyone experience what is this node, how does it work and how should it be safely used?
Cheers,
Tomi
GetValueByPointer takes the C style pointer and the corresponding data type, which are generated by Import Shared Library Tool, as inputs and copies the value which the pointer points in shared library(dll/so/framework) to LabVIEW.
Input terminals:
Input Type: Input type is the LabVIEW data type to which you want to pass into LabVIEW. Input type can be Numeric, string, Array, Cluster . This VI returns an error if LabVIEW cannot convert the data wired to Pointer to the data type you wire to this input. If the data is integer, you can coerce the data to another numeric representation, such as an extended-precision, floating-point number.
Pointer: Pointer is a memory address represented by a 32-bit unsigned integer in LabVIEW.
Pack Type: Byte alignment information of the Input Type.
Output terminals:
Value:Value is the data copied from the memory which is pointed by Pointer and changed to the data type specified by Input type.
-
Main reasons:
1) the tool find the definitions of "alloc_func" and "free_func" in the header file.
2) the tool cannot support "#define OF(args) ()"
Walk around:
1) replace "alloc_func" and "free_func" with "int"
2) remove the "OF" macro
Class by parameter
in Object-Oriented Programming
Posted
I think a .NET Constructor Node is needed to get a valid .NET Refnum for your "ClasseDadosPontos".
Here is more information about the .NET constructor Node. http://zone.ni.com/reference/en-XX/help/37...nstructor_node/