Jump to content

Recommended Posts

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
 
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

  • Like 2
Link to post
Share on other sites
  • 5 months later...
  • 2 weeks later...
  • 1 month later...
  • 4 weeks later...

@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

  • Like 1
Link to post
Share on other sites
@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

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 by LogMAN
Link to post
Share on other sites

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 by Bobillier
Link to post
Share on other sites

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 by Bobillier
Link to post
Share on other sites
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

~,~

Link to post
Share on other sites
  • 2 months later...

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

 

 

 

post-52427-0-27167200-1404994863.png

Link to post
Share on other sites
  • 2 weeks later...

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

Link to post
Share on other sites

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 by RnDMonkey
Link to post
Share on other sites

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.

 

 

post-43593-0-66642500-1406562235_thumb.p

post-43593-0-09390700-1406562237_thumb.p

Link to post
Share on other sites

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?

 

~,~

Link to post
Share on other sites

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.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Similar Content

    • By javier_r
      VIPM.io now allows you to post LabVIEW Resources, Ideas, and Tools. For example, you could post a link to a video tutorial or blog article about a package. You can also post ideas, like feature requests or new tools. Best of all, package developers are notified when you post your ideas and resources, and you can comment and discuss posts with the community. Take a look at this video to learn more: https://www.vipm.io/posts/664960df-f111-4e13-989a-24be8207182d/

    • By Shuvankar Das
      I want to connect My ccd camera with labview. The details of my system is given bellow. I cannot connect it please help   OS:  WINDOWS 7, 64bit   LabView Run-Time 2013(64-bit) NI-IMAQ 4.8 NI-IMAQdx 4.3   Camera: QICAM Monochrome Cooled (QIC-F-M-12-C) Model QICAM Resolution 1392 x 1040 Sensor 1/2" Sony ICX205 progressive-scan interline CCD Pixel Size 4.65 x 4.65µm Cooling Type Peltier thermoelectric cooling to 25˚C below ambient Digital Output 12 bit Video Output FireWire (IEEE 1394b) Max. Frame Rate 10 fps full resolution @ 12 bits Pixel Scan 20, 10, 5, 2.5MHz Mount Type C-mount optical format  
       
    • By javier_r
      Hello everybody!
      Wondering how many people have tried the new vipm.io site. We have added a ton of features to make it easy to Discover LabVIEW Tools and there are some cool ones coming soon.
      Check it out and let me know what you think 😀
       
      Javier

    • By DigDoug
      CLA_ATM_QMH_PRACTICE.zipHi Folks,
       
      I'm taking the CLA exam in a few weeks and would like some feedback on the solution I put together (attached). A few specific questions:
      Can I dump tags in the VI Documentation of the VI like I did in Error Handler - Console Error.vi and get credit since there are instructions for developers to complete this work? This would be my strategy if I run out of time. 
      Does this seem like a passing solution? Why/why not?
      Where do you think I would lose the most points in this solution?
      Any other feedback on this exam or general strategy tips are greatly appreciated!
       
      Best Regards,
      Aaron
    • By David Akinpelu
      I am implementing a TCP connection between MyRio(client) and Python(server). The goal is to send data from the server to the client, perform some calculations, and send the result to the server. I need to keep changing the data being sent to the client. I noticed the first data works fine and the result returned to the server, but the client could not read subsequent data. I debugged and was able to detect that the error is coming from the first read function is the "Reading values subvi"  but I don't know how to correct it. How do I go about it?
      I have attached the files below.
      Reading Unknown Bytes from TCP.vi Second_client.vi SimpleServer.py
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.