NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically list PPL content in TestStand

When using LabVIEW adapter with VI from PPL I can click Browse for VI... and a window like the one below will be shown. TestStand will list PPL content so I can select VI I want to use as a code module.

PPL.png

 

How can I programmatically list PPL content in TestStand? I was hoping to use LabVIEWModule.GetProjectUrlPathsForVIs but this works only with projects (see attachment and screen below).

Is there something similar for PPLs? Maybe there is somewhere Get Exported File List VI wrapper hidden in TestStand directory?

 

Example.png

Michał Bieńkowski
CLA, CTA

Someone devote his time to help solve your problem? Appreciate it and give kudos. Problem solved? Accept as a solution so that others can find it faster in the future.
Make a contribution to the development of TestStand - vote on TestStand Idea Exchange.
0 Kudos
Message 1 of 3
(249 Views)

I have an impression that NI forgot about PPL. I can list projects AND lvclass BUT not lvlibp 😞

There is a method LabVIEWAdapter.GetMemberNames but it will not accept lvlibp.

There must be some method to return lvlibp content because otherwise, LV adapter would not be able to display Select a VI from LV PPL dialog. But is it public?

 

It would be nice if someone from NI confirm: "Yes there is such a method. Here it is. Your welcome." or "No there is no such thing. Stop wasting your time." I thought that is how this support works...

Michał Bieńkowski
CLA, CTA

Someone devote his time to help solve your problem? Appreciate it and give kudos. Problem solved? Accept as a solution so that others can find it faster in the future.
Make a contribution to the development of TestStand - vote on TestStand Idea Exchange.
0 Kudos
Message 2 of 3
(196 Views)

Ok, I figured out some interesting workaround. I used VI Server in ActiveX steps to recreate the following VI:

GetItem.png

 

I don't know if it's safe to use LabVIEW 18.0.1f4 Type Library (Ver 5.5) automation server. I don't know if it is installed with TestStand or LabVIEW. I don't know why I have only version 18 (I have installed LabVIEW 2018, 2021, and TestStand 2020, 2021). I don't understand this automation server name. I don't know how to properly release references when using ActiveX steps. And I will probably never get the answers...

 

Anyway, If someone is willing to use VI Server directly in TestStand, I'm attaching examples. Enjoy.

 

EDIT 1: I can't attach my sequence 😞 I'm getting "The attachment's getitems.seq content type (application/octet-stream) does not match its file extension and has been removed." So, screens below:

 

A.png

 

B.png

 

C.png

 

EDIT 2: I figured that the available automation server adapts to the active LabVIEW dev system (adapter configuration). So, after I change from 2018 to 2021 I have the latest server available (only the latest so the steps need to be updated). My server location is C:\Program Files (x86)\National Instruments\LabVIEW 2018\resource\labview.tlb.

Michał Bieńkowski
CLA, CTA

Someone devote his time to help solve your problem? Appreciate it and give kudos. Problem solved? Accept as a solution so that others can find it faster in the future.
Make a contribution to the development of TestStand - vote on TestStand Idea Exchange.
Message 3 of 3
(190 Views)