LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LVRefNum in CIN, how to?

Hi All,
How I can reach to data via LVRefNum in CIN module? I not found any real solutions in this forum........ 😞

Help, please.

Oleg

0 Kudos
Message 1 of 5
(3,139 Views)


@OlegUA wrote:
Hi All,
How I can reach to data via LVRefNum in CIN module? I not found any real solutions in this forum........ 😞

Help, please.


LVRefNum is just a private datatype tha can represent a number of different refnums, so you should be more specific what you are trying to do. If the LVRefNum you are refering too is a generic file refnum you can use the FRefNumToFD function to return the low level File Manager refnum and then you can use the FMRead, FMWrite, FMTell, and FMSeek functions to access the file.

But in general it is a bad idea to do File access in a CIN. Doing it in the LabVIEW diagram is platform independant, just as powerful and much easier to debug and program.

Rolf Kalbermatter

Message Edited by rolfk on 02-02-2006 09:15 PM

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 2 of 5
(3,141 Views)
Hi Rolf,

I want create the CIN which allocates memory for cluster and returns refnum on it. For example, like "Create User Event", "Create Notifier", and similar. This CIN must allocate new memory  per every call.



Oleg.
0 Kudos
Message 3 of 5
(3,131 Views)


@OlegUA wrote:
Hi Rolf,

I want create the CIN which allocates memory for cluster and returns refnum on it. For example, like "Create User Event", "Create Notifier", and similar. This CIN must allocate new memory  per every call.



Oleg.


You can't create User Event, Notifiers etc refnums in a CIN. The functions for this are not exported from the LabVIEW kernel to your CIN.

Rolf Kalbermatter
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 4 of 5
(3,132 Views)
It's bad news... It was last hope for resolve of problem described here

Thanks in any case, Oleg.
0 Kudos
Message 5 of 5
(3,119 Views)