Running log on front panel

I am thinking about creating a running log on the front panel of my VI.  It is bascially a string indicator.   Each time I write to it in my VI, the indicator will keep what is on there, and write on the next line.  To do this, I am thinking about using a shift register to preserve what is in the indicator and continue to append to it. 
Is that the best approach?
Yik
Kudos and Accepted as Solution are welcome!
Solved!
Go to Solution.

Ray.R wrote:
... since we are sharing ideas ...
I had implemented something similar to what SMercurio described, except that I used an ActionEngine.  This allowed me to keep a log from any of the sub-vi's simply by "dropping in" the ActionEngine.  It had additional features to enable / disable logging, select a file/folder, etc.  Worked great.
Well, the core of it is an Action Engine. I just use wrapper VIs to perform certain functions. For example, there's a "Memory Log - Add Entry" VI that gets used by subVIs. That's just so I don't have to keep wiring the enum constant to specify what action to take. Gets tiresome after a while. 

Similar Messages

  • Is there a way to use the built-in Datalogging and programmatically log the front panel while the vi is running?

    I would like to use the built-in Data Logging feature. There is the "Log at Completion" option, but is there a way to programmatically make a new log record while running? I looked around in VI server and couldn't find any methods that would do that. Currently, I am grabbing all of the front panel control references using VI Server and if there are any changes, the changed values are written to a log file along with a date/time stamp. I'm mostly dealing with buttons, which simply change from 0 to 1 or 1 to 0, so it's not too hard to visualize what was pressed. It works okay for reconstructing what happened, but it would be much nicer to use the built-in fe
    ature because you can "replay" directly onto the front panel and actually see what the changes were. However, without being able to programmatically make a new log, it won't work for me.

    Jake,
    There are several options here.
    I would suggest using your own code for datalogging. The datalogging you are referring to is primarily for debug, and one shot datalogs of front panel indicators (and controls?), not including graphs, etc.
    If you go to the file functions, you will see a menu for datalogging. These functions will allow you to save your data, as you need it, simply, and in a compact format.
    I recommend opening the datalog file, doing all your file operations, and closing the file before the program is complete. There are several examples of this in the examples database.
    Good luck

  • Copying files from one to other location.. How to check status in run mode on front panel?

    Hi guys , can anyone tel me that how can I check the copying status in real time while VI is running.. e.g lets say I am coping files from location A to location B and the data is quite large so if somewhere in between there is an error I can not figure out when the problem occurred. Is this possible that I know while staying on the front panel about the amount of data copied and how much is left etc..because I think it will be easy to track error if there will be any..
    Naqqash

    Hi,
    I tried to do it, but from some reason I failed. Here are some links about function and how to do it:
    http://msdn.microsoft.com/en-us/library/bb762164%28v=vs.85%29.aspx
    http://msdn.microsoft.com/en-us/library/bb759795%28v=vs.85%29.aspx
    http://www.docstoc.com/docs/31464530/Passing-Labview-Cluster-to-C-Structure-in-DLL
    In the attachment is what I've been trying for the last half an hour. I did it before, but never using cluster -> structure casting.
    Paul
    Attachments:
    copyfile.vi ‏13 KB

  • Do you need a web browser and internet server to run LabVIEW remote front panel?

    Does anyone know if ones needs an internet server to use the Remote Front Panel application of LabVIEW, or is it also possible to use a LAN/WAN for the same application?  if it is possible, how does one set up such a system?

    You can do this on any IP based system (which includes LANs).
    Basically, you need to be able to ping the server and to have the RFP port allowed in the firewall.
    Then you need to enable the option in the application. If this is an executable, you will need to configure this in the Options dialog or copy some lines from the LabVIEW.ini file into your EXE's INI file. You will also need to take the htm file created by the publishing wizard and make sure it points to your VI and that it is located in a place where it can be accessed from outside the server (read the LV help or search the site for more on this).
    Then, you just need to enter the URL for that htm file in the browser on the client (e.g. 192.3.42.5/c/rfp.htm) and it should load.
    Try to take over the world!

  • How to make some part of front panel transparent?

    There is a property node to make a front panel completly transparent...but is there anything that only makes some part of the vi transparent like if I define a decorative block in the vi which takes 1 quardant of front panel and I have a control to make it transparent during runtime...
    And moreover the frontpanel transparent property makes the whole window transparent, is there any way to retain toolbar of window like stop, run button when front panel is transparent??

    Hi,
    Have a look at this VI (attached). To make it work you need to create an image mask as a .png (open paint, colour in the areas that you want to become invisible and save it as a .png). The VI diffentiates between white areas and black areas of the mask you create, the black areas will become transparent and the white areas will remain the same- this will be implemented on your front panel. I've included an example of a possible paint image in "mask2.png".
    You may also want to play around with the resolution of the mask created in paint, this will effect how the program works (I advise you use a lower resolution than your display- I used 500x300)
    NT: If the front panel controls disappear, go into the block diagram window and attach a false constant instead of a control. Let me know if this works
    Cheers, Tom
    Attachments:
    custom window.zip ‏107 KB

  • Front panel locked up?

    I'm using the System Control UI Suite 2.0 and trying to work with graphs on my VI.  Frequently my front panel appears to "lock up".  I'm apparently able to move around the front panel, however the front panel graphics themselves do not change location.  If I hit "ctrl-A" to select all front control objects, the marquees themselves appear where the control 'should' be.  If I close the VI and reopen it, the controls appear where I moved them previously.  It's as if the front panel image itself is not updating properly.
    This does not appear with other VIs. I can get around it by deleting the graphs, saving the VI, renaming the VI, and reopening it.  For whatever reason this sequence restores it.  Once I add the graphs and attempt to populate them with data in run time, my front panel locks up again.

    Hi Synaesthete,
    I am curious, do you see the same behavior when using only the stock LabVIEW controls? Have you tried replacing the UI Control Suite System Controls with the stock LabVIEW controls and seeing if the behavior still exists?
    Also, do the controls only lock-up when in edit mode or do the controls become unresponsive while executing the VI as well?
    Milan

  • Multiple remote front panels?

    I have two separate applications running with remote front panels from this KB:
    How can I use Remote Front Panels with Executables?
    I can not get the two to run at the same time.  I was then shown this:
    How can I run Two or more Executable with remote front panels?
    This seems to be a little old (Version 8).  I am running 2012.
    Has anyone gotten this to work?  How do you set up the web server to listen on more than 1 port?  How do you then direct that port to a particular app?

    Thank you for the solution Todd. I was having the exact same problem.
    LabVIEW 2013 SP1
    Windows 7 64bit
    Windows Server 2012 64 bit
    Windows 8.1 32 bit

  • NI Scope Sorf Front Panel will not detect NI PXI-5122

    Hello,
    I am trying to use NI Scope Soft Front Panel 2.7f0 to acquire simple waveforms;
    however it will not detect my NI PXI-5122. I have confirmed that the digitizer
    works under MAX 4.2.1 and can see waveforms under the test panel. I have
    installed NI Scope 3.3.1 on my machine and have updated the driver on the PXI
    to version 3.3.1. Any ideas on what is wrong?
    ~Buck

    It is unclear from your post whether or not the 5122 is on the same physical device as you are running the soft front panel (SFP).  The SFP only works on local devices.  It does not have the capability to attach to RT or remote systems (MAX does).  However, if you are running Windows on your PXI controller or are using MXI to control the chassis, there is another issue.
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • NI DC Power Soft Front Panel Error - 200247

    Hello All,
    I am having trouble opening the ni DC power soft front panel. The error message I repeatedly am seeing is below:
    When I try to run the vi mentioned in the error above, the same error occurs:
    How can I go about getting my soft front panel to work? I have been using the DC power API to execute tests over the past week using the example VI's, but am at a point where the soft front panel would be very helpful to my workflow.
    I am using the following:
    NI PXIe-4139 SMU
    NI PXIe-1082 Chassis
    NI PXIe-8360 Controller
    Windows 7 64bit
    Labview 14
    MAX 14.5.0f0
    DC Power 14.2
    I have tried running the soft front panel using clean installs of DC Power 14.1 and 14.2 and see the same error message. I have uninstalled the other modular instrument driver packages on my computer, NI-Fgen and NI-Scope, reinstalled DC Power, and still I see the error message. It could be that I am not uninstalling these software packages 100% correctly (I use the windows add/remove to NI Remove software dialog process....)
    I appreciate any help getting this DC Power soft front panel working.
    Thank You,
    Andrew Goett

    Hi Andrew,
    Can you possibly give me a MAX technical report for your system?  The instructions can be found here.  Use Method 1.
    Also, can you check which version of niModInst.dll you have on your system?  This file can be found here: <Program Files>\IVI Foundation\IVI\Bin\niModInst.dll
    Right-click on the file, select Properties, and then click on the Details tab.  The information I need is the "Project version" field.  See the image below:
    In addition to the MAX report, could you send me a ZIP file of the contents of this folder: <Program Files>\National Instruments\Shared\niModInst
    I've attached a simple program (NI-ModInst Code.vi) to test if NI-ModInst is failing across the board or if it only is failing to identify NI-DCPower devices.  Open the program, select a driver that you have installed on your system, and run the program.  The code should tell you the number of devices you have in the system that are associated with that driver, as well as list out the model numbers for those devices.  This list will include simulated devices.  Test the code with various drivers in your system to see if you get the same error.
    Let me know how this works out.

  • How can you "enable front panel dataloggin​g?"

    In the Labview User Manual, it says that "You can create and read datalog files by enabling front panel datalogging." How do you go about "enabling front panel datalogging?"
    Any help would be greatly appreciated.

    From a LabVIEW only perspective, you can enable control (front panel) datalogging through the menu Operate>Data Logging->. If you bind a log file to the VIs front panel it will generate a binary file with the state of the controls in it, when you execute Operate>Data Logging>Log... (I could not find a way to execute this Log... by VI server programmatically - Maybe someone else?)
    From a LabVIEW DSC perspective you can generate a Logos Remote connection to a tag (e.g. with the HMI Wizard). And when you have enabled that this tag has to be logged, the LabVIEW DSC Engine will store/log the value into the Citadel database.
    Hope this helps
    Roland
    PS:
    Not updated however maybe helpful:
    80E?OpenDocument>Using Enable Database Access to Retrieve Data from a LabVIEW VI's Log File
    Front Panel Data Logging and Retrieval (old Example)

  • View front panel by going to a registered domain name

    Hi all,
    I have a registered domain name, say,  www.frontpanel.com
    By configuring a router, I can now view a running LabVIEW front panel within campus by going to 128.200.xxx.xxx/frontpanel.html, my questoin is, how can I view the frontpanel from outside of our campus. Say, I have a registered domain name as shown above.
    The LabVIEW is version 2012, and the system is Windows 7.
    Thanks for any help,
    -Chen

    This has nothing to do with LabVIEW but...
    You need the network to be configured to allow external requests to the PC and to set up the domain name to point to the external IP address of the computer.
    If it were a home network, you'd configure your router/modem to forward requests on the ports required (port forwarding port 80 for the frontpanel.html and any ports that Remote Front Panels needs) from the internet to the PC that is running the Remote Front Panel VI.
    For the domain name to work, you need to configure it's DNS settings to point to the external IP address as above. If it's a static IP address then that's pretty easy to just put in the IP address but if it's dynamic then you need to use a dynamic DNS service (e.g. dyndns).
    If you're on a Campus network, you'd have to go through / talk to their IT department and I'd be very surprised if they allowed that to happen.
    Certified LabVIEW Architect, Certified TestStand Developer
    NI Days (and A&DF): 2010, 2011, 2013, 2014
    NI Week: 2012, 2014
    Knowledgeable in all things Giant Tetris and WebSockets

  • How to data log graphs using front panel data logging?

    Hello I have a VI that collects data from DAQmx thermocouple readings and graphs the temperature vs time using a while loop to collect data and graph. I have 9 control operators that define the correction factor of the thermocouples.
    I want to create a datalogging using the option under Operations>Data Logging
    When I retrieve the data the only information that is present are the control operators correction factors that I defined. The graphed data that was created is not retrieved.
    Is there a solution to show the graphed data plots that were created on the front panel? They remain unchanged from the last run of the VI or blank if I open the VI without having ran the program.
    Thank you.

    This is expected for the Data Logging in LabVIEW. If you want to record the signla data, use the Write to Measurement File Express VI.  Here's a link with a walk-through:
    http://www.ni.com/academic/students/learn-daq/data-logging/
    The Data Logging from the Operate Menu is for recording front panel control(s), as you have observed.
    Mark P.
    Applications Engineer
    National Instruments
    www.ni.com/support

  • Running executable as a service, the front panel doesn't display properly upon the second logon.

    I am running a LabView executable as a service.  When I logon the first time, I see the front panel correctly.  When I logoff, the service still runs properly.  If I logon a second time, the frontpanel never fills in.  (I see the desktop through the front panel).  The service still runs, but when I click on any menu, the computer freezes.  Any suggestions?  (Other than not logging on twice)

    Hi chach,
    I hate to say it, but I'm surprised it even runs once.  If you check out:
    this link
    It says the following:
    "The service must run without a user interface."
    As the article mentions, you could still have a separate front panel that communicates with the service, but the service itself probably doesn't have an accessible front panel.
    Joe Z.

  • How to open front panel of a VI running in RT.

    Hi,
    I have an application to read the encoder position using the cRIO program. I have made an executable and this application runs as startup application whenever the controller reboots. Right now, i am accessing the VI of the startup exe through Remote Panel connection. This works fine but everytime i close the remote panel , i have to reboot the controller for the next view.
    So is there any alterntaive to open the front panel of the VI.
    I tried using VIServer but ran into errors. (i tried using front panel -open property node.did not work)
    Also i do not have any VIs stored on the controller. Only the exe is stored on the ni-rt/startup folder on the RT controller.
    Please let me know how to open this VI.
    Thanks.

    Hi Ben,
    When i close the remote front panel the first time, i am terminating the RT VI which is running on startup.
    So i had to reboot everytime to access the remote VI.  I guess that the VI (exe) should be continuosly running when the RT is started up. The remote panel only should be opened and closed. After I close the remote panel , i want a windows VI to be opened up.
    I have a Windows VI which programmatically opens connection to the RT server for opening the remote panel. The VI runs. When the user clicks Exit on this RT VI, the VI running is stopped and then another windows VI opens up. This works fine for first time. Since the RT VI is terminated, second time , if I run, it says, VI not in server memory.
    Is there a method to close the remote panel programmatically in the RT VI itself. I have a Exit button in this RT VI, so if the user clicks, Exit, the program has to be running, but the remote panel has to close. There is a method called close connection to client , but this does not work in RT , as this requires VI path.. Right now , when the remote panel RT VI is launced, to close the remote panel, i click on the 'close' button on the VI title bar. Again when the remote panel is launched, there is no error. but is there a method to close the remote panel in the server(RT VI itself).   i have attached the VI.
    Thank you.
    Attachments:
    Dummytest.vi ‏39 KB

  • How can i open front panel of a vi and run it

    Hi
    I have a vi that i call multiple times from another vi, however i want it to open the front panel on some calls and not on others.  What is the best way to do this?
    I have come up with a way and was wondering if this method was okay or is there another method that might work better escepcially since i am eventually going to create an application out of it and hope that no problems pop up then
    Unititled 1 calls Untitled 2 where with one call it opens and runs Untitled 2 while with the other call it simply runs untitled 2.vi
    What I did was i changed untitled 2.vi window appearance to dialog but i deselected the show front panel when called, so by simply calling the subvi form untitled 1 it works.  Unititled 2 runs but does not open
    Now with another call i want to open and run untitled 2.vi so by looking the attached vi you can see what i have done
    Again if there is a better method that would make my vi's more efficient i would greatly appreciate it.
    Reza Sed
    Attachments:
    Untitled 1.vi ‏24 KB
    Untitled 2.vi ‏10 KB

    What you did, in theory, is the correct way to do it.  However, you should move the front panel open and close into Untitled2.vi and have a boolean input as to whether to show the front panel or not.  This way, your calling code is cleaner, and you don't have to reproduce the code everytime you want to call the subVI and show the panel.
    If you were to use Untitled2 in another project, then you woud have to go back and look how to implement the showing of the front panel in your other code.  If later, you were to decide you want that VI to be maximized, then you make one change in the VI, and not in every place you ever call it showing the front panel.

Maybe you are looking for

  • Barcode Problem with free 3 of 9

    I have an application (vb6) that opens a report and passes the parameters to it to create the report on the fly(they are passed as strings). one of the fields is a barcode ( I am using a free font - free 3 of 9). you can find it at ( http://www.squar

  • File Adapter - Skipping first row (header row) in a csv file

    How can I skip processing the first row in BPEL? I have a csv file and the first row has column header that I should not process. Thanks

  • ATV peer-to-peer from MBP w/Kanex ATV adaptor

    Hello.I am a H.S. teacher. I wish to use an ATV, peer-to-peer w/ a MBP. Cannot use school network. LED uses vga so would use Kanex ATV pro hdmi to vga adaptor. 720i is OK for my purposes. Can this be accomplished. Any suggestions/comments greatly app

  • Quesry taking more time to execute

    Dear All, User complained that his query is taking more time than yesterday and DB performance is also very slow, so what would be your strategy to check and fix the problem. What could be the right approach to check and fix this. Regards, DevD! Edit

  • Export question 16:9 format?

    I have made my movie it was imported from the camera 16:9 format. In iMovie it is in letterbox format / black line on the top and bottom. How can I crop this when I export my movie? Thanks