05-28-2010 01:38 PM
Solved! Go to Solution.
05-28-2010 02:03 PM
05-28-2010 02:17 PM
05-28-2010 02:38 PM
What version of TestStand are you using? With TestStand 4.0 for the 'Call Executable' step there is a line called
Argument Expression:
Enter your parameters to pass into your LabVIEW executable. You will have to know which ones to pass in and in what order. I believe you can seperate the arguments by spaces. In my attachment, I pass in one parameter to a LabVIEW executable.
Remember, though you have to set the Build properties in LabVIEW to allow it to Pass command parameters to the application.
Thanks,
PH
05-29-2010 02:12 PM
mrbean wrote:
How do I do that? Is that a special checkbox in the Build utility?
Why would you make it more difficult and create an exe? You could have created a dll.
In any case, look at the LabVIEW example called "CommandLine.vi".
05-29-2010 02:29 PM
05-29-2010 03:03 PM
06-01-2010 07:21 AM
MrBean,
You can do both. We've done this before and it works well to allow the functionality in both TestStand and as a standalone tool. Create the DLL that does what you need in TestStand, and then create the separate Executable (with GUI) that uses the LIB (or dynamically loaded DLL) to make calls to the same functions that you do in TestStand. If you're using version control, then it would be easy to have the Executable use the same source as the DLL.
-Jack
06-09-2010 09:01 AM
I'm trying to create a DLL and I'm running into some problems. In the Build dialog box, in the 'Source Files' category, I've selected the main VI and it appears in the 'Exported VIs' area. I then select 'Define Prototype', and the function prototype shows me the return value and the four inputs I've exposed as controls on the front panel (connector pane). I create the DLL successfully. However, when I try to invoke the DLL (using Call Library Function Node), I don't see any of my parameters available to me. The only parameter shown is the return value. Do I have to manually add the parameters so that they match the prototype? Seems like they should appear automatically.
06-09-2010 09:35 AM
I have had the same problem before. I believe I had to remove some 'Inputs' that were not 'recognized' with TestStand, more specifically, I do not use the Error In or Error Out clusters as inputs the DLL as these do not map properly.
When I try to a random DLL on my system, TestStand gives me the following warning:
'This function either does not have parameter information in the DLL or uses types not recognized by TestStand'
What other input 'types' do you have?
Thanks,
PH