NI TestStand Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
mjwalla

LV Primitives in TS

Status: New

How cool would it be to sequence any LabVIEW VI in TestStand? I realize one could make a wrapper around any VI, but that adds not only a layer of complexity, but customization. I am a staunch follower of the KISS philosophy, and custom wrappers are not so simple; well, at least not as simple as no wrapper at all ; )

9 Comments
Bluegraf
Member

I'm not so shure about that.

After a short while you would end up not opening LV to program LV but to use TS as a LV editor... sounds weird.

crlanglois
Member

Strongly agree, wrapper VIs add an extra layer of complexity that is wildly unnecessary.  I only write VIs when I have to and writing a VI to simply allow me to use another VI because I can't use primitives seems excessive.

dug9000
NI Employee (retired)

What sort of things are you wanting to call directly from TestStand?

crlanglois
Member

Yesterday I wrote a wrapper around the 'Get File Size' primitive because I needed to get a file's size in TestStand (to automatically archive MDBs as they fill up) and I can't call Labview primitives.  This is just my most recent example, this comes up all the time.

crossrulz
Knight of NI

Strip Path and Build Path are the two I would likely use the most.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
warren_scott
Active Participant

I would much rather see those functions natively written in TS.  That way we don't have the overhead of calling LV code, and fighting issues of LV runtime engines, and getting LV VI.lib included as part of the deployment (it causes huge issues especailly if you are dealing with multiple possible runtime engines of different LV versions).

 

Raydur
Member

I run into this need on a constant basis. TestStand has come a long way and has quite a bit of functionality in it's own right, but it's still a sequencer at heart and needs outside code (VI's, DLL's, etc.) to perform many tasks. LabVIEW provides this capability, but when we have so much inherent and useful functions (VI's) in LabVIEW that cannot be accessed without creating a VI wrapper (around a single VI) to perform the EXACT SAME TASK it's just bewildering!

 

There are several posts on nearly this same topic, none of which (that I've found) has gotten a response from NI. It would be great to get an official response from NI on this!

Sam_Sharp
Trusted Enthusiast

+1 for this.

Find myself having to wrap LV primitives just for the sake of it which creates additional code to maintain.

Some examples:

- Read/Write Spreadsheet file

- Array manipulation (e.g. reverse 1D array)

- Signal generation (e.g. to generate a ramp of test setpoints)


LabVIEW Champion, CLA, CLED, CTD
(blog)
ChrisHawk
Member

Another common need is the Format into String as this supports SI units.