LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Fieldpoint Refnums

I just started using FieldPoint and was wondering why I can't read
FieldPoint refnums from globals. I can successfully write the refnum
to a global, but when I read it out and feed it into the FieldPoint
Read vi, I get an error (32804 - An invalid IAHandle was
specified. : FP Read.vi).

In my application I want to open a session and write the refnum to a
global and then read it from the global with other VIs (as you can with
VISA and DAQ sessions). I want to avoid having to open and close my
sessions every time I need to make a reading because it seems to incur
a significant amount of overhead.
Any info would be appreciated.
--
John Morrissey


Sent via Deja.com http://www.deja.com/
Before you buy.
0 Kudos
Message 1 of 2
(2,678 Views)
Use a functional Global instead. A functional global is a while loop that only runs once with an uninitialized shift register that holds the value. The problem you are running into is because a global VI has its own shared memory and you are trying to pass from one shared memory to another.
Joji
0 Kudos
Message 2 of 2
(2,678 Views)