06-23-2006 02:23 PM
06-23-2006 04:57 PM
06-23-2006 07:05 PM
06-26-2006 07:51 PM
06-27-2006 11:14 PM
06-28-2006 12:30 AM - edited 06-28-2006 12:30 AM
LVRefNum is in principle a pointer to something as far as your DLL is concerned. And this something will be whatever the code implementing that object will want to do. For standard LabVIEW refnums only the internal code parts in LabVIEW implementing that object know how this something looks. All the rest of LabVIEW simply treats it as a pointer or in fact even more correctly as an uInt32. Since it really is a pointer once LabVIEW 64 bit is a reality such a refnum likely will be an uInt64 in that version.
@dgholstein wrote:
Maybe I can use a type cast from C. Does anyone know how to do this?
I tried looking for the definition of LVRefNum in extcode.h but it wasn't clear (too many MACRO defs).
...Dan
Message Edited by rolfk on 06-28-2006 07:31 AM
06-28-2006 09:20 AM
06-28-2006 09:41 AM
06-28-2006 10:27 AM
06-28-2006 04:22 PM
I simply create a datalog refnum control, place an enum in it and set a single string item in that enum. Then you pass this to the Call Library Node configuring the according parameter to be passed as Adapt to Type. The parameter will then be passed to the DLL as LVRefNum *refnum (thus passed by reference).
@dgholstein wrote:
Rolf;
I've successfully implemented this in my library and do the type cast in LabView, not in the DLL. Do you type cast in LabView or the DLL (to LVRefNum).
The unique LVRefNum that can't be wired to a different type of data sounds good to me, do you have a quick example of how to do that? Do you do that in C or in LabView?
...Dan