NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Call .net function from expression

Hi,

 

I would like to know if it possible to call .net function from expression step.

Currently to call function from .net I'm using Action step with .NET adapter.

DotNet1.PNG

 

What I would like to do is to do the same but in expression (for example, post expression of some step). Is it possible to do it?

 



0 Kudos
Message 1 of 4
(3,303 Views)

No

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 2 of 4
(3,301 Views)

Seriously? No way to do that? Damn...

 

Thanks anyway 🙂



0 Kudos
Message 3 of 4
(3,298 Views)

To elaborate on this a little:

No, you cannot call .NET assemblies (or other code modules) within an expression.

 

There is one exception since some TestStand versions: You can call the TS API (ActiveX) within expressions. So if the purpose of your request is limited to TS API functions, the answer should have been "Yes" for up-to-date TestStand.

 

Little side note: Maybe you can create custom steptypes calling into the .NET assembly as "Post-Step Substep". This could provide the user of your steptype with functionality similar to what you are currently looking for.

 

Norbert

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