From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
12-05-2008 01:43 PM
Having problems with a test dll that runs in test stand, but I get errors when trying to use the wizard in labview, however I can use the call library function node to protypye it. Problem - the function openComserialPort(char* comPort, ErrStruct & err), how do you difine the parameters for the ErrStruct & err part.
next Question, since this Dll runs in Test Stand, is their anyway to export to work in LabVIEW.
Solved! Go to Solution.
12-05-2008 11:25 PM
since this Dll runs in Test Stand, is their anyway to export to work in LabVIEW.Yes it will work in LabVIEW sure.
how do you difine the parameters for the ErrStruct & err part.
It is a "Pointer to a structure". You have to tell the structure of ErrStruct. Please attach the description of that dll for help you better.
12-06-2008 04:56 AM
12-08-2008 11:53 AM
No i'm communicating to a circuit board's microprocessor used to contrill a radio circuit. It uses a RS232 port (standard UART), to program in with serial number and other information. the DLL works with Test Stand, however, The customer does not have LabVIEW, and has never worked with it. shared library wizard does not configure the function calls, however the call library function node does. found answer for the errstruct, as I thought it was in defining the parameters. Name: err Type: Adapt to Type Data format: Pointers to handle. Input is wired to a custer containing the data types of the structure. Next goal is prototyping the following statement:
int_stdcall GetStdTable1(int & hwVersion, int & hwRevision, int & fwVersion, int & fwCompatiblility, char * serialNumber, char * manufacturer, char * model, ErrStruct & err);
12-08-2008 10:35 PM
Hai hallawt,
Thanks for sharing.
int_stdcall GetStdTable1(int & hwVersion, int & hwRevision, int & fwVersion, int & fwCompatiblility, char * serialNumber, char * manufacturer, char * model, ErrStruct & err);
Have you achieved this goal? Since you have constructed the ErrStruct, hope it will be easier. Post if you have any problems. Always there to help you.
12-09-2008 08:39 AM
Here's a description of the dll, to start off, I have a circuit board with a microprocessor on it, that has control for a radio module. During test I need to program this board serially through its' TX and RX lines on the processor. The dll given to me, which was written for test stand, has functions to enable me to do this programming. There are basically 11 function contained is this Dll.
Initialize Dll, (no errors),
open serial port, (no errors),
getStandardTable, which sends a command for the microprocessor to send back its information-> get assertion error
WriteHardwareVersion -> Sends the version and revision number -> assertion error.
ColdStart -> Which resets board statistics variables -> assertion error. Now, this function prototype is ColdStart (errStruct & err); So I prototype like I did for the above error struct, but still got an assertion error, which leaves me to believe, that , or vendor, has a bug communicating, or sending the commands via serially, to test this, I could use the serial examples contained in LabVIEW, however I don't know the command set of the microprocessor, or could there be something else wrong, Any ideas will be appreciated.
12-11-2008 06:56 AM
Hello hallawt,
You might be on the right track with believing that the problem lies in the dll itself. What did you mean by 'assertion error'? Was there a specific error number and message associated with this?
12-11-2008 08:22 AM
(Microsoft Visual C++ Debug Library)
Debug Assertion Failed
Program: C:\Program Files\National Instruments\LabVIEW 8.6\LabVIEW.exe
File:F:\RTM\vctools\crt_bld\SELF_X86\crt\scr\tcsncpy_s.inl
Line: 24
Expression: ((_Dst)) !=NULL &&((_SizeInBytes)) > 0
Not able to find a solution on running this Dll in LabVIEW, have installed Test Stand, and using that module, TEST Stand did not recognize the functions.12-18-2008 07:53 AM
Pass by reference, is something that test stand does and labview doesn't do very well. Got the original DLL file that written to be used with test stand, and compared it with the function prototype that labview created, and they were different. Anytime a function prototype uses "&" sign, its a pass by reference, and also found that LabVIEW, doesn't handle structures very well. Its a Type Def, which the test executive recognized. So the solution was to run the test using test stand as the test executive, but call my LabVIEW module that check voltages, current and other things, but the communication to the microprocessor using the dll is handle within test stand. Thank-You all who reply, there's some that may not know, but this may come in handy some day.