How do I put strings into an RT FIFO?

I have a 1 KHz RT loop that occasionally has an event that I want to log to a file.  I can't do a file write directly from my RT loop, so I want to use an RT FIFO to get the log message to another lower rate (and lower priority) loop that sits on the RT FIFO, pops off each message, and logs it to a file.  Since strings are not supported by the FIFO, I followed the advice I found that said to convert it to a byte array.  But all I get out of the FIFO is the first character.  When I created the FIFO, I used an arbitrary string and converted that to a byte array to pass to the FIFO create VI.  I tried an empty string and a large string, but I still only get the first character of each message.  FWIW, attached are the main VI that creates the FIFO and passes it to the sub VI loops, the log loop VI, and an example of a VI that logs an event (digital channel state change).
What am I doing wrong?  Is there a better way to do a logger thread?
Keith.
Attachments:
Event Log Loop.vi ‏111 KB
Control Set Value.vi ‏51 KB
Main - TARGET.vi ‏26 KB

OK, here's a much simpler example.
Attachments:
fifo test.vi ‏9 KB

Similar Messages

  • Put strings into a Vector

    Does anyone know how to put strings into a vector here is my code to put some names of files into one.
    Vector machines = new Vector();
    String dir = "F:\\APPS\\SPCII\\DATA\\";
    File directory = new File(dir);
    machines.addElement (directory.list());
    But when I print the vector, it only prints the address.
    Thanks

    list() returns a String[] array. if you store it in an array, say
    String[] dirlist=directory.list(); you can use dirlist.length and a for loop to enter the elements of the array one by one into the vector

  • How do I put text into an Edge File that clients can edit easily afterwards

    Hi
    Can anyone explain how I can put text into an edge file (styled with google fonts) and make it so that clients can access the text and update the text as they require?
    Previous suggestion was dynamically loading a .txt file - any instructions would be most appreciated.
    Thanks.

    Hi Resdesign!
    Your code is very useful to learn how to use Json in Adobe Edge Animate!
    But I have a question: why you use ( i ) as argument of the function UpdateInfo and when you recall it you use ( index )?
    $.getJSON('slides.json', function(data){
              //for(var i=0; i<data.length; i++){
    function updateInfo(i){
                        sym.$("photo").css({"background-image": "url('"+data[i].image+"')"});
                        sym.$("pillar").html(data[i].pillar);
                        sym.$("what").html(data[i].what);
                        // position
              index = -1;
              sym.$("btn").click(function(){
              index++;
                        if (index>=5){
                                  index = 0;
              updateInfo(index);
    Many thanks for your attention!
    Davide

  • HT1535 How do I put music into iTunes that is on my iPod touch? I have music on my iPod touch that is not in my iTunes library.  I do NOT want to loose these songs when I sync to iTunes.

    Recently I had to replace my computer with a new one. The old hard drive died and there was no way of retrieving any of my data from the dead computer. When I downloaded iTunes onto my new computer there were several songs missing in my iTunes library. I was able to retrieve most through purchased music, however there was some music that I had downloaded from other sources and that music is still on my iPod touch. How do I put music into my iTunes library that is on my iPod touch but not in the iTunes library? I do not want to loose the music on my iPod when I sync to iTunes library.

    Syncing media to iOS devices
    iPhone User's Guide
    As for the content purchased from BN.com that shows up in the nook app... check with Barnes and Noble to see if it's possible for that content to show up on your computer.

  • How do i put music into my ipod ? im veryyyyyyyyyy confused!!!!!!!!!!!!!!!!

    how do i put music into my ipod im very confused

    1. Install the CD that came with your iPod, or download the newest software off the internet. (click iPod+itunes at the top of this screen, then scroll all the way down and lcikc the link on the left-hand side).
    2. Plug in your iPod, follow the on-screen instructions.
    3. Set the preferences for your iPod, by going to Edit>Preferences>iPod tab.
    If you haven't installed iTunes yet, click the ipod+iTunes at the top of this page, then click the link.
    If you have iTunes, but no music, put a CD into the CD drive on your computer, then in iTunes(which may or may not open automatically), click Import, at the top-right, when the CD is selected in the Sources menu (on the left).
    Download Now
    I hope this wasn't too confusing and I hope that I helped!

  • How do I put ios6 into my iPad one?

    How do I put ios6 into my iPad 1? I,m not very good at this. Thanks, don

    You don't. iOS 5.1.1 is the highest possible for the iPad 1.

  • How do I put contacts into my iPad2?

    How do I put contacts into my iPad2?

    Enter them
    e-mail them from your existing computer to yourself, open the mail on the iPad and save it
    sync them via itunes to your ipad
    use icloud to sync them to your your device.

  • How do i put 8mm into my imac and edit

    How do i put 8mm into my iMac, and edit it?

    For 8MM Analog, see QuickTime Kirk's advice. You can use the EyeTV Hybrid with USB, or you can use and ov the Analog to Digital converters from Grass Valley (formerly Canopus) which use Firewire.
    For 8MM DV, just connect your camcorder to your mac with a Firewire Cable. Camcorder must be plugged in.
    For 8MM film, let me know. I can recommend a site that can capture 8MM film in 1080P for reasable prices.

  • In the toolbar I click on color face and see the RGB color space view. How do I put them into CMYK?

    In the toolbar left I click on color face and see the RGB color space view. How do I put them into CMYK?
    German:
    In der Werkzeugleiste klicke ich auf Farbfläche und sehe den RGB-Farbraumansicht. Wie stelle ich diese in CMYK um?

    I design print material. I hope Adobe will change it.
    The ID Color Picker works the same as Photoshop's classic color picker except that it doesn't have an H,S,B presentation (which is the more intuitive interface). So both programs let you choose an R, G, B and L, a, b presentation of color via the 6 radio buttons, and you can pick RGB, Lab or CMYK versions of the chosen color—the mode you get depends on where your cursor is. If you pick an out-of-gamut CMYK color it is brought into gamut in the Swatches or Color panels after you click OK.
    So here I'm picking RGB, Lab and CMYK Swatches or Colors of the color selection because my cursor is in a respective RGB, Lab or CMYK field, note that the Add Swatch button changes accordingly:
    When I click inside the color field, the CMYK values are a color managed conversion of the chosen color, but I also have the option of entering any value. So it would be unlikely I would get a blue gray color like 50|0|0|50 with a color managed conversion, but I have the option to enter those specific numbers.
    The 3 versions of the color added as swatches
    An InDesign document can have a mix of RGB, Lab, and CMYK colors. Colors and swatches can be converted to any CMYK destination space when you export or print.

  • How to Splilit The String Into Single Column using Comma As Delimiter ?

    How to Splilit The String Into Single Column using Comma As Delimiter ?
    using Function

    refer my thread ,code is also available see if that helps you
    error while executing the sp ORA-21779: duration not active

  • How to convert Java string into XML one?

    With SAX I can parse an xml file, but I should create xml file by hands.
    Ok, it's simple, but how to encode java string into XML constant
    like "Hello & goodby" into "Hello & goodby" ?
    Is there a standard method for such special xml characters?

    If you are creating your XML "by hand" then just make sure your hands know that you have to do that. It isn't difficult to write a Java method to do it, if "by hand" means "in Java code". Otherwise your XML is not well-formed. And as far as I know there is no package that takes ill-formed XML and fixes it up.

  • How do I put strings, which I get during runtime, in a Ring-item? And how to open a Frontpanel of a SubVI by pushing a Button in the MainVI during runtime?

    I'm very new to LabVIEW and every day I learn such a lot about LabVIEW. I did not find any example according to my problem, but I don't know how to do the following :
    In the MainVI I read different strings from file in an array (In the example below I defined them as constants. The example only shows how the frontpanels should look like).
    During a loop I calculate different values, which will be written in an array, too, and in every loop the array of values will be overwritten with the new calculated values. (string[i] belongs to value[i])
    Now, by pushing the button 'sub' during runtime, I want to op
    en the Frontpanel of a SubVI, on which you see a Ring and a numeric Indicator. Now, I want to show the strings I read in the MainVI as items in the Ring-menu. If I choose one of the items (strings) in the Ring-menu during runtime, I want to show the accordant value, which was calculated in the MainVI, in the numeric Indicator, and in every loop the new calculated value should be shown in this Indicator automatically.
    So I have two questions:
    1. How do I put the strings into the Ring-menu during runtime?
    2. How to open a SubVI-Frontpanel during runtime, and how to pass the calculated values to it?
    Every answer I accept with thanks!
    Attachments:
    main.vi ‏29 KB
    sub.vi ‏9 KB

    See the atttached vis :
    1/ Pass the string array to the sub-vi, then use a property node to replace the ring node strings
    2a/ From the subvi front panel window, rightclick on the icon, and select "Show connector". Define the connections
    2b/Set the sub vi properties (right click on the vi icon, select "VI properties... >> Window appearance..." go to "customize...", and checkmark the "Show front panel when called" item).
    3/ your main vi should run 2 separate loops in order to avoid that reading the data stops the aquisition process (if any !..), or the reverse situation.
    You should read the LV manual to find out how to create a sub-vi : there are a number a basic things to learn and to memorize...
    CC
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    main.vi.zip ‏16 KB

  • How do I put data into a template using the Labview report generation toolkit for Microsoft Office?

    I am running Lookout 5.0 and have recently purchased the Labview Report Generation Toolkit for Microsoft Office to create reports from my Lookout logged data. Since I have never used Labview I am having my problems. I tried following the tutorials but they do not seem to be examples of what I want to do.
    I log rainfall totals (1 spreadsheet)in Lookout from 40 different sites in 5 minute increments. I copy these totals and paste them into another spreadsheet which sums them up to give me hourly totals and then paste those totals into a spreadsheet for distribution.
    In Labview I create a new report and use the distribution sheet as my template, but how do I complete
    the steps of loading the raw 5 minute data into labview and then paste it into the hourly total spreadsheet and then transfer those totals into the distribution template?
    I have been trying to figure this out for over a week, and I am getting nowhere.
    Any response would be appreciated.
    Thanks
    Jason P
    Jason Phillips

    Lookout saves the files in .csv form which can be opened in Excel. I did make some progress by using the "append table to report" vi which allowed me to put values into an array and then those values were entered into my template on my report vi.
    Where I am stuck now is I want to be able to put values into my template from a .csv file, not from an array I have to manually put numbers in.
    Once those values are in my template I want to pull summed values from the template and place them into a final excel file for printing.
    I have attached examples of the files I am working with to help you better understand what I am trying to do.
    I hope that makes sense.
    Jason Phillips
    Attachments:
    HourlyTotalsTemplate.xls ‏120 KB
    eb_rain_gauge_ss.csv ‏23 KB
    EastBankHourlyRainReport.xls ‏28 KB

  • HT2729 How can I put songs into the album they came from but were split because of multiple artists on a tune?

    I need help in finding out home to combine songs from the same CD into one Album. When putting CD into the iMac, it auto loads into iTunes. If the artist is singing duet and the songs show more than one artist, it gets separated in iTunes. I want to combine all tracks together like they are on the CD.

    One way around this is to edit the album info for each song on that album and make the album artist 'various artists', or you can remove that duet artist and make all the artists the same.
    Seems to be a glitch or change with how iTunes sees albums now. THey alphabetize them by artist and, as you've noticed, if the artists are different, it sees them as different albums.
    I had many albums like this and spent a whole weekend editing the info to 'various' to clean it up.

  • XML: How to convert xml string into Node/Document

    I have a string in xml form.
    <name>
    <first/>
    <second/>
    </name>
    I want to convert this string into DOM Node or Document.
    How can I do this?
    Any help or pointer?
    TIA
    Sachin

    Try this :
    DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
    DocumentBuilder db = dbf.newDocumentBuilder();
    Document doc = db.parse(new org.xml.sax.InputSource(new StringReader(strXml)));Hope this helps.

Maybe you are looking for