07-30-2016 09:16 AM
Hello!
I have two Vi . First and second Vi on PC in boiler room (home control ) . Second Vi i use for second display on tablet android like second monitor for family. For control temperature in my Vi i use numeric control. How to do equivalent control for both Vi? ie when i change numeric in first Vi it change in second Vi and when i change numeric in second Vi it change in first Vi (same priority Vi)?
Thanks a lot for help!
07-30-2016 02:32 PM
There are so many questions about what you mean that it may not make sense to make any suggestions until you provide more information. Some of my questions are the following:
Bob Schor
07-31-2016 02:47 AM
Hello!
Thanks for reply!
Ok, lets start:
Vi work correctly ( more one year ) , i can control temperature of room and see some other value.
I attach a front panel capture because Vi It will not work without I/O board, but i attach simple example of main Vi, part with temperature control.
Second Vi i need for Secon Display. If i undestend correcly - 2 front panels, 1 VI, 2 difference monitors - it is a fantasy! And i will do it to see only fields temperature and alarms, for family It's enough . It run on the same PC in boiler room. I use "IDisplay" for additional virtual display on tablet with wifi, for house range only.
I have not written yet second Vi, but the basic idea is the definition of a second monitor on the system, the calculation of the coordinates of the display and show the temperature field and alarms. I know how to do it, it's not a problem. The problem is to exchange the setpoint temperature.
Thaks!
07-31-2016 12:32 PM
I, myself, have never used it, but it sounds like you might be able to do this with LabVIEW's Data Dashboard (see a Data Dashboard tutorial here). I'd be interested in knowing if this is what you need ...
Bob Schor
07-31-2016 01:04 PM
I'd say a simple TCP socket is the way to go here. Provided the two can be networked of course.
08-01-2016 10:07 AM
Yes, it may be appropriate. But maybe there is a way to do it another way?
08-02-2016 02:07 PM
I think TCP is probably the easiest way too. I put a link that explains the basics of that here, in case maybe you didn't want to use it because you weren't familiar with it.
08-02-2016 02:39 PM
Help Find Example >>> Search
Search for "Remote Panel Methods".
LabVIEW will expose ActiveX methods over a network. Using VI Server Call by reference nodes it is possible to invoke from one PC and VI that runs on another PC and get the results returned to the original calling VI as if the code executed on the local machine.
In the early days of LV-RT VI Server was THE way to control the RT applcation.
I find this to be a very simple approach because the connection and all of the extra stuff required to pass info via TCP are all handled by LabVIEW.
Ben
08-03-2016 09:25 AM
Hello.
I looked at these two methods, it is very interesting. TCP provides an easy link between the two Vi. But how to organize equal control? So far, not even ideas.
Thansk!
08-03-2016 09:35 AM
@black1 wrote:Hello.
I looked at these two methods, it is very interesting. TCP provides an easy link between the two Vi. But how to organize equal control? So far, not even ideas.
Thansk!
Make the "Served" VI and Action Engine and implement the logic details INSIDE the AE to coordinate passing control between the nodes. Using a served AE lets you ensure that there are no race conditions between the networked nodes becuase all of the logic should be encapuslated in the AE.
I have used that approach going back to LV 6i (may farther... not sure) and it works as well across a network as it does across application instances and it work fine.
Ben