Software for reading and writing of trigger

Hello

My goal: generate a sine wave for output to a channel BNC-2110 (connected to a speaker), listen to the sound from the speaker generates via 4 microphones (separated by a known distance) and save lag (or the phase difference) between each microphone. The moment in this regard must be very precise, and I'm having a little trouble by issuing a command to trigger.

What I would do, it's the departure of DAQmxRead data and some time after use (controllable) DAQmxWrite start display the signal. This way I can see where the signal begins to write. I also want to make sure that the DAQmxRead continue to record a little after (also controllable delay) finishes DAQmxWrite, to make sure that I collect all of the signal.

Secondly, I would like to assure you that I am not wasting resources on my computer by continually check whether the signal DAQmx has finished sending, and so I'm quite happy to record using the method of the finite samples. If I know how long the pulse is + my two departure delays and find yourself, I can calculate the total recording time and finished so samples is good enough. Which should reduce to nothing the need for a while loop?

The process goes something like this:

--> Continuous playback playback--> continue reading--> reading of finishing--> output
Delay time known--> Start--> finishing Writing written

My main problem is that I don't know how to create a "dependent software time based event trigger", and I don't know how to make sure that each DAQmxWrite/reading is ready to start to go before I have send the trigger for them. Any suggestions?

AHA! The synchronization problem has been in the task. I had activated the recording and the default directory was not on my hard drive - I wrote continuously on the network! Works fine now.

Tags: NI Software

Similar Questions

  • Adpaters file for reading and writing have stopped processing files of...

    I can't get rid of unexpected behavior in my BPEL process. Until two days ago the BPEL file adapter was successfully to query for files and reading, now all of a sudden the files are not read. However, the BPEL process is active.
    Also, I just finished writing the last piece for the main BPEL process, in which a file out (csv) is supposed to be written. The file for writing adapter is do invoke successfully as well as the processing activity is happening, but I don't see the file in the directory specified in the UNIX system?

    Any thoughts?

    Kind regards
    Ilyas

    I think that the huge file would have been the cause. In 10.1.3.4, there are a few new methods for the management of large files.

    http://download.Oracle.com/docs/CD/E12524_01/Relnotes.1013/e12523/adapters.htm#CHDHJGHG

    I don't know how to get the status of the agent of activation, as it is usually a process by thing. When I have problems with activation agent I increase levels of newspaper for the activating agent. This is done in the configuration tab in the BPEL, BPEL admin console in older versions, pre 10.1.3.4.

    (1) it is the same process, but for outgoing, you use the outgoing file header. You can use an entitled to update the name of the file. Make sure that you add the variable to the invoke. Have you looked at the rejection for this Manager. Or is is a business logic that determines failure? This kind of thing can be done in the BSE.

    http://www.Oracle.com/technology/products/integration/ESB/files/ESB-transactions-ErrorHandling.PDF

    also the BSE headers

    http://www.Oracle.com/technology/products/integration/ESB/files/ESB-presentation-headers.PDF

    (2) in the file adapter and ftp, there is this notion of a trigger file. It may be useful for you.

    http://download.Oracle.com/docs/CD/B31017_01/integrate.1013/b28994/adptr_file.htm#CIAHAHDC

    see you soon
    James

  • simultaneous reading and writing files TDMS

    A customer had a program written in 8.6; the programmer is no longer available and I'm looking to debug intermittent problems.

    N - channels of data is acquired and streamed to a PDM file. The operator can select a channel to view data in real time, but the display is one scope table displaying 15 seconds worth of data and when switching of channels the program "returns" display with the last 15 seconds of a data value of the new string (barrier data extracted from the TDMS file).

    What I notice here, aside from using sloppy cluster error, is that both references are open in the file - one for writing data and the other for recovery data. Is this a good practice? is it necessary or one reference supports the reading and writing? Is this a possible source of problems?

    thanx

    lmd2

    You can do the same thing with a single file reference.

    The issue of not being able to see the data that was written after the reading of reference has been opened is known for having refnums to open in two different processes, but not in the same executable or VI.

    Herbert

  • Reading and writing data XML of BC4J

    Hello!

    I try to reproduce "27.7 reading and writing XML data" chapter of 'Developer Framework of developing applications for forms/4GL developers's Guide. "
    Our intention is to read and write at first only XML.
    However, it seems that we need this chapter a database connection.
    To shorten this assessment - is it possible to adf bc only with xml?

    Kind regards
    Torsten

    The solution is described in "27.8 Using programmatic view objects from other Sources of data" in the doc you mentioned. If you use programmatic EO/VO you can do almost what you what to store data. We use xml for some data (but always store in the DB) and read it.

    Timo

  • What is a good antivirus software for mac and do I need?

    What is a good antivirus software for mac and would need one. I'm under el capitan, later.

    There is no such thing. They all cause more problems than they were designed to solve.

  • simultaneous reading and writing on a PDM file

    I found similar discussions on here, but none that satisfied my problem. I'm running several loops within a vi, which writes data in a permanently .tdms file. Another loop to finish its task from the start in a test, and I want to transition this loop so that it accesses the file writing and started writing on a network. It also enables me to check that the data is being stored in the file and that it is corrupt.

    I started with just the basics, but when I pass the second loop to read the file that is is always written off mistakes, saying that she met at the end of the file. It does if I put the count 1, -1 or anything in between. It illuminates, however, the end of the file output.

    I have the entry in the file tdms on PDM read wired to a local variable, just as I do writing PDM, they all have both read the same thing and I get an iterations of a data value of the reading, so, apparently, file access is no problem. And I have to someone who cringed to local variables, ensure that reading and writing are not activated until the local variable is updated.

    Try to set the "group name" entry on «TDMS read» If you write more than one group, you can use "View the contents of the DDHN" in order to get a list of groups.

    Herbert

  • How do I get Adobe Reader DC?  I got the free software Adobe Reader and now I seem to have the DC version, which has a cost and I do not remember change?

    How do I get Adobe Reader DC?  I got the free software Adobe Reader and now I seem to have the DC version, which has a cost and I do not remember change?  Why can't I find a phone number to speak directly to Adobe?

    Acrobat Reader is free.

  • Why my drive hard Boot keep reading and writing for 20 minutes after the start?

    As the title says my HDD Boot continues to read and write for about 20 minutes after the start. Read and write up to 10 GB in the process. I would say a good way to destroy a disc. I have not seen this behavior in any other OS.

    10.10.5 OS version

    Model: Mac Pro

    ID: MacPro3, 1

    Processor: Intel Quad-Core Xeon

    Number of processors: 2

    Total number of cores: 8

    (Vivid RAM) memory: 8 GB

    Any help will be greatly appreciated.

    Thank you.

    Check Console.app and see what happens.   Could be something of a time Machine for Spotlight indexing to a process of runaway of an OS X or a bug in the application.

  • reading and writing to the file on SD card

    I am currently using this code to read and write to files (credit is not because of me - I found these on the Board somewhere):

       private void writeFile(String data, String filePath)
        {
            try
            {
                FileConnection conn = (FileConnection)Connector.open(filePath,Connector.READ_WRITE);
                if (!conn.exists())
                {
                    Dialog.alert("No File Present Click to Create");
                    conn.create();
                }
    
                OutputStream out = conn.openOutputStream();
                byte[] b = data.trim().getBytes();
                String sb = new String(b);
                System.out.println("Bytes to String: " + sb);
    
                if(sb.length() == 0 )
                    System.out.println("String length is zero");
                else
                    System.out.println("String length is not zero" + sb.length());
    
                if(conn.canWrite())
                {
                    Dialog.alert("Writing");
                    out.write(b,0,sb.length());
                }
                else
                    System.out.println("Cannot write to this file");
    
                System.out.println("File Size is : "+ conn.fileSize());
                out.flush();
                out.close();
            }
            catch(Exception io)
            {
                test.setText("Exceptino Thrown from File" +io);
            }
    
        }
    
        private String readFile(String filePath)
        {
            try
            {
                FileConnection fconn = (FileConnection)Connector.open(filePath, Connector.READ);
                if (fconn.exists())
                {
                    InputStream input = fconn.openInputStream();
    
                    ByteArrayOutputStream baos = new ByteArrayOutputStream();
                    int j = 0;
                    while((j=input.read()) != -1) {
                        baos.write(j);
                    }
                    byte[] data = baos.toByteArray();
                    input.close();
    
                    String output = new String(data);
                    System.out.println("Output" + output);
    
                    fconn.close();
                    return output;
                }
                else
                {
                    System.out.println("File does not exist");
                    fconn.close();
                    return null;
                }
            }
            catch (Exception ioe) {
    
               System.out.println("Error:   " + ioe.toString());
               return null;
            }
    
        }
    

    When I try to write a string to a file and then read it again, I get a NullPointerException. When I check the folder that mimicks card SD card on my pc, there is no file created. is the above code ok?

    P.S. I use a simulator of the OS 5.0 and the SD card directory is configured to be somewhere on my desk.

    It is incredibly baroque and inefficient code for a simple job; be happy that you do not claim credit for it.

    A problem may be that the FileConnection in writeFile is not closed. I would rewrite the mess like this (leaving a part of the diagnostic output):

    private void writeFile(String data, String filePath) {  data = data.trim();  OutputStream out = null;  FileConnection conn = null;  try {     conn = (FileConnection) Connector.open(filePath,Connector.READ_WRITE);    if (!conn.exists()) {      conn.create();    }    OutputStream out = conn.openOutputStream();    // it might be advisable to specify an encoding on the next line.    out.write(data.getBytes());  } catch (Exception io) {    test.setText("Exception Thrown from File " + io);  } finally {    if (out != null) try { out.close(); } catch (IOException ignored) {}    if (fconn != null) try { fconn.close(); } catch (IOException ignored) {}  }}
    
    private String readFile(String filePath) {  String result = null;  InputStream input = null;  FileConnection conn = null;  try {    fconn = (FileConnection) Connector.open(filePath, Connector.READ);    if (fconn.exists()) {      input = fconn.openInputStream();      byte[] bytes = IOUtilities.streamToBytes(input);      // it might be advisable to specify an encoding on the next line.      result = new String(bytes);    } else {      System.out.println("File does not exist");    }  } catch (Exception ioe) {    System.out.println("Error: " + ioe.toString());  } finally {    if (input != null) try { input.close(); } catch (IOException ignored) {}    if (fconn != null) try { fconn.close(); } catch (IOException ignored) {}  }  return result;}
    
  • Need to disable notifications update for reader and flash player

    I hope that I ask this question in the right place.   Please direct me if I don't.

    Due to some problems with many of our applications that support web and rely in IE.  When are 1500 + users get invited up to date drive or a flash drive, they do not have to disable the 'optional' box to download and install chrome.

    This cause many helpdesk calls because their web applications do not work properly in chrome.

    We found the documentation: http://kb2.adobe.com/cps/837/cpsid_83709/attachments/Acrobat_Reader_Updater.pdf

    to turn off update notifications, however check machines both xp and win7, the key to page 16 of the pdf mentioned above, did not exist in HKLM, but he found in HKCU.   Tried to create the iCheck and iCheckReader in the two places, but not sure if they work effectively.

    Here are our real goal: we want not only to users, you are welcome to update player or flash because the installation of chrome drive.   We do not want reader or flash to update 'automatically '; We always want the possibility to update manually.

    How can we turn off all automatic update feature and create updates so that users never see them in both applications?

    We currently have users with reader, 8, 9 and 10.

    If you can provide the detailed steps, documentation, etc., registry keys.  I would be very happy.

    Thank you

    Chad

    You must use featurelock key to disable updater for Acrobat and Reader. According to the documentation, http://kb2.adobe.com/cps/837/cpsid_83709/attachments/Acrobat_Reader_Updater.pdf

    you got, has all the information.

    See section 2.5.2

    For example, use the following registry to disable the Player 10 on 32 bit OS update.

    Reader

    [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Adobe\Acrobat Reader\10.0\FeatureLockDown]

    "bUpdater" = DWORD: 00000000

    I have no idea on how to disable updates for Flash. You must post in the Flash Forum.

  • I would like Firefox to HTML for reading and nothing else.

    I would like to be able to browse a domain without sending all the cookies, running a script, or resources other than the URL download or pages I specify - just to get the HTML code and format text for reading, with tables and links and other whatnot, clickable image placeholders may be. Similar to the way that the text-only Lynx browser works. Is it possible to do this in Firefox? Or maybe an add-on that does? I have Noscript, but it is only part of what I want. It seems that Firefox is already doing the basic work, I just want to make a whitelist or a mode where is ALL this.

    Maybe this extension:

  • Reading and writing VISA function

    Hi all

    I am trying to record data from Server series (which has 16 ports) through com ports (I use total 7 ports).

    Here, I'd understand the VISA service.

    Question 1

    If I want to just save data (from the server), can I still write VISA function to read from COM1?

    Or

    Can I just use VISA based only on read and read the string of com port data?

    Question 2

    After I save data of type string, I'll save in a text file.

    But what I see inside the save file is just a raw string of data (which I can't read).

    How to cut data type string in different reading (different record like the tension, the ammeter reading and on/off switch)?

    Please advise...

    Question 1 – it depends on what is the other end of the serial port. If it's broadcasting data all the time, a reading is all you need. If she needs a command to send you information, then you will need both. Look at the definition of communication protocol for what you are trying to read.

    Question 2 - do you need to format. There are a lot of string screws on the palette of the string manipulation, not knowing how the string is formatted at all to start I can not give you advice more than that. An example of the way you write to file, and what you do with the data received can be useful... If the data is coming from a long series, if all goes well there are separators and a chain analysis helps you to highlight if you need to. If you read each port in turn and concatanting just a string, put a constant of the tab between them (available on the palette of strings), or no matter what other delimiter you want to use for that matter. Otherwise, if they are all in the field of fixed-length subset of string vi could be a way to go.

  • Mr. Fix it cannot fix the DVD/CD, reading and writing problem

    I had a problem a few months ago this onc I put a CD in the CD/DVD drive, it can't read and rejected and ask to put a readable CD, then I run Mr. Fix and the problem disappeared. recently just the same problem, I tried Mr.Fix but it cannot solve the problem, then it is there another way to solve the problem

    Best regards

    Ramzi salameh

    Hello

    Step 1: Please do all the same underneath if you did some before as it is often the set of operations which solves the problem.

    Try this double click Control Panel - Device Manager - CD/DVD - device - tab - click on update drivers (this will probably do nothing) - then RIGHT click the drive of the driver - UNINSTALL - REBOOT this will refresh the default driver stack. Even if the reader does not appear to continue below.

    Then work your way through these - don't forget the drive might be bad, might have a cable loose or slight corrosion on the contacts (usually for a laptop) and other issues.

    Your CD or DVD drive is missing or is not recognized by Windows or other programs
    http://support.microsoft.com/kb/314060 - a Mr Fixit

    Try this fix manually if the Fixit 314060 does not work
    http://www.pchell.com/hardware/cd_drive_error_code_39.shtml

    Your CD or DVD drive is missing or is not recognized by Windows or other programs - a Mr Fixit
    http://support.Microsoft.com/kb/982116

    The CD drive or the DVD drive does not work as expected on a computer that you upgraded to Windows Vista
    http://support.Microsoft.com/kb/929461

    When you insert a CD or a DVD, Windows Vista may not recognize the disc
    http://support.Microsoft.com/kb/939052

    Your CD or DVD drive cannot read or write media - A Mr Fixit
    http://support.Microsoft.com/GP/cd_dvd_drive_problems

    CD/DVD drive does not appear in Windows Vista, or you receive this error during the installation of Windows Vista after booting from the DVD (AHCI)
    http://support.Microsoft.com/kb/952951
    Drive CD - R or CD - RW Drive is not recognized as a recordable device
    http://support.Microsoft.com/kb/316529/

    Hardware devices not detected or not working - A Mr Fixit
    http://support.Microsoft.com/GP/hardware_device_problems

    Another possibility is that the cables are loose. Remove ALL power, then make sure that the cables at both ends. Remove and replace, do not just tight. For laptops, you can often clean power and contacts data with a pencil eraser.

    Some DVD players do not use the Windows default drivers so check with the system manufacturer and the manufacturer of the device to see if there is a firmware or drivers for your drive if necessary.

    ===============================

    Step 2: You have disc problems as the CD/DVD is actually 4 discs in 1 case (burn CD & DVD and CD and DVD read). Therefore, it is not unusual for 1 or 2 rooms with not so work that others do it properly.

    Did you follow the Troubleshooting Guide for the reader who still does not work? There are some entries in the registry that the troubleshooter does not solve, and those who "could" be the cause.

    Check with your system manufacturer Maker and device for possible firmware updates and the correct registry entries for your car.

    These are the keys in my opinion, are those in question - secondary-keys for the CD/DVD drive of course because there will be other subkeys in these keys. Be sure to ask specific keys involved as well as the parameters.

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\IDE

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Hardware Profiles\0001\System\CurrentControlSet\Enum\IDE

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\ {4D36E965-E325-11CE-BFC1-08002BE10318}

    -----------------------------------------------------------------------

    You can probably find more information here and maybe even registry settings correct for your CD/DVD from someone with the same drive model.

    Forums - much real experts help and hardware information
    http://Club.myce.com/

    I hope this helps.
    --------------------------------------------------------------------------------------------
    Rob Brown - Microsoft MVP<- profile="" -="" windows="" and="" devices="" for="" it :="" bicycle="" -="" mark="" twain="" said="" it="">

  • TSST corp CDDVDW TS-L633B stopped reading and writing

    I have a laptop Acer 4736Z with a TSST corp CDDVDW TS-L633B DVD - RW, so decide simply ceased to read and write DVDs and CDs. When I insert a blank dvd, it will ask me to burn files to it but when I do, it complements the habit and will the useless DVDs. When I insert CD or DVD, the drive does not read it more.

    Please help me on how to solve this problem.
    Thank you

    Hello

    You have disk problems as the CD/DVD is actually 4 discs in 1 case (CD & DVD burning and)
    Playback of CD and DVD). So it is not unusual for parts from 1 or 2 to not work so that others do
    correctly.

    Burning at low speed, or by using the master could help. A CD/DVD cleaner might help.

    Brand of the CD or DVD drive can also be the problem. Low quality (cheap brands) are always problematic.

    CD/DVDs have a tolerance + - and your can read/write on the edge outside these discs
    tolerances. They may be delivered, but it is generally more economical to replace the disk.

    Several good info here:
    http://Club.myce.com/

    CD/DVD units
    http://www.myce.com/storage/

    Notes on the troubleshooting and repair of readers of compact disks and CD-ROM Drives
    http://www.repairfaq.org/repair/F_cdfaq7.html#CDFAQ_014

    ===========================================

    This troubleshooting might not help if there are problems of alignment and wear it
    is worth it.

    Step 1: Please do all the same underneath if you did some before as is often total
    a process that solves the problem.

    Try this - Panel - Device Manager - CD/DVD - double-click the device - driver
    Tab: click on update drivers (this will probably do nothing) - then do a CLICK RIGHT to the road.
    UNINSTALL - REBOOT this will refresh the default driver stack. Even if the disc is not
    shown continue below.

    Then, work your way through these - don't forget the drive might be bad, could be a coward
    cable or slight corrosion on the contacts (usually for a laptop) and other issues.

    Your CD or DVD drive is missing or is not recognized by Windows or other programs
    http://support.microsoft.com/kb/314060 - a Mr Fixit

    Try this fix manually if the Fixit 314060 does not work
    http://www.pchell.com/hardware/cd_drive_error_code_39.shtml

    Your CD or DVD drive is missing or is not recognized by Windows or other
    programs - a Mr Fixit
    http://support.Microsoft.com/kb/982116

    The CD drive or the DVD drive does not work as expected on a computer that you
    upgrade to Windows Vista
    http://support.Microsoft.com/kb/929461

    When you insert a CD or a DVD, Windows Vista may not recognize the disc
    http://support.Microsoft.com/kb/939052

    Your CD or DVD drive cannot read or write media - A Mr Fixit
    http://support.Microsoft.com/GP/cd_dvd_drive_problems

    CD/DVD drive does not appear in Windows Vista, or you receive this error during the
    Setup Windows Vista after booting from the DVD (AHCI)
    http://support.Microsoft.com/kb/952951
    Drive CD - R or CD - RW Drive is not recognized as a recordable device
    http://support.Microsoft.com/kb/316529/

    Hardware devices not detected or not working - A Mr Fixit
    http://support.Microsoft.com/GP/hardware_device_problems

    Another possibility is that the cables are loose. Remove ALL power, then check
    in both ends of the cables. Remove and replace, do not just tight. For portable computers, you can
    Often, clean power and contacts data with a pencil eraser.

    Some DVD players do not use the Windows default drivers so check with the system
    Designer and manufacturer of device to see if there is a firmware or drivers for your drive if necessary.

    ===============================

    Step 2: You have disc problems as the CD/DVD is actually 4 discs in 1 case
    (Read burn CD & DVD and CD and DVD). It's not unusual for 1 or 2 parts to not
    function, while others do so correctly.

    Did you follow the Troubleshooting Guide for the reader who still does not work? There are
    some registry entries that do not fix the resolution of problems and those who 'could' be the
    cause.

    Check with your system manufacturer Maker and device for these two possible firmware updates
    and the correct registry entries for your car.

    Here are the keys in my opinion, are those in question - for the subkeys of the CD/DVD drive
    of course there will be other subkeys in these keys. Do not forget to ask specific keys
    in question as well as the parameters.

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\IDE

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Hardware Profiles\0001\System\CurrentControlSet\Enum\IDE

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\ {4D36E965-E325-11CE-BFC1-08002BE10318}

    -----------------------------------------------------------------------

    You can probably find more info here and maybe even right for registry settings
    your CD/DVD from someone with the same drive model.

    Forums - a lot of expert real help
    http://Club.myce.com/

    CD/DVD units
    http://www.myce.com/storage/

    Use DevManView to locate the CD/DVD in the registry (be careful and do a prior Restore Point)
    nothing change) - find the DevManView device and then make a right click on it free in RegEdit.

    DevManView - free - an alternative to the standard Windows Device Manager,
    that displays all devices and their properties in flat table, instead of the tree viewer
    http://www.NirSoft.NET/utils/device_manager_view.html

    I hope this helps.

  • installation of the software for HP1610 and/or 4315 all in printers will not accomplish and crashes


    Hello

    Problem solved to my satisfaction.

    I went to ms config and follow-up instructions from hp and then opens the d\l file and press the remove software and the program began to install software for both printers, even if one of them was closed.  The two programs are installed by a stroke of luck...

    The icon detects now two printers.  The only thing missing is the other icons that came with the program, which I did not need.

    I think there is a problem with the software and it needs some more work for Vista...

    Roger

Maybe you are looking for