LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I prompt a user to enter in a string name and set it so it can be used as an input for a DLL

I was having problems entering in a string name and setting it. Any suggestions.
0 Kudos
Message 1 of 3
(2,887 Views)
Entering the string is easy. Just use a string control.
To setup the Call Library Function, right click on it and select Configure. Type in the path to the DLL (or use the Browse function) and then use the Function Name dropdown box to select the function within the DLL. From here, you have to setup the parameters. The return type parameter should already be selected in the Parameter drop down box, so click on the Type drop down box and select the type of parameter that the selected function will return. From there, click on the Add Parameter After button to add an input parameter and then select the type of parameter. Continue doing this for all of the input parameters to the DLL. For strings you'll see a new drop down box appear for String Format. Choose the
format that the DLL expects.
You need to know what the DLL is looking for. Have fun with it.

Rob
0 Kudos
Message 2 of 3
(2,887 Views)
You might want to check if you have Update Value while Typing checked or whether a carriage return is being sent to the .dll. Without seeing either the VI or .dll it's hard to say especially since you don't mention exactly what kind of problem you're having.
Message 3 of 3
(2,887 Views)