Display files/directories of a remote system (RIO) on a host machine (PC)

Hello,
Please assume that we are discussing software built on the standard "Labview FPGA Control on Compact RIO" sample project. The host is a standard PC running LV14 Fall edition, the remote system is an sbRIO-9636 having an SD card and a USB HDD attached. The objective is process control. The process being controlled is not relevant to the question.
This question is about implementing the following functionality: the user operates a host machine running a Labview user interface vi (UI Main.vi) locally on the host machine. Part of this vi must offer the user a built in dialogue (some express vi or another) or custom dialogue (a bespoke vi displayed on demand). The dialogue must display the directories and files of the remote system which runs RT Main.vi and it must allow the user to select a single XML file on the remote system (which contains some generic configuration information). The name of the file will then be passed to the remote system and the remote system will act to open it and populate some configuration variables.
I am sure that a widely used solution exists for this problem but I've not found the right words to type into my favourite search engine yet to produce the result. I propose the following:
1) User clicks a "select config file" button on UI Main.vi
2) The UI Main.vi event loop enqueues a message on the UI Main message queue based on the value change event caused by the button press
3) The UI Main.vi message loop enqueues a separate message on to the "UI Command Stream" network stream
4) The RT Main.vi, RT Loop - UI Commands.vi subvi receives the message from the stream and enqueues it on the RT Main.vi message queue
5) The RT Main.vi message loop performs some functions to read the disk structures, directories and file names from the RT system
6) The file and directory name data in (5) is converted to a variant and is passed along with a suitable message into the RT Writer network stream
7) The UI Main.vi periodically reads the RT Writer network stream (it's in the "monitoring loop") and enqueues the received message (from 6) into the UI message queue
8) The UI Main message queue populated the UI Main front panel with the data
9) The user selects the directory and file they desire and clicks an "ok" button
10) The ok button click causes the event loop of UI main to enqueue a message in UI Main.vi's message queue due to the value change on the ok button
11) The UI Message loop enqueues a message on to the "UI Command Stream" network stream with the selected fully qualified file name of the selected file as the data (stored as variant)
12) The RT Main.vi, RT Loop - UI Commands.vi subvi receives the message from the stream and enqueues it on the RT Main.vi message queue
13) The RT Main.vi message loop opens the XML file and populated the appropriate variables with the configuration options therein.
The user should be able to cancel the dialogue and avoid using a configuration file but I have not delt with that here.
Now for the questions:
1) Is this a logical approach?
2) Are there any suggestions for a better way?
3) Any links to some pre-written code that will allow me to impliment all or part of this with minimum effort (I'm thinking here of the dialogue box bit rather than the network streams and events bit as those structures are extant and have lots of bespoke code already in them)?
Thanks,
James
Solved!
Go to Solution.

Hi Bob,
Thanks for your input. You're right I have used network streams. 
I implimented more or less what I said in my original post. It works. My main objective was to keep all the config stuff, and data for the particular target on the target's SDCard. On reflection that did make my life much harder than keeping stuff on the host. 
It is more (quite a lot more) involved to keep the config files on the target and send directory info etc. back to the host on demand. If I was to do this again I would probably keep the config files on the host machine and keep them in Dropbox or a Google drive so that if I had more than one host to work from (Work PC, Home PC and Laptop...) I would have all my files with little effort. Still I didn't konw that when I started.
Thanks,
James

Similar Messages

  • Display of directory structure of remote system in GUI

    Hi All,
    I have the following requirement and request for your suggestion.
    I have two systems namely, A & B, on each of which a separate java program is running. And, these two programs are communicating to each other through RMI.
    The requirement is that, I have to show a GUI that displays the directory structure of system B from with in the program running on A.
    If any one has a solution for this, request you to please advice me on this.
    Looking forward for your help as early as possible.
    Regards
    Sekhar

    Thanks for your reply Ronillo.
    But, my requirement is like this.
    If you can spare few min. of your time, I will
    explain you my exact requirement.
    A & B are two systems conected in network.
    A & B are running programs (java) and program in A
    will make request to program in B thru. RMI.
    Now, one of these requests are... For transfering
    files on system B to system A.
    User working on A will make request for transfer of
    few files from System B to A.
    When he/she makes such request from System A, then a
    GUI (open file dialog box) shall get displayed on
    system A showing the directory contents of System B
    so that user can make selection of file(s) (that
    belong to System B) for file transfer.
    So for this, I need the "remote file chooser" kind of
    functionality.
    We are using java RMI for this.
    Your suggestions are most welcome on the possible
    implementation of this.
    Regards
    Naga SekharIm sorry for my late reply, Im busy with my thesis project. I dont know if what I think is right but, here please study the following:
    Just to list a few...
    01.) javax.swing.filechooser.FileFilter.
    02.) javax.swing.filechooser.FileView.
    03.) javax.swing.filechooser.FileSystemView.
    04.) java.net.URL.
    04.) java.net.URLConnection.
    05.) java.io.BufferedInputStream.
    06.) java.io.BufferedOutputStream.
    07.) java.io.FileInputStream.
    08.) java.io.FileOutputStream.
    09.) java.io.BufferedReader.
    10.) java.io.BufferedWriter.
    11.) Java Native Interface.
    You may create a custom file system view that you can pass to the constructor of file chooser. Google and read tutorials for more info.
    Okay? ^_^ God bless you all.
    Thank you -Ronillo

  • How to get Remote Data from a file which is in remote system

    Hi everybody,
    I have developed four classes.
    FileInterface.java:-
    import java.rmi.Remote;
    import java.rmi.RemoteException;
    public interface FileInterface extends Remote {
    public byte[] downloadFile(String fileName) throws
    RemoteException;
    FileServer.java:-
    import java.io.*;
    import java.rmi.*;
    public class FileServer {
    public static void main(String argv[]) {
    if(System.getSecurityManager() == null) {
    System.setSecurityManager(new RMISecurityManager());
    try {
    FileInterface fi = new FileImpl("FileServer");
    Naming.rebind("//10.161.15.219/FileServer", fi);
    } catch(Exception e) {
    System.out.println("FileServer: "+e.getMessage());
    e.printStackTrace();
    FileImpl.java:-
    import java.io.*;
    import java.rmi.*;
    import java.rmi.server.UnicastRemoteObject;
    public class FileImpl extends UnicastRemoteObject
    implements FileInterface {
    private String name;
    public FileImpl(String s) throws RemoteException{
    super();
    name = s;
    public byte[] downloadFile(String fileName){
    try {
    File file = new File(fileName);
    byte buffer[] = new byte[(int)file.length()];
    BufferedInputStream input = new
    BufferedInputStream(new FileInputStream(fileName));
    input.read(buffer,0,buffer.length);
    input.close();
    return(buffer);
    } catch(Exception e){
    System.out.println("FileImpl: "+e.getMessage());
    e.printStackTrace();
    return(null);
    FileClient.java:-
    import java.io.*;
    import java.rmi.*;
    public class FileClient{
    public static void main(String argv[]) {
    try {
    String name = "//10.161.15.219/FileServer";
    System.out.println("1");
    FileInterface fi = (FileInterface) Naming.lookup(name);
    System.out.println("2");
    byte[] filedata = fi.downloadFile("//10.161.15.88/C/RMITEST/Test.txt");
    System.out.println("3");
    File file = new File("//10.161.15.219/T.txt");
    System.out.println("4");
    BufferedOutputStream output = new
    BufferedOutputStream(new FileOutputStream(file.getName()));
    output.write(filedata,0,filedata.length);
    output.flush();
    output.close();
    } catch(Exception e) {
    System.err.println("FileServer exception: "+ e.getMessage());
    e.printStackTrace();
    Now Iam trying to access text file which is in remote s/m.
    It is developing stub and skeleton classes,when i run it is coming for local
    If I want to access remotely the error is coming like this
    1
    2
    3
    FileServer exception: null4
    java.lang.NullPointerException
         at FileClient.main(FileClient.java:18)
    Can anybody help me please.

    Probably the easiest way in this case is to run the performance trace (System/Utilities/Performance trace). Start transaction MD04, put on the trace in another window, press enter to see the stock/requirements list, then stop the trace and list the results. Then you'll see which tables were accesses with which queries.

  • File Operations to A Remote system

    Hi,
    Is it possible to transfer files from my server to a remote machine through the internet. Basically my server is a web service which will be running on a remote machine over the internet. I need to transfer the files received by this service to my system at my place. Can someone help me in this regard!!! I working using NetBeans and the Server is deployed on Apache Tomcat.
    this is the code i used:
    byte[] iresult = port.inputgraph(key);
    DataOutputStream dos =new DataOutputStream(new BufferedOutputStream(new FileOutputStream("/root/Desktop/input.png")));
    dos.write(iresult);
    Thanks in Advance,

    hi,
    thanks for ur reply......
    I did the same thing . but when i use the outputstream command it gets stored only in the server and not in the local machine.
    this is the code i used:
    byte[] iresult = port.inputgraph(key);
    DataOutputStream dos =new DataOutputStream(new BufferedOutputStream(new FileOutputStream("/root/Desktop/input.png")));
    dos.write(iresult);
    Edited by: ram.west on Oct 20, 2008 9:01 AM

  • Pages not displaying images when accessed from remote system-error on page.

    Urgent pls help...
    Hi,
    We installed 10G database and installed application express.
    we installed apex using the command @apexins SYSAUX SYSAUX TEMP /i/
    then changed password using @apxchpwd
    then @apxldimg.sql D:\oraclexe
    we installed databse in D:
    in D:/oraclexe we copied apex folder and done the above operations.
    we run the listener using command
    java -Dapex.home=D:/oraclexe/apex -Dapex.images=D:/oraclexe/apex/apex/images -Dapex.port=8585 -jar D:/oraclexe/apex/apex.war
    then for four days it was working fine,
    our team can access pages from client system and we were working on our project.
    But for the last two days it is not working properly. I mean apex is loading with errors(without images).
    the page is showing without images and links are not working
    just data's in pages is only seen.
    But when i connect through localhost it is working properly.
    we installed it on server then there also localhost:8080 is working
    but from client system has the above said problem
    Give us a solution...
    Thanks in advance...
    Edited by: 874343 on Jul 22, 2011 5:26 AM

    ListenerAdmin is showing blank screen
    this is my command prompt when running listener
    D:\oraclexe>cd apex
    D:\oraclexe\apex>java -Dapex.home=D:/oraclexe/apex -Dapex.images=D:/oraclexe/ape
    x/apex/images -Dapex.port=8585 -jar D:/oraclexe/apex/apex.war
    INFO: Starting: D:\oraclexe\apex\apex.war
    See: 'java -jar apex.war --help' for full range of configuration options
    INFO: Extracting to: D:\oraclexe\apex
    INFO: Using classpath: file:/D:/oraclexe/apex/apex/____embedded/start.jar:file:/
    D:/oraclexe/apex/apex/WEB-INF/lib/apex.jar:file:/D:/oraclexe/apex/apex/WEB-INF/l
    ib/commons-fileupload-1.2.1.jar:file:/D:/oraclexe/apex/apex/WEB-INF/lib/je-4.0.1
    03.jar:file:/D:/oraclexe/apex/apex/WEB-INF/lib/ojdbc6.jar:file:/D:/oraclexe/apex
    /apex/WEB-INF/lib/ojmisc.jar:file:/D:/oraclexe/apex/apex/WEB-INF/lib/poi-3.6-200
    91214.jar:file:/D:/oraclexe/apex/apex/WEB-INF/lib/ucp.jar:file:/D:/oraclexe/apex
    /apex/WEB-INF/lib/xdb-11.2.0.jar:file:/D:/oraclexe/apex/apex/WEB-INF/lib/xmlpars
    erv2-11.2.0.jar:
    INFO: Starting Embedded Web Container in: D:\oraclexe\apex
    Jul 22, 2011 6:48:19 PM ____bootstrap.Deployer deploy
    INFO: Will deploy application path=D:\oraclexe\apex\apex\WEB-INF\web.xml
    Jul 22, 2011 6:48:19 PM ____bootstrap.Deployer deploy
    INFO: deployed application path=D:\oraclexe\apex\apex\WEB-INF\web.xml
    Using config file: D:\oraclexe\apex\apex-config.xml
    -- listing properties --
    PropertyCheckInterval=60
    ValidateConnection=true
    MinLimit=1
    MaxLimit=10
    InitialLimit=3
    AbandonedConnectionTimeout=900
    MaxStatementsLimit=10
    InactivityTimeout=1800
    MaxConnectionReuseCount=1000
    APEX Listener version : 1.1.2.131.15.23
    APEX Listener server info: Grizzly/1.9.18-o
    Jul 22, 2011 6:48:44 PM com.sun.grizzly.Controller logVersion
    INFO: Starting Grizzly Framework 1.9.18-o - Fri Jul 22 18:48:44 IST 2011
    INFO: http://localhost:8585/apex started.
    Using JDBC driver: Oracle JDBC driver version: 11.2.0.2.0
    Edited by: 874343 on Jul 22, 2011 6:42 AM
    Edited by: 874343 on Jul 22, 2011 6:51 AM

  • How to create a jar file which is in the remote system?

    Hi,
    I have a set of files that resides in a remote system,which have to be "jar"red. I have a firewall in between. I want to create a jar file out of the files situated in the remote system.How do i go about this process.?

    Hi,
    You can't do that in a simple way. You need to have a port open in the firewall, and you need to have a server process on the remote machine.
    Kaj

  • How to call an EXE file on a remote system from SAP system?

    Hi Friends,
    I want to execute an EXE file existing on the remote system from SAP system. Could some one give me an idea of how to execute that?
    Thanx in advance,
    Ram

    Hi Ram,
    Try this
    SXPG_COMMAND_EXECUTE
    Reward if this helps,
    Satish

  • Max crash under "Remote systems"

    Most of the time when MAX will crash when the mouse is clicked over the cRIO-9014 icon under remote systems.
    Is there a fix for this? MAX 4.5 and VISA 4.4 are the software installed in the targets. See jpg file for items under remote systems.
    Attachments:
    Max Crash.JPG ‏136 KB

    Anna,
    The mouse can be clicked to open all of the remote system objects but when the mouse is clicked over Ni-cRIO9014-013DBB8D, the Ni-cRIO9014-013DBB48 or the "Devices and Interfaces" icons MAX freezes (mouse icon becomes an hour glass). There are no warnings and after waiting for about 10 minutes I click the close button on the top right hand corner. See jpg message for the response.
    I've made a project with the cRIO 9014 and Ni9211 modules and it does work (can record tempeature). It seems to occur more often because I was able to get the URL for the project by clicking on the Ni-cRIO9014013DBB8D but now I'm not able to anymore.
    Hope this helps to better define the problem.
    Steve
    Attachments:
    Max Message aft crash.JPG ‏125 KB

  • File to RFC - error while processing message to remote system:com.sap.aii.

    Hi
    i m working on File to RFC scenario. the records are getting displayed in sender CC and receiver CC. But in receiver CC i m also getting the following error:
    Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.adapter.rfc.core.client.RfcClientException: JCO.Exception while calling ZRFC in remote system (RfcClient[CC_RIS_STC_PIMASTER_RECEIVER]):com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE:      Screen output without connection to user.    
    Error in processing caused by: com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.adapter.rfc.core.client.RfcClientException: JCO.Exception while calling ZRFC in remote system (RfcClient[CC_RIS_STC_PIMASTER_RECEIVER]):com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE:      Screen output without connection to user.   
    It was working fine few hours earlier but showing this error now. i was giving a SUBMIT program , but stopped that now.
    But still facing the same problem. and in SXMB_MONI its showing recorded for Outbound processing.
    could anyone help.

    Hi
    I am Facing  Following Error When I am trying to call SAP Screen through JCO.jar
    com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: Screen output without connection to user
    Please Guide Whethere it is possible to call SAP screen Through JCO.jar  ot NOT
    Please HELP if it is possible to Call SAP screen through JCO.jar with step and Code
    Thanks
    Vivek

  • How To Display the directories of a System.

    How To Display the directories of a System.

    Hmm I think you need to be more specific. Do you mean like this:
    File f  = new  File("c:/");
    File[] fs = f.list();That lists all the files in that folder, then you can use the method isDirectory to check it. Mind you, you would have to go though every folder.

  • Canot display the remote system logs in the A51 system in the sm21

    Hi firend,
       could you plase help to me, i could not able to see the remote system logs in sm21 transaction.How can overcome this problem
    Thanks,
    Lakshmankumar.

    Lakshmankumar,
    Have you done system copy? or is it a new installation?
    We had this problem after we have done system copy on to new system (New Hardware).
    You can check the URL provided by Juan Reyes.
    I also suggest checking few more things like below.
    Are you able to see instances from SM21 u2192 system log u2192 choose u2192 remote system log u2192 instance name u2013 check to see if you are able to see other application servers are not.
    If you are not able to see other apps servers try these steps.
    Execute the function module TH_SERVER_LIST on all application servers (start SE37, insert TH_SERVER_LIST, press F8, press F8 again). As a result you will get a table "LIST", with a mouse clickthe contents of the table will be displayed. In the column "SERV" normally the sapdp* services should be displayed,these are used to connect to the dispatcher of the instance. Most probably you will not see a sapdp<nn> entry but some strange names,e.g. cpq-tasksmart, intraintra, tick-port.
    In this case please check the/etc/services file (if using Unix) of all application servers. All duplicate entries of the interval 3200 to 3299 should be commented out if they are already used for the sapdp<nn> services.
    After the restart of the instances the function module should return allsapdp* ports correctly and all remote syslogs should be displayed now.
    Thanks,
    Venkat.

  • How the display shared directories onthe remote pc

    i want to implement a program which shows the shared directories on the remote pc. i have uses File
    1)
    File yen=new File("//139.179.192.240/");
    File[]abc=yen.listFiles();
    for (int i = 0; i<abc.length; i++)
    System.out.println (abc);
    it doest work!!!
    i used
    2)
    File yen=new File("//139.179.192.240/shared");
    File[]abc=yen.listFiles();
    for (int i = 0; i<abc.length; i++)
    System.out.println (abc[i]);
    it works and shows the files inthe shared directory bu iwant that list the shared directories on the pc not the files in a specific direcory
    i want to do the 1) as seen above? how can i do that?
    how can i show the shared directories on a remote pc? please help me
    i am waing your answer. with my best wishes..............

    it works and shows the files inthe shared directory bu
    iwant that list the shared directories on the pc not
    the files in a specific direcory
    i want to do the 1) as seen above? how can i do that?
    how can i show the shared directories on a remote pc?
    please help me
    i am waing your answer. with my best
    wishes..............I haven't looked deeply into its capabilities but check out http://jcifs.samba.org/. The samba team have done a Java implementation of Windows network file sharing that can probably do what you want.

  • Creating File System Repository for a remote system

    Hi Experts,
    My requirement is that I need to create a KM repository in EP from where I need to upload documents into the BW system. Is File System Repository the right type of repository which I need to create for this purpose?
    If yes, then in what format do I have to specify the value of the Root Directory property of the repository? I have a folder /data/docs created in the BW system within which I want to upload documents using this repository. But since this folder is located on the BW system which is a remote system for EP, I am not sure how I have to enter the path to this folder.
    Can anyone give me any hints on this?
    Warm Regards,
    Saurabh

    Hello Saurabh,
    I don't think an FS repository is what you are looking for in this scenario, you could instead use a BI Repository Manager, for more information see:
    http://help.sap.com/saphelp_nw70/helpdata/en/43/c1475079642ec5e10000000a11466f/frameset.htm
    Kind regards,
    Lorcan.

  • RIO server could not be found on the specified remote system

    When trying to add a cRIO9074 to an empty project, I get the following message: 
     The RIO server could not be found on the specified remote system. Ensure that NI-RIO software is installed and that the RIO server is running and properly configured.
    But when installing software from MAX I cannot find anything called NI-RIO.  I am using LabVIEW 2012 + Realtime 2012.
    As a result of this, I can't see the modules in the project window.  However, I can deploy code to the cRIO that doesn't use any input or output.

    I am getting the same message, I am using NI sb-RIO 9611. Using LabVIEW 13, NI RIO 13, RIo Device driver (most recent), Configured the IP of the device from NI MAX, Installed the software in the remote target. 
    Attachments:
    ERROR.png ‏192 KB
    Device Setup.png ‏136 KB

  • How to create the log file in remote system using log4j.

    Hi,
    How to create the log file in remote system using log4j. please give me a sample code or related links.The below example i used for create the log file in remote system but it return the below exception.Is there any authandication parameter for accessing the remote path? Please help.
    public class Logging
    Logger log=null;
    FileAppender fileapp=null;
    public Logging(String classname)
    try
    log = Logger.getLogger(classname);
    String path=" [\\192.168.0.14\\c$\\LOG\\d9\\May_08_2008_log.txt|file://\\192.168.0.14\\c$\\LOG\\d9\\May_08_2008_log.txt]";
    fileapp = new FileAppender(new PatternLayout("%r [%t] %-5p %c %x - %m%n"),path, true);
    log.addAppender(fileapp);
    log.info("Logger initilized");
    }catch(Exception ex)
    ex.printStackTrace();
    java.io.FileNotFoundException: \\192.168.0.14\c$\LOG\d9\May_08_2008_log.txt (The network path was not found)
    at java.io.FileOutputStream.openAppend(Native Method)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at org.apache.log4j.FileAppender.setFile(FileAppender.java:290)
    at org.apache.log4j.FileAppender.<init>(FileAppender.java:109)
    at annwyn.logger.BioCapLogger.<init>(Logging.java:23)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Please help.
    Thanks in advance.
    Saravanan.K

    Sorry path is missing for the above request.
    path="\\192.168.0.14\c$\LOG\d9\May_08_2008_log.txt ";
    please help.
    Saravanan.K

Maybe you are looking for

  • Mass reversal of documents posted using F.13

    Hi Friends, We have some GR/IR open items as on 28.02.2010, and we ran the F.13 program to clear those line items with clearing date 03.03.2010. Since all those documents cleared on 03.03.2010. In total there were 1000+ documents posted by the progra

  • Freight cost per meter (load lenght)

    Dear All, I try to define shipping cost calculation by length(in meter) in a transportation project I have managed a condition type (multi-dimentional) with calculation base 'C : Handling Units' 2 scales, one for the transportation zone destination a

  • Manage certificate on ISE

    Hi All, Need explanation on manage certificate on ISE 1.1.1 If i am trying to let ISE primary node register another standalone unit as Inline posture node, what should i deal with this setting 01. on local certificate's Bind CA Signed Certificate Ean

  • FTP throgh abap

    Can anybody send me any code sample to execute FTP through ABAP..Points Guranteed.

  • Disable Pagma and Cache-Control headers in SunOne WebServer 6.1

    Hi, I want the [Pragma] and [Cache-Control] headers completely disappear from SunOne WebServer 6.1 JSP responses (like the SunOne WebServer 6.0 SP8, http/1.1 but no [Pragma] and [Cache-Control] headers), can I achieve this? Thanks, Harry