How to implement moving (linear) averaging in a subVI with dynamic data?

I was wondering how to implement a moving or rolling linear averaging using a subVI on a set of dynamic data coming from the DAQ Assistant or a counter input channel that will be written using the Write to Measurement File VI?  Below is an example of what I mean.
Solved!
Go to Solution.

You could use the MeanPtbyPt vi to give the running average.  Assuming your code snippet is inside a loop, wire an =0? comparison of the iteration number to the initialize input to reset the value and put 25 (or whatever you want) as the sample length.

Similar Messages

  • How to call javascript function with dynamic data in display tag

    Hi,
    Iam new to pagination concept. Iam using display tag to display rows in jsp by strtus.
    I have a problem when calling the javascript function using ahref in attribute in display tag.
    <bean:define name="form1" property="EditDetails.List" id="ListDisplay"/>
    <display:table name="pageScope.ListDisplay" cellpadding="0" cellspacing="1" pagesize="10" partialList="false" size="listSize" requestURI="">
    <display:column property="poNo" href='javascript:searchEditDetails("./submitOrder.do? actionID=getMISLoadEdit&poNumberSel=<%=((com.po.bean.EditDetails)poListDisplay).getNo()%>&statusIdSelected=<%=((com.po.bean.EditDetails)ListDisplay).getStatusId()%>")'
    title="Number"/>                         
    <display:column property="strDate"title="Date" />
    <display:column property="orderValue"title="Order Value(INR)"/>
    <display:column property="stringRequestedDeliveryDate"title="Suggested Delivery Date"/>
    <display:column property="statusDescription" title="Status" />
    </display:table>
    The above code display the data in row format is working fine when I click the No It thow javascript error and its not redirecting to the other page.
    When I try this with ordinary struts its working fine the code is:
    <logic:iterate id="polist" name="Form1" property="EditDetails.List" indexId="i" type="com.bean.EditDetails">
    <tr>
    <td ><a href="javascript:searchEditDetails("./submitOrder.do?actionID=getMISLoadEdit&NumberSel=<%=((com.bean.EditDetails)polist).getNo()%>&statusIdSelected=<%=((com.bean.EditDetails)polist).getStatusId()%>")"><html:hidden name="polist" property="No" write="true" /></a>     </td>
    <td><html:hidden name="polist" property="strDate" write="true" /></td>
    <td><html:hidden name="polist" property="orderValue" write="true" /></td>
    <td><html:hidden name="polist" property="stringRequestedDeliveryDate" write="true" />     </td>
    <td><html:hidden name="polist" property="statusDescription" write="true" /></td>
    </tr>
    </logic:iterate>
    Please help me how to call javascript with dynamic data.
    Thanks in advance

    The ADF Mobile Container Utilities API may be used from JavaScript or Java.
    Application Container APIs - 11g Release 2 (11.1.2.4.0)

  • How to implement Non linear Curve fitting (lsqcurvefit of matlab) in Labview

    Hi Labview Team,
    I am looking a way to implement "lsqcurvefit" command of matlab in Labview to do some curve fitting ; basically to  Solve nonlinear curve-fitting (data-fitting) problems in least-squares sense, at present I couldn't find a better way to implement it. Can you please give me some suggestion on this to how to implement this " curve-fitting: on labview.
    Thanks,
    Ankit Gupta

    You did not say you have the mathscript module. Do you? In any case, labview has a rich set of native nonlinear fitting tools. This seems like a better option.
    LabVIEW Champion . Do more with less code and in less time .

  • How to make a video in Labview that sync with scenario data?

    Hi guys,
    I am doing a program that shows the scenario data of a satellite at different positions. (For eg, at the position nearer to sun, the temperature data is higher.....)
    To make the front panel more interesting, I am thinking to add in a video of a satellite orbiting the Earth. The video has to sync with the data I am showing.
    The orbital time of my satellite is 90 minutes = 5400 seconds. If I am going to use the picture ring control method, I have to import 5820 frames of pictures into the picture ring control. My understanding is that each time the user can only import one image (correct me if I am wrong). That would mean I have to import the pictures for 5400 times. 
    Is there any other way to do this? I do not want to waste my time on importing so many images.
    Vanessa
    Solved!
    Go to Solution.

    Okay there are many ways to do this, and I'm not certain which would be less work.
    One option would be to have a picture ring, with 5820 individual images that you then pick which one to display as an index.  If you were to do this I'd recommend some LabVIEW scripting to create the control, importing the images programatically.  I think memory wise storing these images in this control would be very difficult for LabVIEW, but it could be done.
    What I think would be a better option, is to use a single 2D Picture control, and then load a new image from disk (where I hope these images are stored).  You then just load the right image for the right time.  Look under the Graphics and Sound >> Graphics Format to see how to open a file from disk.  This path will change for each image.
    EDIT:  Here is an old link that is still relavent http://digital.ni.com/public.nsf/allkb/328AF568F15B36328625696200511EF0
    DOUBLE EDIT:  Really?  Scripting doesn't allow importing pictures?  Well there is likely a work around but that sucks go vote for it here.
    http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Easy-Picture-Ring-filling/idi-p/3072297
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • How do I Change the plot waveform colour on a Dynamic Data type Graph?

    I have multiple different plots on different graphs, and I want to set the colours of the different waveforms.
    In order to display the waveforms on different graphs, I switched to Dynamic data type and then split the wire
    according to how many channels I have.
    I can set the graph background colour with a property node, and create cursors of different colours no problem
    using the array of references that I have created, so there is nothing wrong with my array of references or the property node.
    As soon as I try and wire a colour box into the Plot>Plot Colour control, I get error 1055 out of the property node.
    I was wondering if it was an error between the keyboard and the chair, but now I am thinking it is someting more sinister.
    The Error box pops up and can't be dismissed remaining the focus until I run TASKKILL on LabVIEW and terminate it.
    Any ideas on how to achieve my goal would be appreciated.
    (LabVIEW 8.6)
    Solved!
    Go to Solution.

    Hi Sheela,
    It's 1 plot per graph, up to 4 graphs displayed on different tabs.
    Here are some screenshots
    Attachments:
    graph_display.JPG ‏135 KB
    set_Plot_colour.JPG ‏79 KB

  • How do I print pictures from my ipad mini with a date stamp

    I need to date stamp some pictures in my ipad with a date stamp on them. Any free apps out there that will do this?

    You must first transfer pictures from your iPad mini to your personal computer, then connect your USB drive to computer, adn drag photos to your USB, but you need to copy photos from iPad to computer, this is the guide: How to copy songs from iPad to computer
    or you can also read this solution: http://support.apple.com/kb/HT4083?viewlocale=en_US&locale=en_US

  • How to implement non linear navigation Date LOV

    Hi,
    I have a requirement like I need to show non linear combo LOV in my UI which allows the user to navigate to next or previous item in the list.
    Any help on this or do we have any inbuilt design pattern for this component.
    I am using Jdev 11.1.1.7.0.
    Many thanks in advance.
    Regards,
    Dileep.

    Hi Frank,
    Thank you so much for your reply. Sorry, I am not able to attach that component image here.
    Actually it looks like normal combo box LOV, additionally it has two navigation icons both the sides (both left and right hand side) of combo box and allow the user to navigate to previous or next item in the list of values available in the combo box.
    I am not sure whether it is fusion specific custom component or adf component. Any help on this?
    Many thanks in advance.
    Regards,
    Dileep.

  • How can we export the Primary key values (along with other data) from an Advantage database?

    One of our customers is moving from our application (which uses Advantage Database Server) to another application (which uses other database technology). They have asked us to help export their data, so that they can migrate it to another database system. So far, we have used the Advantage Data Architect (ARC32) "Export Table Structures as Code" functionality to generate SQL. We used the "Include existing data" option. The SQL contains the necessary code to recreate the tables and indexes. The customer's IT staff will alter the SQL statements as necessary for their new system.
    However, there is an issue with the Primary Keys in these table. The resulting INSERT statements use AutoInc as the type for the Primary Key in each Table. These INSERT statements contains "DEFAULT" for the value of each of these AutoInc fields. The customer would like to output an integer value for each of these Primary Key values in order to maintain referential integrity in their new system.
    So far, I have not found any feature of ARC32 that allows us to export the Primary Key values. We had been using an older version of ARC32, since our application does not use the latest version of ADS. I did download the latest version of ARC32 (11.10), but it does not appear to include any new functionality that would facilitate doing this sort of export.
    Can somebody tell me if there is such a feature in ARC32?
    Or, is there is another Advantage tool to facilitate what we are trying to accomplish?
    If there are no Advantage tools to provide such functionality, what else would you suggest?

    George,
      It sounds like the approach you are using is the correct one. This seems to be the cleanest solution to me especially since the customer is able to modify the generated SQL statements for their new system.
      In order to preserve the AutoInc values I would recommend altering the table and changing the field datatype from AutoInc to Integer. Then export the table as code which will export the actual values. After the tables have been created on the new system they can change the field datatype back to an AutoInc type if necessary.
    Regards,
    Chris Franz

  • How do I prevent windows from shutting down ITUNES with a Data Protection Execution error when trying to sync with my Iphone 4S in a 32 bit windows environment?

    I first was not able to install ITunes 10.5.  Apple upgrade installer caused a data protection execution error and windows reverted the process back to the original software.  I then removed ITunes through the control panel ap.  I removed Bonjour and quicktime.  I could not use the windows uninstaller to remove the apple upgrade installer and had to find a fix it program on the microsoft web site to fully remove this program.  After doing this, I was able to load and install itunes 10.5.  However, now when I try to sync my new 4S phone, the sync only goes to the 2nd or 3rd step before eliciting a DPE error and causing itunes to shut down.  I tried making a new user profile.  Opened I tunes in the new profile and began to search for music on my computer.  The program again elicited a DPE error.  I looked to see if quicken was still on the computer and maybe causing a hangup, but it is no longer installed.  Ok, I am at wits end and have spent much too much time on this issue.  Please help.

    I was able to finally stop ITunes from crashing after many days of searching n restarting my computer many times.
    a) First I went to this site ->http://forums.techarena.in/guides-tutorials/1119812.htm that showed me how to disable DPE. Please make sure that u have good virus...etc.. protection first before doing this. I have Avast Internet Security. RESTART UR COMPUTER..
    b) I then uninstall ITunes by following this site ->http://support.apple.com/kb/ht1923      RESTART UR COMPUTER..
    c) I then downloaded a beta version of ITunes. I happen to download beta 7 before the final of 10.5 version came out. Installed it. After installing I click on it n it said somewhere along the line of "this ITune ver. expired" I checked in my Programs n Features n notice that QuickTime was installed w that beta version.   
    d) Go online n download the final version of ITunes ->http://www.apple.com/itunes/download/ ...... After u finish dling install that. After that's done connect your IPod, IPhone...etc... n click on ITunes, it should sync all the way.
    I was finally able to sync all thru the steps insteading of it crashing on me midway. Hopefully this will work for you. Good luck !
    IPhone4, Gateway Windows Vista 32bit

  • How do I get my iCloud account to sync with the data on my mobile device?

    I recently erased my hard drive in my iMac and did a clean install of Yosemite. My iPad and iPhone have my contacts on them ,but my iCloud account and my iMac only have the contacts that I've added manually. How do i get the contacts from my mobile device(s) into iCloud and o

    nto my iMac?

  • How to trigger process chain when datasource is loaded with new data? PUSH

    Hi all,
    Till now we use the pull method to load data in BW which is done manually......but we would like to work with the PUSH method where whenever new data is loaded in the datasource an event is triggered which inturn triggers the process chain...
    how is this possible? can we do this on a timestamp on the datasource to trigger the event?
    rgds,
    wills

    hi Geo,
    Thanks for ur response. I appreciate it.
    The case is slightly different. I am working on Bank analyzer data which is residing in a source system defined to load the results from the Results DataBase, a part of the Bank analyzer.
    If it was R3 we have the standard calling procedures...but now the data in not in R3 but in Bank analyzer.
    I am keen to look at some procedure to push the data automatically whenever an end user execution is done at the BA level into the BW.
    ur help would be highly appreciated....
    thks,
    rgds.
    wills

  • How does your entity, or entities you have worked with, manage data for their dev/quality/cert environments?

    Background- We have development and certificiation environments for SAP changes. These environments are kept in sync by ensuring that we adhere to a progression for configuration changes- they always move thru the same dev, quality, ceritfication, production process with testing at each phase.
    As a business user, a challenge I encounter is having production type data available in the dev/qual/cert environments so that I can adequately test changes.  We refresh our environments periodically to a copy of production, including data.  After the refresh, no new data goes to these environments, only test data as entered by individual users and testers.  This means that tests performed soon after a refresh have a lot of relevent production data to use for testing, but as we move further thru the year, the data is less and less avialable and less relevant.
    Some of our changes are impacted by volume, but due to how we handle our environments, volume impacts are difficult to test or asess.
    How do you manage production-like data for your dev/qual/cert environments? Do you encounter this same issue or have you found a solution?
    Thank you!

    Thanks for your comments, it is clear you understand my plight.  The trouble is fully understanding what Apps and App Features are transferring data in the background any time you happen to turn WiFi to on (even if you have had it off most of the day or night).  Obviously things like Location Services can constantly be sending and receiving data from my iPhone without any action on my part.  Also if you have things like photo backup on the iCloud then each time you take a photo you are sending a copy out.  All App Updates if set to Automatic also can add up to quite a bit of Data.  Reading the News on AP or scrolling through FB News Feed is actually adding up to a lot of Data.  There could be other culprits that I am not even thinking of.  I don't want to turn Apps like Find My Phone off or turn iCloud off due to loosing the value of such a program entirely.  Again thanks for your quick response. 

  • How do I make a hyperlink with dynamic data from a php data base table?

    Level - Dreamweaver infrequent user
    I have a standard master-detail couple of pages using MySQL and PHP. This function is working correctly. One of the data items on the Details page contains the name of a PDF document (including the .pdf suffix). The PDFs are stored in the PDFs library under the Site Root. I am wanting the ability of the page user to look at the associated PDF. Keeping it as simple as possible I just set up a text field 'View Report' followed by the Dynamic Text for the document name. I tried defining the Link Properties with the PDFs library name (plus the root level) followed by the code I thought it needed to identify the selected PDF document ( <? php echo $row_rslivesDetail['ReportLink']; ?> ). The first part is correct because when the code failed I changed it to a fixed PDF document and that worked. I've tried various combinations but not been successful. Can someone please suggest what I'm doing wrong with the code.
    Regards
    Cliff

    Do the PDFs actually reside in your MySql database or are they just in a folder on your server?
    To parse files from a folder, you could use something like this:
    <h2>PDF Files</h2>
    <?php
    class SortingIterator implements IteratorAggregate
    private $iterator = null;
    public function __construct(Traversable $iterator, $callback)
    if (!is_callable($callback)) {
    throw new InvalidArgumentException('Given callback is not callable!');
    $array = iterator_to_array($iterator);
    usort($array, $callback);
    $this->iterator = new ArrayIterator($array);
    public function getIterator()
    return $this->iterator;
    ?>
    <!--results-->
    <h3>2014</h3>
    <?php
    function mysort($a, $b)
    return $a->getPathname() > $b->getPathname();
    $item = new SortingIterator(new RecursiveIteratorIterator(new RecursiveDirectoryIterator('pdfs/2014/')), 'mysort');
    foreach ($item as $file) {
    echo '<li><a href="' . $file . '">' . $file->getFilename() . '</a> - '. round( $file->getSize() / 1052) . '  KB </li>';
    ?>
    </ul>
    In my example above, pdfs is my main folder and 2014 is my sub-folder. 
    Results echo inside a list with each file name hyperlinked.  See screenshot.
    Nancy O.

  • How to create SCATT to Create and generate Role with Authorisation Data.

    Helo Guru's
    Please advice ..How to generate Roles using SCAT sript.
    I created scat script to create Role and add tcodes ..But not able to generate Profles using SUPC...
    Is it possible to create Authorisation Data using scat scripts ....or we need to do it Manually
    Thanks

    Hi,
    You can't use CATT scripts to create roles and populate authorization data, since the organization values/authorization objects/ and field values differs from one to the other role.
    However, you may use CATT scripts till creating the role, and adding the transaction codes, but every role should be maintained individually.
    Hope this clarifies!
    Regards,
    Raghu

  • How to get Back To My Mac 'like' features with Dynamic DNS

    Hi folks. I recently purchased a new NetGear ProSafe Gigabit VPN Firewall (FVS318G) that theoretically supports UPnP (but clearly it does not). I know it does not work because even other applications that make use of UPnP don't work and believe me I've tried EVERYTHING including punching holes for all the right ports through the FireWall... ZIPPO! BTW their (NetGear's) technical support is abysmal. They really don't care... AT ALL.
    Even if I make all the correct ports available through the firewall B2MM just says NAT-PNP / UPnP is not available and that B2MM won't work. I suppose it does not even try to see if the ports are available and open despite UPnP not responding. Kinda dumb if that is how Apple has it programmed.
    So I'm wondering if it's possible to get access to my home network close to the same way B2MM would give me via assignment of a dynamic DNS name through maybe and some programming of the ports and services on my FireWall.
    Can anyone point me in the right direction for this. I think I have all the pieces I just need to know how to assemble them.

    If you have gotten a free dyndns domain name and have installed the dyndns updater application, then you need to enable file sharing in your Mac and port forward port 548 through your router to your Mac. I'm not on Snowie at the moment, so don't know if the security stuff in Sys Prefs Firewall is the same -- if so make sure that "allow only essential applications" is NOT selected. Then from a computer outside your home network, in Finder under Go, and select Connect to Server afp://yourPersonal.dyndns.com
    Your home computer should then mount as a remote drive on your "outside-the-home-network" computer. I am pretty sure that username and password are encrypted during negotiation of the afp connection, but I don't think subsequent data transfers are. It is possible to "tunnel" the afp connection through an encrypted secure shell tunnel for total security, but that can be a "step two"
    once you have demonstrated afp through the router.

Maybe you are looking for