03-10-2006 11:21 AM
Hello,
I am writing an application using Labview 7 in which my application is communicating
to hardware. I have a DLL written that actually handles the hardware
communication (USB) and passes data into Labview. The application is such
that it only needs to communicate with the hardware occasionally, which is
fired by an event structure. One bug I've notice in the application is
their is a very defined bringup sequence. I first must turn on the
hardware, then open the application for it to work properly. If I bringup
the application then turn on the hardware and "acquire data", it will
not work. A similar response happens when I power cycle the hardware
while the software is open, once the power cycle is complete the application
will no longer function.
The other day I thought to change all references to the subvi "Acquire
Data" over to "Call By Reference Node" and closing the reference
nodes after the acquisition in complete. My thinking was that I'd load
and unload the "acquire data" vi (and dll) from memory only when
needed. However, this does not seem to fix the problem when I build the
application. My questions are:
Many thanks.
03-10-2006 11:40 AM
03-10-2006 01:25 PM
Hi Waldemar,
Thanks for the tip as I was unaware. I tried it and
it revealed a memory instance that I previously missed when I changed all
subvis to references. That's all it took. After I changed that last
memory instance to load and unload based off of an event, my program bug is
fixed.
Thanks again.