Using a 9263 and DAQmx to write long files

I have a 9263 in a cDAQ-9172 chassis. I have some very long waveforms (3 days worth of 250Hz sample rate signals) that I would like to play out. I have been fighting with this for some time and I run into one problem or another. I figure I should be able to loop through and send blocks of data as the buffer empties. I started with the DAQ Assistant, and used that to generate the code for continuous playback.
The code I am trying to write alternates indefinitely between a sine and a triangle wave. I figure if I can do this, then I can easily adapt this to my main code block.
The problem I am having is that the Write function blocks and my whole application locks up. I have the second status loop running in parallel, but it does not run while the program is is blocked in the Write function. So my front panel dies and is unresponsive to user input until the write completes and it loops back. I would like to have a graph display to display the waveform on the screen like the MAX test application, but that won't work if the program is tied up waiting for the Write function to return.
Is there any way to do this as a non-blocking operation and get notified when the buffer is getting close to being empty? I had an application like this working with the simulated device and I was checking the "SpaceAvail" property, but this does not work the same way with the real device.
Attached is some test code that I am working with. Any help is greatly appreciated.
Brian Rose

Hey Brian,
Thank you for posting your code.  I took a look at it and I think I found a program in the NI Example Finder that will help you with your application.  You
can find this by opening up LabVIEW and going to Help>>Find Examples...  Once the example finder opens you can go to Hardware Input and Output>>DAQmx>>Analog
Generation>>Voltage>>Cont Gen Voltage Wfm-Int Clk-Non Regeneration.vi.  You will notice that this code is very similar to yours, but it utilizes the while
loop differently.  The main thing is that your create channel, timing, and clear task VI’s should not be included inside the while loop.
You mentioned that this portion of code will be going into your main program, so what exactly is the entire program doing?  The reason I am asking is because
you said that you were running into a blocking issue on your DAQmx Write VI.  This is most likely occurring because of the large amount of data that you are
writing, so one way to get around this would be to put the while loop containing the DAQmx write VI outside of the while loop with the rest of your program. 
This is known as parallelism, and a nice example of this can be seen here.  Your code would be able to run side-by-side, thus allowing the rest of your
program to run uninterrupted from your DAQmx write VI.  Please let me know if I may have misunderstood your application, or if you have any further
questions.

Similar Messages

  • I am using itunes 10 and trying to consolidate my files.  I keep getting the error "Copying files failed.  The file name was invalid or too long".  How can I indentify what file is causing this problem or resolve this issue?

    I am using itunes 10 and trying to consolidate my files.  I keep getting the error "Copying files failed.  The file name was invalid or too long".  How can I indentify what file is causing this problem or resolve this issue?

    BUMP
    Yes, I just get that message. I don't see how I could investigate this problem.
    I didn't mention that this happened when I was consolidating my library, not copying files to another computer.
    In other words, I'm using a "normal" itunes procedure, itunes won't complete it, and won't tell me exactly why or how to figure out how to fix it...
    Is there at least some easy way to tell which files were successfully copied to my itunes music folder so I can work on moving the uncopied files?
    Can anybody help me?

  • I am using a Mac and when I save my files as a jpeg, the files become much smaller, and consequently darker and blurrier.  What can I do to fix this?

    I am using a Mac and when I save my files as a jpeg, the files become much smaller, and consequently darker and blurrier.  What can I do to fix this?  I have tried to figure out how to chat with someone at Adobe, but they certainly don't make it easy to do.  At the moment, this program is useless to me.  Very depressing....

    Hello,
    I would like to inform you that not all the browsers and online PDF readers support copying text from a PDF. If you have opened the PDF online, please download PDF file to your computer and then open the file in Adobe Reader.
    Please share a screenshot if the issue still persists.
    Regards,
    Nakul

  • I have captivate 6, I´m using Quizers part and I need to publish  file .app in .ipa, what do I have

    I have captivate 6, I´m using Quizers part and I need to publish  file .app in .ipa(ipad), what do I have to do to make it run in native way, that is without internet conection?

    Hi!
    That's an interesting question you have raised.
    I would recommend you to create your Captivate Project, Publish it to HTML5 output and Zip the Output Package,
    Use the PhoneGap to package it for iOS devices and produce .IPA file for the same .
    You can create an account here -- https://build.phonegap.com/
    I haven't tested it yet, but, I'll do it today.
    Let me know if this works out.
    Thanks,
    Anjaneai

  • Restrictions for using sql commands and operators in loader control file

    Hi ,
    It suppose that there is a lot of restrictions and limitations when using sql commands and operators in the loader control files, same as it seems I cannot use (or) when with case statement, also it seems there is certain length for the case,
    So guys, what are the common limitations and restrictions to be avoided in the loader control file ?
    Your efforts are highly appreciated
    Ash

    Hi Ash,
    if you need to do more complicated logic its better to define the file to be loaded as an external table. You can then use any sql function you like against the external table rather than messing around with what you can and can;t do in a sqlldr control file.
    You can use the external_table option of sqldr to generate the definition.
    Regards,
    Harry
    http://dbaharrison.blogspot.com/

  • What tool is used to open and read UCS tech support files

    Hello,
    Due to internal Infosec policies, I need to open and read UCS tech supoort files that I generate prior to sending them to Cisco TAC. Can someone tell me what tool I can use to accomplish this task? Thanks.

    Good to hear.
    Are you intending to blank out all the proprietary info?  IPs, Hostnames etc? 
    Suggest an advanced editor such as ultraEdit which can find and replace any private information.
    Robert

  • HT201303 How can I reverse this purchase and get a refund? I forgot you need a Weight Watchers password to use the ap and I am no longer a member.

    How can I reverse an app purchase and get a refund. I purchased a Weight Watcher app forgetting I needed to be a Weight Watchers member to log in.

    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • Is it possible to connect an external drive to the time capsule that I could use to store and access my primary iTunes files?

    I would like to move my music files to an external drive that my iMac iTunes could access wirelessly and I'm wondering if it is possible to do so through connecting a drive to my Time Capsule.

    This can be done....but if you move your iTunes Media folder to the drive that is connected to the Time Capsule, you might first want to think about how you will backup these important files.
    Time Machine cannot backup the files back to the Time Capsule, so you will need to use a commercial backup application like Carbon Copy Cloner or SuperDuper to copy the files back to the Time Capsule drive.
    As long as you plan to add a hard drive, you might want to consider an alternate plan:
    Connect a hard drive directly to your Mac using USB or FireWire and move the iTunes Media Library there. Then, Time Machine will back up both your Mac and the hard drive, so you have original copies on one drive and backups on another.
    Whatever you decide, be sure to follow the correct instructions to move the iTunes Media Folder. You cannot simply drag and drop.
    http://support.apple.com/kb/HT1449

  • Using java class and variables declared in java file in jsp

    hi everyone
    i m trying to seperate business logic form web layer. i don't know i am doing in a right way or not.
    i wanted to access my own java class and its variables in jsp.
    for this i created java file like this
    package ris;
    import java.sql.*;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    public class  NewClass{
        public static void main(String args[]){
            Connection con = null;
            ResultSet rs=null;
            Statement smt=null;
            try{
                Class.forName("com.mysql.jdbc.Driver").newInstance();
                con=DriverManager.getConnection("jdbc:mysql:///net","root", "anthony111");
                smt=con.createStatement();
               rs= smt.executeQuery("SELECT * FROM emp");
               while(rs.next()){
                String  str = rs.getString("Name");
                }catch( Exception e){
                    String msg="Exception:"+e.getMessage();
                }finally {
          try {
            if(con != null)
              con.close();
          } catch(SQLException e) {}
    }next i created a jsp where i want to access String str defined in java class above.
    <%--
        Document   : fisrt
        Created on : Jul 25, 2009, 3:00:38 PM
        Author     : REiSHI
    --%>
    <%@page import="ris.NewClass"%>
    <%@page contentType="text/html" pageEncoding="UTF-8"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
       "http://www.w3.org/TR/html4/loose.dtd">
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>JSP Page</title>
        </head>
        <body>
            <h1><%=str%></h1>
        </body>
    </html>I wanted to print the name field extracted from database by ResultSet.
    but it gives error cannot find symbol str.
    please help me to find right way to do this.
    i am using netbeans ide.

    Very bad approach
    1) Think if your table contains more than one NAMEs then you will get only the last one with your code.
    2) Your String is declared as local variable in the method.
    3) You have not created any object of NewClass nor called the method in JSP page. Then who will call the method to run sql?
    4) Your NewClass contains main method which will not work in web application, it's not standalone desktop application so remove main.
    Better create an ArrayList and then call the method of NewClass and then store the data into ArrayList and return the ArrayList.
    It should look like
    {code:java}
    package ris;
    import java.sql.*;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    public class  NewClass{
        public static ArrayList getNames(){
            Connection con = null;
            ResultSet rs=null;
            Statement smt=null;
            ArrayList nameList = new ArrayList();
            try{
                Class.forName("com.mysql.jdbc.Driver").newInstance();
                con=DriverManager.getConnection("jdbc:mysql:///net","root", "anthony111");
                smt=con.createStatement();
               rs= smt.executeQuery("SELECT * FROM emp");
               while(rs.next()){
                nameList.add(rs.getString("Name"));
               return nameList;
                }catch( Exception e){
                    String msg="Exception:"+e.getMessage();
                   </code><code class="jive-code jive-java"><font>return nameList;</code><code class="jive-code jive-java">
                }finally {
          try {
            if(con != null)
              con.close();
          } catch(SQLException e) {}
          </code><code>return nameList;</code>
    <code class="jive-code jive-java">    }

  • Issue Concerning Flip Book Creation using In Design and converting document to SWF file

    Hello.  We are a charitable organization which publishes an annual magazine.  I have been looking at better ways show our magazine on the web and like the FLIP BOOK format.  I have created a sample here -- 2014 Magazine    When you look at this you will see that there is an issue with a white page showing at the front and the back of the magazine.  I prefer the 2 page format.  Have tried in one page - don't like it.  I also don't have funding available to purchase more software to do this.  While I appreciate they exist, I get the result I want I just don't want the first white page or the last white page to show.   Does anyone know if there is a work around.  We do our website design with Muse.

    I have been looking at better ways show our magazine on the web and like the FLIP BOOK format.
    Are you ok with the magazine not showing on Tablets? And the text is almost illegible because of the low res.
    When you look at this you will see that there is an issue with a white page showing at the front and the back of the magazine.
    When you export a swf you can choose use Paper as the background color. A swf movie's stage is one static pixel dimension, so if you want spreads the stage would be set to the spread dimension. You get the Paper background color to the left of page 1, which is the empty stage.
    A work around would be to set your InDesign Paper swatch color to match the HTML container background (#5F0F1C in your case) and then put a frame filled with white on the bottom layer behind every page.

  • I want to use windows 7 and vista to store movie files

    Im having trouble!!
    I have windows vista on my destop using itunes and saving movies i pruchase very well, but i cannot purchase HD movies with vista op!
    So i have a laptop with windows 7 on it! Now my laptop is autorised but cannot see the movies of itunes in my server which is iomega (where i store my movies music etc) i also use icloud aswell as a backup ) .
    i dont seem able to use the win 7 laptop to acess my movies stored from my vista destop on my server!
    Please help as i want to start buying hd movies through my wins 7 laptop , but still want acces thorugh the vista comp!!
    I have been given a apple tv 1080 for christmas, i also have 4 other older apple tv!
    All iphones ipod ipads work well on my system!
    Just having this delema with the wins op system and hd movies of itunes
    Please help its driving me insane
    my email is [email protected]

    There is another less expensive option:
    Windows 7 System Builder $99 and full install is limited to one computer (can't be installed later if you get a new computer, but for what you save, so what, and Windows 7 SP2 or even whatever "8" is will be out by then (2013 time frame).
    Amazon and Newegg are good places to find Home Premium, and unless using only in a VM and not native Boot Camp, get 64-bit version.
    NO need for retail higher price that comes with 32 and 64-bit and ability to reinstall on new hardware some point.

  • I am using export pdf and trying to edit converted file in word but unable to do so. i have tried to triple click but no effect.

    why i am not able to edit converted file from pdf to word. i am using windows 7 pro. i have tried to triple click the document but has no effect. grateful if anyone can assist.

    Hi lithgowben,
    Are you having the same trouble regardless of the file you've converted to Word?
    How were the PDFs you're converting created (using what application)? You can tell by opening the PDFs in Reader and choosing File > Properties. Look for the document creator on that dialog box.
    Would you be willing to share your file with me, so that I can take a look at it here? If so, let me know, and I'll shoot you my contact details in a private message.
    I look forward to hearing back from you.
    Best,
    Sara

  • I am on a Mac using ID4; can a coworker using a PC and ID5 send me a file that I can work on?

    ...wondering how she can send me a file I can work on - we have fonts taken care of with OTF... thanks!

    Before your coworker does this have him/her package the ID CS5 file.
    Then open the packaged file and export that to IDML into the same folder.
    Then zip up the whole thing and send that to you. This will assure you
    have the links as well as the ID file.
    Other caveats have been covered by Peter.
    Bob

  • I'm using PS6.0 and a client wants ".svg" files

    I have a client requesting black and white line art be saved as a .svg file and when I looked at my current version of PS 6.0 (I know it's old and atiquated) I don't see that format in the dropdown in SAVE AS. Is there another format you can recommend which is in the vein of .svg which I can look for? This client wants basic black & white images they can "video transcribe" into an animated ad of sorts (or give my work to an animator), for an insurance company.
    Thanks very much!

    You should be able to download the installer from adobe.com.
    http://www.adobe.com/cfusion/tdrc/index.cfm?product=illustrator&loc=en_us
    http://helpx.adobe.com/download-install.html?promoid=JOPCN
    There is also an Illustrator Forum:
    http://forums.adobe.com/community/illustrator/illustrator_general?view=discussions
    now this!
    Well, if customers request vector data what are you gonna do?
    In any case you may want to look into what improvements (and other changes) have been implemented in Photoshop since version 6; there have been plenty, if they would be relevant to your work you’ll have to decide yourself. 

  • What is the correct way to format file paths and names in the structapp file?

    I am trying to create a structured application to export fm files as xml, and probably read the xml back to fm.
    In the structured application file (structapp), I need to specify the locations of the various files (DTD, read/write, template, etc). I would like to place these files on a shared server so others can use the same structapp file (that is, a cop of it). What is the correct way to format the file paths and names? Can folders folder names and file names have spaces in them? I tried the following, for example:
    \\serverName\shareName\folder 1\folder 2\file name.dtd
    I use the same format for the template file and the read/write rules file.
    When I try to save an fm file to xml, FrameMaker says that it cannot read the DTD; however, the resulting xml file appears to be well-formed. The DOCTYPE element in the resulting xml is formatted with forward slashes and spaces replaced with %20.
    I tried using forward slashes and replacing spaces with %20, but then I get an error about reading the read/write rules.
    NOTE: I have another structured application to read xml into fm. This application does not have a DTD file. The template and read/write rules files are specified as above. Except for complaining about a lack of a DTD, the application works fine; it even applies an XSLT in the process. Again, when I DO add a DTD to this latter application, I get the same complaint about not being able to read the DTD.
    I am using fully patched FrameMaker 9 in Windows XP.
    Thanks,
    Van

    Hi Van,
    The XML parser and FrameMaker are not the same thing. The Error Log says which component created which message. The XSL processor is another option that can throw messages. The "\\server\path\some.dtd" syntax in structapps.fm seems to be fine for some tools, as Internet Explorer with XML tools successfully finds the DTD which appears as "//server/path/some.dtd" in the XML. But apparently Xerxes, the XML parser bundled with FrameMaker, does not like this notation.
    If you have a path with a drive letter, "H:\path\some.dtd", FrameMaker turns that into "file:///H:/path/some.dtd". It seems, Xerces would like to see "file:/" in front of absolute paths.
    This is what I have in structapps.fm:
    Template: \\server\path\projecttemplate.fm
    DTD: some.dtd
    Read/write rules: \\server\path\projectrules.txt
    DOCTYPE: …
    Entity locations
      Entity search paths
        1: \\server\path\
    In the structapps.fm I have the DTD without path information. The resulting XML (without XSL postprocessing) then contains just the file name with a relative path back to the book folder (when saving a book as XML). It therefore requires the DTD to be available at this place. I handle this using an event script that fires for NotePreSaveXml and copies the DTD to the folder of the original document.
    As I always use XSL postprocessing and using XSLT1 it is not possible to have the doctype-system as a parameter I have this in my XSL stylesheet:
    <xsl:output doctype-system="some.dtd" />
    For the resulting XML the DTD is expected to be in the same folder as the XML file. This is handled by the same event script as above, it therefore copies the DTD to the source and the target folder.
    Bottom line: If you want/have to use UNC paths, you have to do some programming to work around a FrameMaker bug.
    - Michael

Maybe you are looking for

  • Firefox won't open... at all. On a Mac running the beta. What should I do?

    Not sure what happened, but I can't open Firefox anymore. I'm on a Mac and pretty sure I've been using the beta release. I remember it updating a few days ago, but anyway... it won't open. I've tried rebooting... nothing. It doesn't load. It just...

  • Tax code in PO

    I should change tax code in PO's for some materials. So i tried to change it from info records. But system is issuing the message ; Entry  V1  does not exist in T007A - check your entry Message no. 00058 But it is not an incorrect entry. i can see it

  • Built In Microphone Problems

    I have had this laptop about 5 months and used the microphone and such now and all of a sudden there are problems with it. i cannot use it whatsoever. whenever i try to use or configure it it says something about configuring in audio, no device found

  • Configuration Error Error:16

    I have installed the Flash/Flex builder 4 on 30 machines running Mac OS 10.5.8 and they were all fine and now I am getting an error on all of them about a configuration error.  Please uninstall and reinstall the product.  I have done this on a few to

  • Facetime HD Camera not detected - MacBook Pro 13 Retina (Late 2013)

    My MBPr 13 (Haswell / i7/ 16 GB / 512 SSD / OS X 10.9.1)  is roughly 2 months old. A couple of weeks ago the camera had 'disappeared' but this was resolved after a reboot. Then, a couple of days ago it disappeared again. What is happening is this: wh