Norm Kirchner Posted August 6, 2013 Report Posted August 6, 2013 lEver wanted to communicate with VI which are across context boundaries? Those typical boundaries, are different LabVIEW project LabVIEW into LabVIEW EXE, EXE to EXE PC to PC across a network or even the internet Usually to get around these boundaries, we have to flatten to some easier transport mechanism like a string and then unflatten on the other end. There are a whole other host of situations and and reasons why cross context boundary communication is useful and not just a simple slam dunk using existing primitives in LabVIEW REx (Remote Export Framework) is a useful framework that you can take advantage of to eliminate the typical boundaries Instead of spend 45 minutes trying to describe it, see the linked videos below, (also in the PPT) until more written content gets made. Basic Demo - Current App http://screencast.com/t/JbW2mM3jx Creating & Using a New Command http://screencast.com/t/GhkE2CEx4Ip Send into EXE http://screencast.com/t/bxbI0B4l8Xs EXE to EXE http://screencast.com/t/xCJw2B39mFQr Debugging Ports / Services http://screencast.com/t/E0RXrgM3Yex Using Service Dump Info http://screencast.com/t/oTUSH5aFqo9S Network Communication http://screencast.com/t/KuTPTKA8rmC1 Rebuild of EXE (addendum) http://screencast.com/t/36oWmrybjRMj ******************* 1/12/15 Update: attached new VIPC which upgrades REx to 1.14.0.31 to address the issues w/ things not moving into the tools menu properly Remote Export – REx Framework.pptx REx Installation Full.vipc 01/31/22 Update: Added update to Error handling on response, required ni_lib_rex-1_15.0.30.vip 2 Quote
hooovahh Posted August 6, 2013 Report Posted August 6, 2013 Very cool Norm. Just saw the presentation by Nancy and I can't wait to try this out. Quote
shoneill Posted August 8, 2013 Report Posted August 8, 2013 Using a Powerpoint file to communicate a bunch of URLs..... Quote
Norm Kirchner Posted January 8, 2014 Author Report Posted January 8, 2014 Just updated VIPC which set VI in framework to necessary behavior for reentrancy, error handling and clone type. Should be safe to move any code forward that uses this Quote
ak_nz Posted January 8, 2014 Report Posted January 8, 2014 Any chance of this ending up on the Tools Network eventually? Quote
Val Brown Posted January 9, 2014 Report Posted January 9, 2014 Another taste piece of code from the Captain. Nicely done! Quote
Norm Kirchner Posted January 23, 2014 Author Report Posted January 23, 2014 Any chance of this ending up on the Tools Network eventually? Potentially. I'd just need to go through the hoops to get it Qualified. Probably some more/better documentation as well. Would that help you out particularly? Quote
Bobillier Posted January 27, 2014 Report Posted January 27, 2014 Very interesting !!! Any Chance to have it in 2011 version ? Regards Eric 1 Quote
Norm Kirchner Posted February 1, 2014 Author Report Posted February 1, 2014 Very interesting !!!Any Chance to have it in 2011 version ? Regards Eric I think I could roll it back that far. when could you try it out? Quote
Bobillier Posted February 4, 2014 Report Posted February 4, 2014 I could try it during next week if your are ready, (or after if not) Thanks Quote
Bobillier Posted March 27, 2014 Report Posted March 27, 2014 Hi Norm Have you progress about 2011 convertion ? Best regards Eric Quote
Norm Kirchner Posted April 21, 2014 Author Report Posted April 21, 2014 @Bobillier Please check out the attached files that I did a save for previous on. I don't have 2011 on my pc (or the time to check the install at the moment) so if you could see if it's operational for you that'll help me out (along w/ anyone else that wants to use the 2011 version) Thanks, Norm REx 2011 Port.zip 1 Quote
LogMAN Posted April 22, 2014 Report Posted April 22, 2014 (edited) @BobillierPlease check out the attached files that I did a save for previous on. I don't have 2011 on my pc (or the time to check the install at the moment) so if you could see if it's operational for you that'll help me out (along w/ anyone else that wants to use the 2011 version) Thanks, Norm Thanks for the port! I've just tested on my machine with LV2011 and it works just fine. I was able to run the DEMO Command Sender.vi & DEMO Command Listener.vi in the development environment, as well as the sender in the IDE and the listener as separate executable. No relinking issues or any kind of problem with file versions this far. EDIT: Well ok, the Rex_Sprinboard library seems to miss some files for generating user icons and such. I guess that's just not available in LV2011. It's missing files from ..vi.libLabVIEW Icon API* Does my installation miss something? Edited April 22, 2014 by LogMAN Quote
Bobillier Posted April 22, 2014 Report Posted April 22, 2014 (edited) Thanks Norm I can open Rex.LVLib without problem in LV2011. Your Zip contain Session-Root.Lvclass too. is it normal? Please, is it possible to have your exempl in LV2011 ? Oups i see them in other folder Best regards Eric Bobillier Edited April 22, 2014 by Bobillier Quote
Bobillier Posted April 22, 2014 Report Posted April 22, 2014 (edited) Hi Norm After few controls , it appears that one def-type ( KeyedArray.ctl)is missing in your dependency for the Rex_Sprinboard,and all about ICON API are missing too. Eric Edited April 22, 2014 by Bobillier Quote
Norm Kirchner Posted April 28, 2014 Author Report Posted April 28, 2014 EDIT: Well ok, the Rex_Sprinboard library seems to miss some files for generating user icons and such. I guess that's just not available in LV2011. It's missing files from ..vi.libLabVIEW Icon API*Does my installation miss something? All, I can't do much about the Icon stuff for the 2011 port as a lot changed around those versions. Your best bet is simply to edit the Command Creator Springboard and comment out the icon modification part of the code. It should be easy to find but if you run into trouble let me know and I'll direct you along. Hi Norm After few controls , it appears that one def-type ( KeyedArray.ctl)is missing in your dependency for the Rex_Sprinboard,and all about ICON API are missing too. Eric KeyedArray.ctl should make it's way onto your PC if you install AMC from the tools network. I'm sorry about the dependency, but because I'm not going to spend too much time on the 2011port, hopefully this will work Please let me know if that doesn't Happy wireworking ~,~ Quote
and2014en Posted July 10, 2014 Report Posted July 10, 2014 Hello Norm, Thanks for your work! I installed the REx using "REx Installation Full.vipc" in LabVIEW 2012 SP1. Everything is working perfect (the same as described in videos), but I can't create a new command with the "MAIN - Create New REx_CMD.vi". I have the attached error message displayed when press "Build". Can you help me to resolve this issue? Regards, Andrei Quote
and2014en Posted July 11, 2014 Report Posted July 11, 2014 I resolved the issue and now everything is working smoothly... The REx folder had to be moved on C:\Program Files (x86)\National Instruments\LabVIEW 2012\project\ Andrei Quote
and2014en Posted July 11, 2014 Report Posted July 11, 2014 Is it possible that the REx to send/receive data between two EXE on the same local host, but build from different projects? Thanks! Quote
Norm Kirchner Posted July 22, 2014 Author Report Posted July 22, 2014 Is it possible that the REx to send/receive data between two EXE on the same local host, but build from different projects? Thanks! Yes. This allows you to talk between ANY LabVIEW instance irrespective of the boundary. Good luck! The only thing to be very intentional in setting up, is making sure that you have the right 'Service Name' configured for the listener and pointing to that specific one on the remote connection Good luck Quote
RnDMonkey Posted July 28, 2014 Report Posted July 28, 2014 (edited) Very, very cool, Norm. Let's say I wanted to remotely monitor a test system. Would it be breaking to have the remote system broadcast its disposition to the entire network every 30 seconds or so, ignoring errors in the case that no listeners are running? What are the limits of data types that can be passed? What would be the ideal way to show the entire front panel of the remote system? Duplicate the front panel on a listener, bundle the data on the sender, then unbundle on the listener? Edit: I'm imagining more than just the remote panel capabilities built into LabVIEW. Edit 2: So I upgraded from 1.12.0.27 (installed when I installed TLB`, I think) to the version attached here (1.14.0.29), and now the REx»New Command button is gone from my tools menu, and the examples folder went from having the source files shown in your video, to only having the Listener exe and ini in it. It's like it uninstalled what I had and didn't replace it. I did uninstall the whole package and reinstall it, and restart LabVIEW, but no joy. Edit 3: Ok, I found the demos, at least. Looks like everything is in user.lib now. Were the tools menu options supposed to go away? Ryan R. Edited July 28, 2014 by RnDMonkey Quote
RnDMonkey Posted July 28, 2014 Report Posted July 28, 2014 This is not going well for me at all. The springboard just won't work. Between the package being installed to a different location than the springboard expects, and the attached casting error, I can't get it to work. Ryan R. Quote
RnDMonkey Posted July 28, 2014 Report Posted July 28, 2014 Well, after a full system restart, the menu options are back, and creating a new command worked! Amazing what restarting a Winblows machine can do! Ryan R. Quote
Norm Kirchner Posted August 3, 2014 Author Report Posted August 3, 2014 Well, after a full system restart, the menu options are back, and creating a new command worked! Amazing what restarting a Winblows machine can do! Ryan R. I'm sorry for all the troubles. It's true that I haven't done as much testing of the install w/ the recent builds. I'll double check and re-post the updates that you found. Thank you! Also, since you've now got command creation going, are you able to get it to talk across the boundaries you need? ~,~ Quote
0_o Posted August 4, 2014 Report Posted August 4, 2014 How secure are the messages communicating this way via tcp/ip and the vi server (correct me if this is not the case)? Is it open to simple sniffing/wireshark/viserver listen to all? I know this is not a specific issue for REx, I just thought that you might have a solution maybe by communication between processes in memory for local machines or hashing/encrypting the messages. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.