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: 

communicating with another program

I was curious as to what anyone thought was the best way to go about interacting with another program before I started off down the wrong path. The program simply turns on and off lights and I attached a screen shot of the user interface. My first thoughts were to use Active-X but I am not really sure how to go about this I have never used it. The manual says the unit can be operated with Visual Basic and Visual C++ but I am not really familiar with these either, any input would be appreciated

0 Kudos
Message 1 of 4
(2,018 Views)

Are you writing the C++ code, or does it exist already? If you are writing it you could use TCP/IP communication on localhost to communicate between the two apps. I'm a bit confused why the language you use to communicate matters, unless a program to communiate to the device is already written and you want to use it. If that's the case then you have to use an interface that it exposes. Does it expose active X? A bit more detail would definitely be helpful for people to give you the right answer.

0 Kudos
Message 2 of 4
(2,015 Views)

there is some code that exists that was given to me from the manufacturer in C++ that i think will work, but I am not sure how/if this will work on the PXI box that I am using from NI. How would I know if it exposes Active X, I am very unfamiliar with this

0 Kudos
Message 3 of 4
(1,974 Views)

Chances are the example code is using either some basic protocol over TCP or UDP. Does the manufacturer of the equipment document that? Given what you are trying to do I imagine this will be quite easy to implement directly in LabVIEW. The tough part is getting the defintion of the protocol. However this should be provided by the manufacturer.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 4 of 4
(1,958 Views)