NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

use Teststand API in Qt

Hi,

 

I'd like to use Test API in Qt, but there are so many errors that the project could not be built successfully. did anyone do this before? Thanks.

 

Michael Ji from Shanghai, PRC.

0 Kudos
Message 1 of 6
(5,407 Views)
additionally, Microsoft VC++2010 as the default compiler in my project, and I tried with a new MFC project, it runs well, the same compiler but different result, who meets the same issue? thanks.
0 Kudos
Message 2 of 6
(5,391 Views)

Are you referring to this Qt? If yes, please note that no NI software product has official support for this environment.

I never worked with this, and i dont understand the reference to "other programming languages" on that wiki-page.

 

Can you please provide more information on your application? Are you talking about code modules or are you talking about customizing an UI?

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 3 of 6
(5,379 Views)
Thanks for your feedback, yes, I used the open source Qt library to develop GUI and Microsoft VC++ compiler as thedefault compiler, I just create a new project, and include the. CPP and.h file just like the MFC example which provided in the directory of teststand installation path, but the project could not be build successfully, if create a MFC project, everything goes well.
0 Kudos
Message 4 of 6
(5,370 Views)

TestStand is an ActiveX Server. Is it possible, that Qt can't handle ActiveX at all?

Alos, please note that TestStand heavily takes use of ActiveX controls for implementation of UIs. You can implement your custom controls and remove the ActiveX interface completely from the UI panel, but that's nothing the NI UI examples do. I can imagine that these controls make Qt to throw the errors.

 

Again, i point out that NI never supported Qt, so you have to try a lot on your own.

Btw: What is the reason that you cannot use the UI as available as example?

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 5 of 6
(5,360 Views)

The MFC UI code is specific to MFC, so copying that code to a Qt project is not likely to work. We do not currently have an example UI which uses Qt rather than MFC. As long as Qt supports hosting ActiveX controls it should be possible, but you would have to write such a UI yourself or find someone else who has already done so.

 

Hope this helps,

-Doug

0 Kudos
Message 6 of 6
(5,356 Views)