NI TestStand

取消
显示结果 
搜索替代 
您的意思是: 

Custom UI

已解决!
转到解答

Hi everyone,

I’m developing a custom TestStand step type and exploring ways to provide a custom configuration panel for it.
Currently, I’ve built a Qt-based DLL (using ShowSettingsPanel() in C++) that opens a popup dialog for step configuration.

I understand that TestStand allows configuration UIs through ActiveX, .NET, or CVI DLLs via the Edit Tab Controls feature. However, I’m wondering if it’s technically possible to embed a custom UI (like a Qt panel) directly inside the Step Settings tab (similar to how the built-in “Call Executable” or “Message Popup” steps show their controls).

0 项奖励
1 条消息(共 9 条)
385 次查看

Can't ultimately really answer your question, yet you can find the source code for the built-in steps / step settings in the subfolders of %TestStand%\Components\StepTypes.

 

Maybe this helps

0 项奖励
2 条消息(共 9 条)
379 次查看

Thank you for your reply!
I’m currently exploring the approach you suggested by checking the source code under the %TestStand%\Components\StepTypes subfolders.

0 项奖励
3 条消息(共 9 条)
377 次查看

You need to build the Edit Tab for the custom step in WinForms only.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution
0 项奖励
4 条消息(共 9 条)
353 次查看

Thank you for your reply.
As of now, using the Edit Tabs option in my custom step type, I’m able to add a tab and include a button inside it — which I can use to launch my configuration dialog.

So does that mean using .NET WinForms, it is actually possible to make a fully embedded configuration tab (with controls directly inside the tab) — similar to the built-in steps like Call Executable or Message Popup?

0 项奖励
5 条消息(共 9 条)
344 次查看
解答
已被主题作者 Nowful 接受

Yes, you can build complex Edit Tabs using WinForms.

 

Please refer to Creating Custom Step Type Edit Tabs in the Sequence Editor - NI

 

and here is the example code https://download.ni.com/evaluation/teststand/customstepeditpanel.zip 

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution
0 项奖励
6 条消息(共 9 条)
322 次查看

Thank you for your reply, Santhosh.
I tried the method you suggested, but it’s showing an error. I’ve attached the error img here for your reference — could you please take a look and let me know what might be causing it?

Thanks in advance!ff117eef-7bfa-4967-99e6-815367809825.png

 

0 项奖励
7 条消息(共 9 条)
294 次查看

Hi Santhosh,

Thank you so much for your kind information and guidance. I was able to fix the issue, and it’s now working exactly as expected. I really appreciate your support and detailed explanations!

0 项奖励
8 条消息(共 9 条)
285 次查看

@Nowful wrote:

Hi Santhosh,

Thank you so much for your kind information and guidance. I was able to fix the issue, and it’s now working exactly as expected. I really appreciate your support and detailed explanations!


Please share the issue and fix so that anyone trying to replicate is also benefitted. 

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution
0 项奖励
9 条消息(共 9 条)
274 次查看