LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

why can't I use controls on my labview created dll in labwindow cvi?

Solved!
Go to solution
I have created a DLL in LabVIEW to run from LabWindows/CVI.  The DLL is launched just fine but I have no control over the GUI.  Why and how can I use the controls on this GUI?  
0 Kudos
Message 1 of 6
(3,955 Views)
Siexto wrote:

> I have created a DLL in LabVIEW to run from LabWindows/CVI.  The DLL is
> launched just fine but I have no control over the GUI.  Why and how can I
> use the controls on this GUI?
It's better to create two applications. I do it as follows with an
instrument where the manufacturer delivered a bunch of vi's: test gui on
labview and create a simple commandset for controlling this application
(read/write). See STM client/server as a good library for communication
between the applications. Make LV app. the server.
Do not use net variables, they are buggy, unreliable and a pita when trying
to control from CVI.
tw
0 Kudos
Message 2 of 6
(3,942 Views)
Ok, opening up a server in the LV vi would work but do you happen to know why making a DLL of the vi did not work (i.e. -  it did not give access to any of the controls?)  My first attempt was to make an EXE of the vi and call it from CVI.  This worked fine, but I then wanted the calling program to pass in a directory for a data logging file.  I then went to making the DLL in order to do this.
0 Kudos
Message 3 of 6
(3,937 Views)
I can also call my DLL from LabVIEW and it works fine.  All controls and indicators of VI work and the datlog files are saved as expected so the problem must be with Labwindows/CVI.
0 Kudos
Message 4 of 6
(3,935 Views)
Solution
Accepted by topic author Siexto
0 Kudos
Message 5 of 6
(3,917 Views)

Siexto wrote:
...
My first attempt was to make an EXE of the vi and call it from CVI.  This worked fine, but I then wanted the calling program to pass in a directory for a data logging file.  I then went to making the DLL in order to do this.

Hi, you could use the EXE version and still pass parameters to it.

In CVI, any parameters you type following the executable name appear in main function in the argument vector (argv parameter).
I'm sure there is a corresponding functionality in LV for this. 

 

S. Eren BALCI
IMESTEK
0 Kudos
Message 6 of 6
(3,879 Views)