How do I communicate data to a Host VI from an FPGA sub vi without ending the sub vi

I am trying to send timestamps of events that happen in my FPGA sub vi to be collected by the host vi on a windows computer in Labview 2010.  The trick is that I do not what to stop any of the parallel loops in my sub vi from executing while I do this.  Due to the amount of information collected, I am not sure it is feasible to create an array within the FPGA sub vi to store the data until the end of the trial.  Does anyone know of a solution to this problem?

I'm not sure I understand correctly, but you can use a Target to Host DMA FIFO to transfer data from a FPGA VI to the Host VI.

Similar Messages

  • RT - How can I make data transfer to host faster?

    Hi 
    I have created a program that acquires data on FPGA then transfers them to RT so RT can send them up to the windows host once UI is connected.
    The program is based on message type structure as in NI's examples.
    However, I have one problem the data to windows host is not transferred fast enough.
    Pic1 shows the offending bit of code and FPGA.png what's hiding in the subVi.
    FPGA is meant to acquire to cycles of a sine wave. In this case it approximately 40 ms of data at 25us sampling rate (40kS/s 8 channels). Later the data is sent to the host. As you can see I have a dedicated stream for data only and a different one for message passing.
    If I disable the code in the case structure this loop executes in 39-40 ms, however when I start sending the data to the host the rate drops to 57-60 ms per iteration and that sooner or later leads to buffer overflow.
    I have experimented with passing the acquired data to a different loop using a queue but that wasn't faster. I have also tried pipelining but that did not speed it up either. Would you have any suggestions how I could improve my transfer rates?
    Thank you.
    Bartosz
    Attachments:
    Pic1.png ‏100 KB
    FPGA.png ‏75 KB

    Hi barteklul,
    There are 2 main methods of achieving fast data transfer between RT and Host PC:
    1. Using the "Shared Variables", they allow you to transfer data deterministically from
    RT to Host PC, usually are used to monitor data.
    Please have a look at this article:
    http://zone.ni.com/reference/en-XX/help/370622J-01/lvrtconcepts/rt_projectvariable/
    This is the example code:
    https://decibel.ni.com/content/docs/DOC-15928
    The only disadvantage of such method is that if for example RT gets data really fast
    your Host PC can miss some samples.
    2. In order to receive all data from RT
    (guaranteed 100% data transfer without missing any samples) "Network Streams" should be used.
    It is a little bit more complex to implement, but if you want to store data to the file "Network Streams"
    are strongly suggested. In addition "Network Streams" are not deterministic.
    For more details about network streams please read this article:
    http://www.ni.com/white-paper/12267/en/
    At the moment I see that you are using "Network Streams" to transfer data and also I can see that you have some timing on RT
    which can slow down the data transfer rate. I suggest you to transfer data to Host PC as soon as it comes into the FIFO.
    Also if you transfer data just to monitor it, I suggest you to try Shared Variables method.
    I hope that you will this information useful!
    Kind Regards,
    Max
    Applications Engineer
    National Instruments

  • How to export a data as an XML file from oracle data base?

    could u pls tell me the step by step procedure for following questions...? how to export a data as an XML file from oracle data base? is it possible? plz tell me itz urgent requirement...
    Thankz in advance
    Bala

    SQL> SELECT * FROM v$version;
    BANNER
    Oracle DATABASE 11g Enterprise Edition Release 11.1.0.6.0 - Production
    PL/SQL Release 11.1.0.6.0 - Production
    CORE    11.1.0.6.0      Production
    TNS FOR 32-bit Windows: Version 11.1.0.6.0 - Production
    NLSRTL Version 11.1.0.6.0 - Production
    5 rows selected.
    SQL> CREATE OR REPLACE directory utldata AS 'C:\temp';
    Directory created.
    SQL> declare                                                                                                               
      2    doc  DBMS_XMLDOM.DOMDocument;                                                                                       
      3    xdata  XMLTYPE;                                                                                                     
      4                                                                                                                        
      5    CURSOR xmlcur IS                                                                                                    
      6    SELECT xmlelement("Employee",XMLAttributes('http://www.w3.org/2001/XMLSchema' AS "xmlns:xsi",                       
      7                                  'http://www.oracle.com/Employee.xsd' AS "xsi:nonamespaceSchemaLocation")              
      8                              ,xmlelement("EmployeeNumber",e.empno)                                                     
      9                              ,xmlelement("EmployeeName",e.ename)                                                       
    10                              ,xmlelement("Department",xmlelement("DepartmentName",d.dname)                             
    11                                                      ,xmlelement("Location",d.loc)                                     
    12                                         )                                                                              
    13                   )                                                                                                    
    14     FROM   emp e                                                                                                       
    15     ,      dept d                                                                                                      
    16     WHERE  e.DEPTNO=d.DEPTNO;                                                                                          
    17                                                                                                                        
    18  begin                                                                                                                 
    19    OPEN xmlcur;                                                                                                        
    20    FETCH xmlcur INTO xdata;                                                                                            
    21    CLOSE xmlcur;                                                                                                       
    22    doc := DBMS_XMLDOM.NewDOMDocument(xdata);                                                                           
    23    DBMS_XMLDOM.WRITETOFILE(doc, 'UTLDATA/marco.xml');                                                                  
    24  end;                                                                                                                  
    25  /                                                                                                                      
    PL/SQL procedure successfully completed.
    .

  • How can I move my iPhoto Library from one Mac to another without losing the comments on the individual photos in the process?

    How can I move my iPhoto Library from one Mac to another without losing the comments on the individual photos in the process? The source Macbook (OS 10.4.11 and iPhoto 6.0.6 (3.2.2.)) is with my husband in Germany, the target MacBook Pro (OS 10.8.5, iPhoto 11) is with me in Japan. Thanks for your help.

    I copied the iPhoto Library to a CD and from there to the new MacBook
    If you copied the library to the CD via the Finder it would be no different than the methods Terence suggested.  If you used the Share ➙ Burn menu option from inside iDVD you'll get a mini library that has to be accessed from the open library and the events/alubums copied into the destination library.  Not the same as the other methods.
    The Share ➙ Burn method is no longer supported with iPhoto 9 and later.
    OT

  • How can I view an AI file created on a MAC on a PC without corrupting the fonts?

    How can I view an AI file created on a MAC on a PC without corrupting the original fonts?  An AI file was created with an image and text on a MAC.  When the AI file was opened on a PC, the text fonts were not the same as originally created.  Also, the same AI file was saved to PDF on the MAC.  When the AI file was opened on a PC, there wasn't anything visible.  Anyone have any ideas?

    Are you using the save version of Illustrator on both Mac and PC? If so, and you have the same fonts installed on both machines you should be able to open it without any problems. You may need to tell it which fonts to assign, they are not always named the same. If you don't need to edit the text, you could convert the text to outline and eliminate the need for fonts.

  • How can I see or transfer my old photos from my iOS 6 iPod Touch to the 'Years, Collections, Moments' in my iOS 8 iPhone 5S?

    How can I see or transfer my old photos from my iOS 6 iPod Touch to the 'Years, Collections, Moments' in my iOS 8 iPhone 5S?
    For example, my mom's 'Years, Collections, Moments' in her iPhone 6 has pictures from her old iPhones, even her 3GS

    Greetings Yushk,
    It seems you would like to transfer photos from your previous device to your iPhone 5S. I have linked to an article which may help you. You can transfer those photos to a Mac or PC, then sync them to your new device:
    Import photos and videos from your iPhone, iPad, or iPod touch to your Mac or Windows PC - Apple Support
    After you import your photos from your iOS device or Saved Photos, you can use iTunes to sync them back to your device.
    Thank you for contributing to Apple Support Communities.
    Best,
    Bobby_D

  • How can I make albums from events then delete events without deleting the album?

    Hey, just need a little help!
    How can I make albums from events then delete events without deleting the album?
    Many thanks

    You'll be more likely to get help with this if you ask in the iPhoto forum:
    https://discussions.apple.com/community/ilife/iphoto
    You'll need to tell people what version of iPhoto you have so they can give you correct advice.
    Regards.

  • How do you sync your music from iTunes to your iPhone without easing the songs already on your phone

    how do you sync your music from iTunes to your iPhone without easing the songs already on your phone

    go to your iphone un itunes > music and put all the music or select the song and itunes will put the songs that are not on the iphone, if it's an iphone which has been synchornized with another itunes it will ask you to erase all the songs and sync the songs you have

  • How to sync apps to iPad which is synced by another computer( not mine) without losing the last apps on the iPad

    How to sync apps to iPad which is synced by another computer( not mine) without losing the last apps on the iPad

    When you plug in the iPad iTunes will want to restore it/wipe it, so if you do not have the apps in your iTunes then you can copy the apps from the iPad to iTunes when plugged in by right clicking the iPad and selecting "transfer purchased..." which copies the purchases into iTunes.
    However as iTunes will only sync to 1 iTunes, it will then want to wipe your iPad, so you need to make sure you have everything in your iTunes that you want back on your iPad.
    This is to stop people taking their iOS device to a friends and then taking their paid songs/video/apps.
    If you still do not have all of the apps in iTunes, you can either download the Apps via the iTunes store or try and find an application that lets you sync from the computer to the iPad and via versa in place of iTunes.

  • How do I get sdo_point into C host variables from OTT structures?

    How do I get sdo_point info into C host variables from structures generated by OTT?
    Databse Version 10.1.0
    I am using OTT to generate C structures for the Oracle Spatial datatype sdo_geometry. The file is generated as
    #ifndef GEOMETRY_ORACLE
    # define GEOMETRY_ORACLE
    #ifndef OCI_ORACLE
    # include <oci.h>
    #endif
    typedef OCIRef sdo_geometry_ref;
    typedef OCIRef sdo_point_type_ref;
    typedef OCIArray sdo_elem_info_array;
    typedef OCIArray sdo_ordinate_array;
    struct sdo_point_type
    OCINumber x;
    OCINumber y;
    OCINumber z;
    typedef struct sdo_point_type sdo_point_type;
    struct sdo_point_type_ind
    OCIInd _atomic;
    OCIInd x;
    OCIInd y;
    OCIInd z;
    typedef struct sdo_point_type_ind sdo_point_type_ind;
    struct sdo_geometry
    OCINumber sdo_gtype;
    OCINumber sdo_srid;
    struct sdo_point_type sdo_point;
    sdo_elem_info_array * sdo_elem_info;
    sdo_ordinate_array * sdo_ordinates;
    typedef struct sdo_geometry sdo_geometry;
    struct sdo_geometry_ind
    OCIInd _atomic;
    OCIInd sdo_gtype;
    OCIInd sdo_srid;
    struct sdo_point_type_ind sdo_point;
    OCIInd sdo_elem_info;
    OCIInd sdo_ordinates;
    typedef struct sdo_geometry_ind sdo_geometry_ind;
    #endif
    I can successfully access the sdo_gtype and sdo_ordinates using the following ProC code
    exec sql begin declare section;
    int sptype;
    double coord[100000];
    sdo_geometry *spgeom;
    sdo_ordinate_array *spcoords;
    exec sql end declare section;
    /* allocate memory for the geometry host variable */
    exec sql allocate :spgeom;
    select bounds into :spgeom from boundary;
    /* retrieve the geometry type from the geometry host variable into a host variable */
    exec sql object get sdo_gtype from :spgeom into :sptype;
    /* allocate memory for the sdo_ordinate_array host variable */
    exec sql allocate :spcoords;
    /* move the coordinates from the geometry host variable into the sdo_ordinate_array host variable */
    exec sql object get sdo_ordinates from :spgeom into :spcoords;
    /* determine the number of coordinates */
    exec sql collection describe :spcoords get size into :numord;
    /* move the coordinates from the sdo_ordinate_array host variable into a host array */
    exec sql for :numord collection get :spcoords into :coord;
    I cannot, however, figure out how to get point data out of the host variable spgeom. If I prepare code analagous to the other types in the geometry structure, I get an error. I can see that sdo_point is different because it is a struct within the geometry definiton of typedef OCIRef but my knowledge of C is sufficeintly weak that I cannot figure out how to get sdo_point into C host variables. Some sample code for getting the sdo_point data would be greatly appeciated.
    Thanks, Chris

    To get point data from geometry column use following
    select a.location.sdo_point.x, a.geometrycolumn.sdo_point.y
    from tablename a;
    Do not forget to alias the table.

  • How to extract Slide data in 3rd part application from clipboard

    I need to be able to copy/paste or drag/drop from PowerPoint into another application (C# WPF). In my OnDrop method the DragEventArgs Data has these formats:
            [0]    "Preferred DropEffect"    string
            [1]    "InShellDragLoop"    string
            [2]    "PowerPoint 12.0 Internal Slides"    string
            [3]    "ActiveClipBoard"    string
            [4]    "PowerPoint 14.0 Slides Package"    string
            [5]    "Embedded Object"    string
            [6]    "Link Source"    string
            [7]    "Object Descriptor"    string
            [8]    "Link Source Descriptor"    string
            [9]    "PNG"    string
            [10]    "JFIF"    string
            [11]    "GIF"    string
            [12]    "Bitmap"    string
            [13]    "System.Drawing.Bitmap"    string
            [14]    "System.Windows.Media.Imaging.BitmapSource"    string
            [15]    "EnhancedMetafile"    string
            [16]    "System.Drawing.Imaging.Metafile"    string
            [17]    "MetaFilePict"    string
            [18]    "PowerPoint 12.0 Internal Theme"    string
            [19]    "PowerPoint 12.0 Internal Color Scheme"    string
    The "PowerPoint 14.0 Slides Package" is a byte array... can this be converted into Slides?
    If not how would I go about getting high-resolution images + slide text from a drag/drop?
    [Originally posted here: http://answers.microsoft.com/en-us/office/forum/office_2013_release-powerpoint/how-to-extract-slide-data-in-3rd-part-application/a0b5ed64-eb77-49bb-bf44-e0732e23a5eb]

    What I'd like to do:
    Open PowerPoint
    In PPT open a presentation
    In PPT select a slide
    Drag it to my 3rd party WPF application
    In the 3rd party WPF application drop handler get the slide data (text, background image, etc...).
    When I do this I get the DragEventArgs Data (the clipboard data) and it has the 20 supported formats I listed in the 1st post. From these formats #4 seemed like it could have some useful info.
    WPF
    <Window x:Class="PowerPointDropSlide.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="MainWindow" Height="350" Width="525" AllowDrop="True" Drop="UIElement_OnDrop" DragOver="UIElement_OnDragOver">
    <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Background="LightBlue">
    <TextBlock Text="Drop something here!"/>
    </Grid>
    </Window>
    Handlers:
    public void UIElement_OnDragOver(object sender, DragEventArgs e)
    public void UIElement_OnDrop(object sender, DragEventArgs e)
    string[] supportedFormats = e.Data.GetFormats();
    object pptSlidesPackage = e.Data.GetData("PowerPoint 14.0 Slides Package");

  • How to insert a date in a numbers cell from applescript?

    Hey guys,
    I was just wondering, I got this list of dates that i want to change with this handler that i call datachanger, i use it to seperate dates like these 1994-11-07 and reassemble them. Now what i would like to do is to reassemble them in such a way that i can insert every item in datalist in numbers cells. Now it gives me a weird error. How do i have to change the things between bas3 and bas2 to get it to fit in a numbers cell without an error? or do i have to use the quoted form of it before i can insert it?
    SCRIpt
    on datumchanger(datumlist)
        set a to 1
        set datalist to {}
        repeat with bas in datumlist
            set AppleScript's text item delimiters to "-"
            set bas1 to text item 1 of bas
            set bas2 to text item 2 of bas
            set bas3 to text item 3 of bas
            set datumitem1 to bas3 & "," & bas2 & "," & bas1
            set the end of datalist to datumitem1
        end repeat
        return datalist
    end datumchanger
    SCRIPT
    Help is so much appreciated:)
    Thank you so much in advance:)

    As I carefully wrote in several scripts posted here, when we want to insert a date in a Numbers cell,
    we must coerce it to a string.
    --{code}
    set date1 to "" & 1 & "-" & 1 & "-" & 2012 -- it's a string
    set date2 to "" & 1 & "/" & 1 & "/" & 2012 -- it's a string
    set date3 to current date -- it's a date
    set date4 to "1994-11-07"
    Here is the safe way to build a date which will behave well on every localized version.
    I use the short date string to set the time component to 00:00:00 *)
    set date5 to date (short date string of (current date))
    set year of date5 to 1943
    set month of date5 to 12
    set day of date5 to 31
    tell application "Numbers" to tell document 1 to tell sheet 1 to tell table 1
              set value of cell "B2" to date1
              set value of cell "C2" to date2
              set value of cell "D2" to date3 as text
              set value of cell "E2" to date4
              set value of cell "F2" to date5 as text
    end tell
    --{code}
    On my machine the format yyyy-mm-dd is accepted but I don't remember if it's the standard behavior or if I added this format in the dedicated resource file.
    Yvan KOENIG (VALLAURIS, France) lundi 30 janvier 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My Box account  is : http://www.box.com/s/00qnssoyeq2xvc22ra4k

  • How to migrate Master Data (Rule set etc.) from GRC 5.3 to 10.1 without using the "Migration Tool"

    Greetings,
    We are currently on GRC 5.3 SP 18 (Java ONLY) and migrating to GRC 10.1. I referred the Migration Guide which outlines that GRC 5.3 needs to be upgraded to SP 20 as pre-requisite for using the "Migration Tool" . Our BASIS team is reluctant to perform this upgrade from SP 18 to SP 20.
    Having said thus, I'm exploring options of migrating data from 5.3 to 10.1 without using the "Migration Tool:.
    Rule set Migration:
    I'm in the process of preparing the 9 different files (listed below) and later utilize the "Upload Rule" option for migrating the Rule set data from 5.3 to 10.1.
    While I'm able to gather data for most of the files I'm not sure how can I obtain the data pertaining to the two files (Function Actions and Function Permissions) underlined and highlighted in Red below.
    1. Business Process
    2. Function
    3. Function Business Process
    4. Function Actions
    5 .Function Permissions
    6. Rule Set
    7. Risk
    8. Risk Description
    9. Risk Rule Set Relationship
    10. Risk Owner Relationship
    Can someone please enlighten me and share their experience with regards to this exercise. Really appreciate your help !
    - Janantik.

    I have done this successfully before.  Because you are having issues, I would NOT recommend using the migration tool to move the ruleset.  Instead:
    1. Download the ruleset files from 5.3
    2. The 5.3 tcode-permission file, which defines which tcode permissions from SU24 need to be checked during risk analysis, needs to be split into the two files you mention above in red.
    FUNCTION_ACTION : this file represents S_TCODE objects and TCD fields mapped to each function (Function to Tcode relationship).  In the 5.3 file, you will filter on object S_TCODE and field TCD, and you will get a complete list that now represents "FUNCTION_ACTION".  BUT instead of having all the jumbled permission info, you will just have 3 columns: Function - Tcode - Status.
    3. The remaining permissions that are left over, after taking out the S_TCODE -TCD items, represent the "FUNCTION_PERMISSION" file in GRC 10.
    4. Manually create the excel spreadsheets for each file.
    5. Copy and past each sheet to a unique .txt file.
    6. Upload the ruleset manually through SPRO-->GRC-->Access Control-->Access Risk Analysis-->SoD Rules-->Upload SoD Rules.
    7. Select each file and then upload to the correct Logical Group.
    This is a huge pain, but it works.  Let me know how this goes and if you need any assistance.
    -Ken

  • How do I delete data (mail, files, photos, etc) from iCloud?

    I'd like to stay below 5Gb on my iCloud account.  How can I delete data from ICloud once it's there?  For instance, once I've transferred files from my iMac to iPad (or downloaded and deleted Mail from both) do these data accumulate on my iCloud account, or can I selectively delete some.  A corollary question is whether synched data, such as mail, is automatically deleted from iCloud if I delete it from all synched devices. Thanks!

    It appears you cannot delete
    https://discussions.apple.com/thread/3104002?start=0&tstart=0

  • Hi, I'm new to Labview...​How do I export Data to a spreadshee​t from an agilent 8510c using labview 6 and the VI from the NI site?

    Hi, I'm trying to export data to a spreadsheet from an Agilent 8510c to a laptop(Win XP) using a PCMCIA-GPIB card, Labview 6 and the VI from the NI site. How do I do this? Ideally I'd like the Magnitude and Phase Data, as pairs for each frequency point, but the Real and Imaginary pairs can work just as well. Any help would be greatly appreciated.

    When you say the "VI from the NI site", I'm going to assume that you mean the HP8510C driver. If that's the case, then VI called HP8510C Application Example should be your starting point. It returns two 1D arrays - real raw data and imaginary raw data. These can be combined with a Build Array function and the resulting 2D array can be wired to the Write to Spreadsheet File function. This will create a tab or comma separated file that Excel or any other spreadsheet program can import. The very simplest program would look something like the attached picture. You may need to modify the instrument program to suit your requirements but this should get you started.
    Attachments:
    HP8510C_and_Spreadsheet_Write.jpg ‏5 KB

Maybe you are looking for