zootycoon2

Members Login
Username 
 
Password 
    Remember Me  
Post Info TOPIC: How to extract values from .NET object?


Veteran Member

Status: Offline
Posts: 72
Date:
How to extract values from .NET object?
Permalink   
 


Hello,

I am completely new to LabView and C#. 

I created an .NET assembly from MATLAB code which returns 2 array(each n x 1).  Using .NET palette of LabView, I created invoke node of class ‘Angular’ and it has several input (numArgsOut, f, etc) and one output  ‘Angular()’. I connected inputs with .NET object and numeric control. The problem is How to connect

output(object) with some kind of indicator (numeric array indicator?). Because I should get 2 arrays (each n x 1), is there a way to separate object into 2 arrays?Part of C# code shows as follows

public Object[] Angular(int numArgsOut, Object f, Object C_g, Object cp90, Object 

cg90, Object thickness, Object dp, Object d, Object NT, Object D

return mcr.EvaluateFunction(numArgsOut, "Angular", f, C_g, cp90, cg90, thickness, dp, d, NT, D);

And I suppose numArgOut should be 2. (I think MATLAB coder made this variable)

Please help.

Thanks!

I didn't find the right solution from the Internet.

References:https://forums.ni.com/t5/LabVIEW/How-to-extract-values-from-NET-object/td-p/2569121

Corporate Promotional Video



__________________
Page 1 of 1  sorted by
 
Quick Reply

Please log in to post quick replies.



Create your own FREE Forum
Report Abuse
Powered by ActiveBoard