Home > Default > How to use the .aliases file to resolve a host's address?

How to use the .aliases file to resolve a host's address?

October 11Hits:0
Advertisement
I am trying to setup a communication between a
RT PXI system and a windows computer using network shared variables
(shortened to "shared variables" in the further text). Both of the
computers shall run compiled executables. The documentation concerning
this topic has been spread over several places and this is what I ended
up with.
There are three different possible setups.
1.
I am using shared variable nodes both on the RT PXI and on the windows
computer. The shared variables on the RT PXI are defined as "target
absolute" and are residing in a library on the RT PXI. The shared
variables on the windows computer will be set to "target relative" and
are residing in a library on the windows computer. The variables used
on the windows computer will be bound to the corresponding variables on
the RT PXI. If I run the applications on computers different from the
ones I used during development, I have only to change the .aliases file
for the windows computer and set there the correct IP for the RT PXI.
Additionally,
I have to deploy the library both on the RT PXI and on the windows
computer. This can be done from the windows computer, as the RT PXI
target does not support the invoke node that has to be used for this
purpose. Running the invoke node twice, once for localhost with the
client library and once for the IP of the RT PXI system and the host
library, I can deploy the libraries containing the shared variables
programmatically. At this point, the magic of the .aliases file will
fail and I have to find the IP of the RT PXI either by user input or
maybe by running the RT ping controllers.vi. The "Target IPAddress"
property of the "Deploy Library" invoke node makes sense in this
combination as we can deploy libraries also to other computers or
platforms.
See attached Shared Setup 1.png.
2. I am
using shared variable nodes both on the RT PXI and on the
windows computer. The shared variables on the RT PXI are defined as
"target absolute" and are residing in a library on the RT PXI. The
shared variables on the windows computer will also be set to "target
absolute" and will be taken from the library that resides on the RT
PXI. If I run the applications on
computers different from the ones I used during development, I have
only to change the .aliases file for the windows computer and set there
the correct IP for the RT PXI.
Additionally, I have to deploy
the library only on the RT PXI. Again, this can done by a helper
application on windows when the IP of the RT PXI is known or found by
using RT ping controllers.vi.
See attached Shared Setup 2.png.
3. I am using
shared variable nodes only on the RT PXI. The shared variables on the
RT PXI are defined as
"target absolute" and are residing in a library on the RT PXI. On the
windows side, I use direct access to the PSP by using DataSocket
functions. I can address a variable by using a DataSocket Open function
and inputting psp://IP_or_Hostname_of_RT_PXI/LibraryName/VariableName.
The magic of the .aliases files will fail already at this step. So I
have to find the correct IP or hostname by user input, setting a DNS
server to point to the correct IP or using the RT ping controllers.vi.
As
always, I have to deploy the library containing the shared variables to
the RT PXI. Again, this can done by a helper application on windows
when the IP of
the RT PXI is known or found by using RT ping controllers.vi.
As
I can use this approach to setup an array of valid variable names and
process the array by one single DataSocket read function inside of a
for loop more conveniently than using a case selector inside of a
for-loop and reading from different shared variable nodes, I prefer
this approach over the others.
See attached Shared Setup 3.png.
For approaches 2 and 3, at least the deploy process can be run by an
installer application independently of the main application as the
library will remain on the PXI until I manually undeploy it, even if I
reboot the PXI controller.
My questions are:
1. Did I describe the possible setups regarding the use of the shared variables correctly?
2.
Is there any means to get the IP address mapping from the .aliases
file, needed for deploying and for approach 3, other than opening and
reading the file itself?
Attachments:
Shared Setup 3.png ‏52 KB
Shared Setup 1.png ‏42 KB
Shared Setup 2.png ‏51 KB

Answers

Thank you for the reply... I am using a hardcoded filename for the
connection manager. How do I take the variable and change the filename in the connection manager?
Also there will be multiple filename and I would like to take the latest file and not just check if the same file has been updated.
UPDATE: I added the dynamic filename to the expression of the connection
manager and it worked.
You can use Foreach loop with file enumerator for that. It will iterate through files in folder and you can retrieve filenames using a variable created. Then pass variable as a parameter to script task.
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

Read other 4 answers

Tags:

Related Articles

  • How to use the .aliases file to resolve a host's address?October 11

    I am trying to setup a communication between a RT PXI system and a windows computer using network shared variables (shortened to "shared variables" in the further text). Both of the computers shall run compiled executables. The documentation con

  • Aliases will not resolve after 10.6.8 upgradeNovember 30

    I just upgraded to 10.6.8 on my power mac and now my desktop aliases will not resolve. Any ideas how to fix this?Reinstall OS X without erasing the drive Do the following: 1. Repair the Hard Drive and Permissions Boot from your Snow Leopard Installer

  • Aliased files can't be foundNovember 30

    After reading a tip in a magazine I decided to clean up my desktop. It was suggested I create a new folder, highlight all of the existing desktop items, and drag them into the new folder. That seemed to go okay. Now all the items are marked as aliase

  • All user in the aliases fileNovember 30

    How do i set the msg6.0 aliases file to send the messages to all users in mail system ? My mail server has 2,000 user s in ldap. It difficult to add 2,000 users in aliases file. And Can i set the privilege to user admin only to send the message to Al

  • Aliases file stop workingNovember 30

    Hi! I had migrated my sendmail aliases to the aliases file in sendmail 5.0. And all works fine for a long time Suddenly the server began to return error messages with the all the alias addresses. Recipient address: [email protected] Original addre

  • Workflow mts file to resolveNovember 30

    hi I have  a panasonic tm700 and I want to export my work into davinci resolve to colour correct. i have a pc with lots of power but i'm trying to figure out workflow to export the files into Resolve?  do I need a transcoder program? thanks sorry if

  • Pipe email using aliases fileNovember 30

    I am trying to pipe an email into php script using the aliase file in postfix. My test script looks like this: <?php $fd = fopen("php://stdin", "r"); $email = ""; while (!feof($fd)) { $email .= fread($fd, 1024); fclose($fd

  • 'aliases' file keeps reverting to original after editingNovember 30

    Until recently I've had no problem editing the 'aliases' file to add a alias to our postfix mail server. Suddenly the server keeps restoring the original back over my modified file.... about 10-40 seconds after editing and saving it. I notice when lo

  • Startup.aliases file corrupted on power loss on cFP 2220November 30

    We have had an issues several times with our cFP 2220 where the startup.aliases file is being corrupted presumably on shutdown and startup.  I was unable to grab the corrupted file but I believe that the system name was lost as it would explain my sy

  • "The hostname does not resolve to any configured address..."October 11

    I think this is a stupid question   But I just can't remember what I'm missing.  It's been a while since I set one of these up. I have just installed Lion and Server on a Mac Mini 2.66GHz C2D I'm not trying to change the Open Directory settins from S

Copyright (C) 2019 wisumpire.com, All Rights Reserved. webmaster#wisumpire.com 14 q. 0.692 s.