LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW output within C# .NET EXE

What are ways to create STEP1.EXE as below ?
How can STEP1.EXE be created as below
 
Step1:
I have Visual studio C#.NET environment code.
I will compile this code to STEP1.EXE.
 
Step2:
I have a LabVIEW source. I want to run its output (DLL?/EXE?/Activex?/plug in?) say STEP2output, within STEP1.EXE which I created in Step1.
Requirement is: It must not be required to recompile STEP1.EXE when I add STEP1output
(run within STEP1.EXE means parent EXE should be able to control  say where the LabVIEW's output - gets located, called and killed etc.)
 
Step3:
I have another LabVIEW source. I want to run its output (DLL?/EXE?/Activex?/plug in?) say STEP2output, within STEP1.EXE which I created in Step1.
Requirement is : It must not be required to recompile STEP1.EXE when I add STEP1output, STEP2output etc.
(run within STEP1.EXE means parent EXE should be able to control  say where the LabVIEW's output - gets located, called and killed etc.) 
 
To accomplish above need, what are requirements  on
- LabVIEW based program ?
- C#.NET based source ?
 
Has anyone done this in the past ?
 
Thx
 
0 Kudos
Message 1 of 5
(3,608 Views)

Hi Edicia,

 

At risk of sounding unhelpful, I think you've added a bit too much abstraction to your request for anyone to be of much aid to you. Can you clarify your needs? Also, remember that many if not most of us are not experts in C#, but we will do our best to point you in the right direction.

Stephen Meserve
National Instruments
0 Kudos
Message 2 of 5
(3,571 Views)

Hi Stephen M.

Thanks for response. I have been trying to integrate many independent LabVIEW GUIs within C#.NET.

 

I made them EXEs, then C#.NET can launch them, there are problmes with this approach:

example: I am unable to control where a particular VIs will be physically located.

 How can this be solved.

Moreover, I want that I should be able to dynamically add LabVIEW modules (EXE?/DLL) to the existing C#.NET exe.

 

This means C#.NET exe may not know when a new LabVIEW module will be pugged in?

 

Is there nay specific way with LabVIEW, how labview can support this interaction ?

 

(These labview modules will be using some common features (in terms of DLL) from the parent C#.NET environment.)

 

Looking forward to  help.
0 Kudos
Message 3 of 5
(3,556 Views)
Unfortunately, what you are trying to do is still a little unclear to me. However, one thing that you might want to look into use using ActiveX to control LabVIEW and LabVIEW VI's from your C# program. Check out this Tutorial for a little more information on what I am talking about.
Hope this helps.
-Ben

WaterlooLabs
0 Kudos
Message 4 of 5
(3,527 Views)

Hi BCho.

 

Thank you for the link. I need to go thru info and look at examples if any. Specially I dno't know how to expose LabVIEW funuctions to be used in ActiveX easily. Need to study it.

 

My goal is that, once I have my C# EXE, I can plug in LabVIEW deliverables (output of labview programs in some formats..DLL?)  on the fly.

 

That means I don't have to know how many LabVIEW deliverables I am going to plug to my C#.EXE.

I will never need to recompile the C# EXE to accomodate a new LabVIEW deliverable into itself.

 

Please let me know if you have more questions, any further recommendations.

 

 

 

 

0 Kudos
Message 5 of 5
(3,495 Views)