取消
显示结果 
搜索替代 
您的意思是: 

Intercommunication Between Programs

What is the easiest way to, when a boolean is set to true, send the "true" to a second prgram in order to start data collection (this would normally be done by a mouse click)? Also, when the data collection is finished, the  second program needs to send a "true" boolean back to the first program to start a timer. The fist program is my labview project and the second is a third party software.

 

Any help is welcome.

 

Thanks,

 

Matt

0 项奖励
1 条消息(共 7 条)
4,008 次查看

That would depend entirely on the third part software.  What interfaces do they allow?  ActiveX?  TCP?



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 项奖励
2 条消息(共 7 条)
3,992 次查看

I don't know the inner workings of the software but I can tell you that it allows remote connection over a network and supports OPC, ModBus, and CanOpen.

0 项奖励
3 条消息(共 7 条)
3,987 次查看

How would you recommend that I do this if the second software was written in labview instead?

0 项奖励
4 条消息(共 7 条)
3,974 次查看
OPC, modbus, CAN, are hardware interfaces. Find the vendor of the software and ask if the program itself supports remote control.

A generic way for control/communication is a program called AutoIT. You can use it to press a button on another program. If it really has an indicator for status, you can poll that.
0 项奖励
5 条消息(共 7 条)
3,964 次查看

If I understand you correctly, the problem is that you did not write the second software but would like to start it using LabVIEW.  Here is one thing you can try:

 

  • See if you can launch the program and have it automatically acquire data (for a set period of time, ideally).  If so, you can simply open it via System Exec VI and have it begin logging on open.

It will be very basic and you won't have a lot of control over it, but it should (at least) get the data collection started.

 

For a more complex approach, you will likely need to contact the manufacturer of the software for more info about trying to communicate with it remotely.

 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If someone helped you out, please select their post as the solution and/or give them Kudos!
0 项奖励
6 条消息(共 7 条)
3,952 次查看

@MattEntner wrote:

How would you recommend that I do this if the second software was written in labview instead?


If the other program is written in LV you would have several options including standards like TCP/IP. However, to pick a technique I would have to know how the other program was written.

 

For example, you could use VI server to programatically press a button on the other program front panel. Of it the other program is event-driven, VI  server could remotely fire an event to do something.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 项奖励
7 条消息(共 7 条)
3,910 次查看