From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

C# and LabVIEW - running C# form in background

Hello everyone,

 

I am opening in Labview a C# form, by using .NET constructor and Show display() method. I would like to realize the following:

To use a state machine, in a first step open the form and then, after pressing a special button on the Form (for ex. a Start button), going back to LabVIEW and doing the next steps of the state machine.

This would mean, that the C# program runs actually in background, while the other states of the machine are executed. Is something like that possible?

With/without state machine? Or any other idea?

 

Thanks,

 

Ussr123

0 Kudos
Message 1 of 2
(2,242 Views)

Hi Ussr123,

 

maybe you could build a dll from your C# code and call it from LabVIEW using the Call Library Function Node. This node ensures that he LabVIEW code does not proceed to execute when the DLL function is active.

 

Regards,

Melanie

Best regards,
Melanie Eisfeld
Senior Applications Engineer, National Instruments Germany
Certified LabVIEW Developer
Certified TestStand Architect
0 Kudos
Message 2 of 2
(2,164 Views)