11-04-2009 09:07 AM
I have a TestStand sequence which uses a DLL made with LabWindows. For debug, I need to run the sequence step by step, and I want to go inside the functions of the DLL to run step by step. Is it possible ? How to "connect" TestStand and LabWindows ?
Thanks for your help !
11-04-2009 09:46 AM
This is possible, and fairly easy to do. One way to do this is to launch TestStand sequence editor from within CVI. Open your DLL project in CVI and set the configuration to Debug. Then in the Run >> Specify External Process and set the Program Name field to "c:\Program Files\National Instruments\TestStand 4.1\Bin\SeqEdit.exe" or whatever version of TestStand you're using. Then Select Run >> Debug SeqEdit.exe.
Open your TestStand Sequence from the editor, set the breakpoint on your DLL call, and use the Step Into function of TestStand to step into the DLL source code.
That's it.
-Jack
11-04-2009 09:49 AM
Hi SFL,
This can be done by:
1). open the DLL project in LabWindows
2). select "Run->Specify External Process..." and set TestStand (seqedit.exe)
3). click "Run->Debug SeqEdit.exe"
This will execute TestStand and you should be able to step into your DLL functions.
Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)
Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor
11-05-2009 07:17 AM
Thanks for your help but it does not work.
1- I open the DLL project in LabWindows => OK
2- I Run/Specify External Process and set seqedit.exe => OK
3- I Run/Debug SeqEdit.exe => OK, TestStand launches
4- I open my sequence in TestStand, set a breakpoint on the DLL call => OK
5- I execute the sequence => OK, it stop at the breakpoint
6- I use Step Into function and it does not work, I do not go inside the DLL => KO
Have you an idea of what happens ?
11-05-2009 10:05 AM - edited 11-05-2009 10:07 AM
Make sure that your TestStand sequence is calling the debug version of your DLL, which in CVI may be built to a different location than the release DLL, or with a different name (*_dbg.dll).
-Jack
11-05-2009 11:00 AM
11-05-2009 12:00 PM