LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

c# and labview communication

Hello,

 

All I'm looking to do is have a labVIEW control (e.g., a Dial) to communicate with a C# program, ideally through an event so the C# will know each time the dial changes.  I found this example which is great (albeit not quite what I'm after), and I've been browsing a couple of threads on here, but I couldn't find anything similar.

 

Is this (easily) possible in LabVIEW?

 

Regards,

 

Chris.

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

How is the C# program configured? Is there a public method that can be called by LabVIEW when the dial changes? That would probably be the easiest way to do it. You can monitor the dial in LabVIEW via an event structure and simply call your public method whenever the dial changes.

 

Note, however, that you will run into a lag issue since the event is fired with every little change in the dial, and the LabVIEW <--> .NET interface is not known for its speed. Thus, you will likely see a "stuttering" feel to the dial.

 

The alternative would be to not do a direct connection between LabVIEW and C# and rely, instead, on another means to pass data between the two programs. TCP/IP could be one method. 

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