NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Error while using C/C++ DLL

Hi All,
        
            I am trying to use C/C++ DLL as an Adapter in TestStand 4.0(Evaluation Version) but TS is not recognizing the I/O parameters the DLL is having. I have created DLL of CAN Receive.VI shipped with NI_CAN 8473. I used LabView 8.5 to create DLL and the LabView creates one header file along with the  DLL which contains user defined data types. Once I select the DLL in TS it shows message "No parameters found for this DLL or the data type is not recognized by the TS".
 
            Looking for Help !!
 
 
Thanks in advance,
 
Vivek
          
0 Kudos
Message 1 of 2
(3,019 Views)
 

Hi Vivek,

I just looked at the CAN Receive.VI  example and noticed that it does not have anything wired in the VI connector pane.  The connector pane wiring is what LabVIEW uses to specify the parameters for the DLL.  If nothing is wired here, TestStand will not be able to use the DLL as it will not know what parameters to pass in or what data to receive.  Did you setup the connector pane to link to the inputs and outputs of this VI?  If not, you can see an example of how to do this at https://www.ni.com/docs/en-US/bundle/labview/page/selecting-a-connector-pane-pattern.html

Additionally, it appears that CAN Receive.VI executes in a while loop, and waits for the stop button to be pressed, however; as a DLL, the front panel will not be displayed and you will not be able to press the stop button, which will essentially put the function into an infinite loop.  You will need to modify this VI to only receive once, or a specified number of times, by either removing the while loop, or by replacing it with a for loop and specifying the number of iterations that the for loop should execute.

 
0 Kudos
Message 2 of 2
(2,989 Views)