NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Activex and .net Labview Teststand

Hello

I had a problem when i use a .net assembly in teststand

 

  • I created a VI and in this vi i use "this.context" activex for receive the teststand context
    • When i use the VI in teststand everitging work
  • Now I built a assembly .net from the VI
  • The assembly doesn't work
  • Teststand message error "Object of type 'System.__ComObject' cannot be converted to type 'NationalInstruments.LabVIEW.Refnums.LVBaseRefnum"

I think activeX doesnt work in .net assembly

 

How i suppose to fix this issue ?

 

Thanks you

0 Kudos
Message 1 of 3
(2,299 Views)

Hello Lunik,

 

If i understood correctly, you created a LabVIEW VI in which you use ActiveX.

When trying to call a .NET assembly in this VI, it doesn't work anymore.

 

My first question would be: do you know that you can call .NET assemblies directly in TestStand?

If yes, what is the result?

 

Have a nice day!

 

Regards,

Armando

 

0 Kudos
Message 2 of 3
(2,271 Views)

Hi folks,

 

I have exaclty the same issue.

I have a LV library which needs "SequenceContext" object as input parameter

I need to call the library from C#. So I'm creating a LV DLL for .NET.

Application build generate a .NET function with LVBaseRefnum as parameter.

How can I convert SequenceContext object into LVBaseRefnum?

Thanks for your help

 

0 Kudos
Message 3 of 3
(2,157 Views)