NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to debug ActiveX build by cvi exe?

Hello,

How can I debug ActiveX functions in teststand, this Activex is exe type created by CVI project.

Thanks.

0 Kudos
Message 1 of 8
(3,135 Views)

You can attach the CVI debugger (Run»Attach to Process) to Seqedit.exe or your operator interface.

 

Hope this helps!

Trent

 

https://www.linkedin.com/in/trentweaver
0 Kudos
Message 2 of 8
(3,099 Views)

Hello Trent,

It seems can't enter into the breakpoint set in activex project.

what I do are below steps:

1. in cvi,attach the seqedit process.

2. build and run activeX project in cvi.

3. run seq in teststand

 

attached my code,pls change the file extention from .doc to .rar.

0 Kudos
Message 3 of 8
(3,094 Views)

It looks like I misunderstood your code structure. You should be able to accomplish all of your debugging from within CVI (not attaching to SeqEdit).

 

CVI Help: Debugging ActiveX Servers in LabWindows/CVI

 

-Trent

https://www.linkedin.com/in/trentweaver
0 Kudos
Message 4 of 8
(3,071 Views)

Hello Trent,

Thanks.

I tried,if I only run the debuggable exe server in CVI, then run the client Seq in teststand, it still can't enter into the breakpoint in cvi,you can try the example I attached before.

0 Kudos
Message 5 of 8
(3,061 Views)

Hello,

 

As the documentation that was previously provided states, you need to attach to the executable you have created since it is a seperate application instance. Attach to RS232_Driver_dbg.exe, place your break points with the project open in LabWindows/CVI, make calls to these functions in TestStand. Ensure your executable had been built as a debuggable project rather than release.

 

Best regards,

 

Ed

0 Kudos
Message 6 of 8
(3,045 Views)

Hello,

follow your steps,I still can't enter into the break points,what I do is:

1. click and run RS232_Driver_dbg.exe(debuggable exe).

2. in CVI, click menu Run->attach to process and select "RS232_Driver_dbg.exe"

3. run teststand sequence

 

could you try my example attached before to see if it works on your side,thanks.

0 Kudos
Message 7 of 8
(3,036 Views)

can anyone help me?

0 Kudos
Message 8 of 8
(3,001 Views)