Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6840165
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:48:29+00:00 2026-05-26T23:48:29+00:00

I’ve two questions: I would like to know what sort of variable types can

  • 0

I’ve two questions:

I would like to know what sort of variable types can I pass into labview from C# or python, using activeX.
I guess they would be things like, number types, strings, etc. But what about paths, or error clusters?

Also in labview I normally pass in labview objects into my subvi’s. How would it be possible to do this from another language?

Lets say I have a self defined database object that I normally pass around in labview. Can I call some factory method vi from C#, and get the control from the front panel after running the vi. Cast that as a generic object in C#, and then call another vi, and pass in the object?

Like.

// Get a vi reference, and run my databaseFactory vi.
string databaseFactoryPath = ...;  
VirtualInstrument viTest = labVIEWApp.GetVIReference(databaseFactoryPath "", false, 0);
databaseFactoryVi.Run(true);

// Get the database labview object from the frontpanel control called "database out"
object databaseObject = (object)viTest.GetControlValue("database out");

// Obtain a reference to a database method called load.vi
string databaseLoadPath = ...;
VirtualInstrument databaseload = labVIEWApp.GetVIReference(databaseLoadPath "", false, 0);

string parameterName = "database in";
databaseLoad.Call( parameterName, databaseObject );  

…

This doesn’t work because an exception is thrown at viTest.GetControlValue(“database out”):
“The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))”

Anyone know if it is possible to do such things?
(I’m trying to get out of labview programming, but I don’t want to render all my code as useless in the process.)

Thanks,
labjunky

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T23:48:30+00:00Added an answer on May 26, 2026 at 11:48 pm

    LabVIEW has an option to generate a .NET assembly itself that wraps your VIs and is callable from your .NET application. I think, this is one of the options that’s often neglected by G developers when trying to use G code in .NET apps.This is the “.NET Interop Assembly” option in your BuildSpecification in the LV Project.

    You can select the VIs from your project that you want to be exposed for calling in your .NET application (I think, it can generate for LVOOP vis also); generate the .NET wrapper assembly; and then use this wrapper assembly to interface with the LabVIEW code from your .NET app.

    Of course, if the types are basic, then while selecting the VIs, it automatically configures the function signature. I’m not sure, if the references/handles can be passed around seamlessly between the .NET/LabVIEW boundary. But, I’m sure its faster for you to write a integer/string-to-LVObject-map in LabVIEW side, and then use the common type to refer to them across the boundaries, than to re-write all the code in a .NET language.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone know how can I replace this 2 symbol below from the string
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I would like to count the length of a string with PHP. The string
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am currently running into a problem where an element is coming back from
I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,
I've got a string that has curly quotes in it. I'd like to replace
I have a French site that I want to parse, but am running into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.