Incompatibility between the two recorded and stored data

Hi guys, I am preparing Labview codes for reocording synchronized analogy and reading. Specifically, I want to record for 6 seconds, while the sounds of output for 5 seconds. This means that the analogue output stop 1 second before the end of the recording. In addition, I want to save the second 6 check-in 3 files TDMS (2 seconds). However, I couldn't do my codes work in the required way (attached). I have identified two problems that are beyond my skills.

1. "some or all of the requested samples are not yet acquired. It's weird, because I already have the function of "DAQmx Read" provided that only when there is sample to read.

2. instead of save data to 3 TDMS files, only one file is generated.

I am grateful for your help. Thank you very much.

luojh135 wrote:

Hi guys, I am preparing Labview codes for reocording synchronized analogy and reading. Specifically, I want to record for 6 seconds, while the sounds of output for 5 seconds. This means that the analogue output stop 1 second before the end of the recording. In addition, I want to save the second 6 check-in 3 files TDMS (2 seconds). However, I couldn't do my codes work in the required way (attached). I have identified two problems that are beyond my skills.

1. "some or all of the requested samples are not yet acquired. It's weird, because I already have the function of "DAQmx Read" provided that only when there is sample to read.

2. instead of save data to 3 TDMS files, only one file is generated.

I am grateful for your help. Thank you very much.

You have a beautiful mess!  (Sorry, but you do) Your little logic code.

First of all, if you want to save data to a file aDAQmx TDMS task do it! Enable logging of data it will greatly simplify your diagram to the point where some of the other problems become more obvious.

Now, let us look at this section:

In the present, I can that you used to be a programmer of text.  These subsets 'replace Array' actually boggle my mind! Why replace the first element of the tables full of zeros? and why is it a picture of 5,000 items?   Looks like you put 5000 zeros on the front and back of the noise AND stuffing a 0.99 in the first element of an array of 5000 zeros only to replace the range of a 0.99 and 4999 zeros with a table of 5000 zeros TWICE! (in case the first subset of the table replace did not work? WWYT?) But save a little... A high pass filter with fh = 11000 and fl = 8000?

Save the help file, we find:

Then, this constant 110000 doing here? (Other than ignored)

Save a little and you father a production 1.25 M points of noise Gaussian with a gap of 0.1, but the constant is labled rms.  (Go fix it now before you confuse us no more!)

In all sincerity. I've seen worse but please correct obviously I did notice and we could be much more effective to help with the subtle substance which can always be wrong.

Tags: NI Software

Similar Questions

  • Firewall prevents the two outgoing and downloading data

    Original title: Firewall blocked

    firewall prevents the two outgoing and data download to get thur - when trying to review the status of firewall messages setting for some reason connection cannot be completed question began about two weeks is there is alos prevent preventing me from getting to updates software on most of the occassins download is so slow or outgoing computer search will display connection can not be filled - any version of xp windows-ideas

    Hi Wayne,

    You can check this article here to see if it corrects the problem.

    If that doesn't work, see this article. See how it goes.

    I hope this helps!

  • The difference between the two copies and Clone?

    I make a copy of an existing symbol. On the Edit menu, they have Dulicate and Clone to achieve this. What is the difference between the two? As far as I can tell, if I select the clone, it puts a copy of the object directly on top of the selected object to copy. If I select duplicate it offered the copy is not directly above the original to copy object. What is the difference?

    Well Yes

    Jim Babbage

  • By comparing the two records and return only the differences

    Hi all!

    Assume the records as follows:
    USERID     USERNAME   STREET   CITY   PHONE        
    ---------- ---------- -------- ------ -------------
             1 John Smith Street 1 City 1              
             1 John Smith Street 1 City 1 (31) 234-1234
    UserID is PK on this table. Imagine that this application represents two versions of the same record on a table. This recording was 'day' and the phone field changed from null to "(31) 234-1234'.»

    What I´d like to do is to retrieve only (or fields) that changed between these 2 versions of the same record. The idea is to call this query (or process PLSQL) a trigger and save these data on a table. The data returned by the query (or process), on the example above, should be something like:
           USERID     USERNAME STREET CITY PHONE        
    ---------- -------- ------ ---- -------------
             1                      (31) 234-1234
    1 row selected.
    If two columns have been modified, (Eg., City column also changed "City 1' to 'city 12'), the return value should be:
    USERID     USERNAME STREET CITY   PHONE        
    ---------- -------- ------ ------ -------------
             1                 City12 (31) 234-1234
    1 row selected.
    Any idea?
    Thank you very much for your attention.

    Hello

    What I´d like to do is to retrieve only (or fields) that changed between these 2 versions of the same record. The idea is to call this query (or process PLSQL) a trigger and save these data on a table.

    Looks like you're simply wanting a trigger?

    Something like:

    CREATE OR REPLACE TRIGGER audit_trg
      AFTER UPDATE ON your_table
      FOR EACH ROW
    BEGIN
    
     INSERT INTO audit_table(userid, username, street, city, phone)
     VALUES(
       :new.userid,
       nullif(:new.username, :old.username),
       nullif(:new.street, :old.street),
       nullif(:new.city, :old.city),
       nullif(:new.phone, :old.phone)
     );
    
    END;
    /
    
  • How to count the number of Sundays between the two dates

    Hello

    I want the number of Sundays between the two dates

    example of

    number of number of Sundays between 4 January 2013 ' and April 30, 2013 "in a select query, I have to include this as a sub query in my select statement.

    nordine B wrote:
    Hi Frank,.
    Have 1 doubt...

    In many countries the week could me "Monday". How the application handles it?
    Or did I get something wrong?

    Help, please!

    For ' IW'(ISO week) early in the day is always Monday...

    It's so simple - calculate the weeks between two dates based on Monday... This is the number of Sundays...

    NEXT_DAY is another option...

    SQL> with dd as
      2  (
      3      select TO_DATE('01-04-2013','dd-mm-yyyy') fdt, TO_DATE('30-04-2013','dd-mm-yyyy') ldt from dual
      4  )
      5  SELECT       fdt,ldt,
      6            (next_day(ldt,'sunday')-next_day(fdt-1,'sunday'))/7 sdays
      7  FROM         dd;
    
    FDT       LDT            SDAYS
    --------- --------- ----------
    01-APR-13 30-APR-13          4
    

    Published by: JAC on May 2, 2013 12:20

  • I need to implement Drag N Drop between two tables that saves the two records

    I need to implement Drag N Drop between two tables that saves the two records on a third page, using drag 'n drop.

    Check out this video http://baigsorcl.blogspot.com/2011/01/drag-and-drop-collection-in-oracle-adf.html

  • Exchange of data between the main VI and sub - VI

    It is my first attempt to build a comprehensive program and hope you can help me.

    The idea is to load a set of data and to perform several calculations and operations on them, find themselves in the creation of a report file.

    What I want to do is to build a main VI which contains the data, and several sub - vi to do the math, dynamically loaded in a subgroup of experts (for the simple user interface). I thought about this architecture because I'm sure I'll have to change the calculation of VI, and I don't know how I'm going to need, so I can just add an another calc VI to the plugin dir and load it. The thing is, I have to keep moving data back from the main VI to the Subvi and maybe even between sub - vi. Is there an easy (or not so hard) how? I thought about queues, but sometimes the data is to be sent to more than a subvi, and I can't have a queue for each. The idea that I get is like a network producer-consumer mode BOX: the main VI produce some data and all those interested in this data use. Then they send the results back (as a "producer") and all stakeholders in the response it consumes.

    Attached, is a "skeleton" of what I intend to do.

    There are several ways you can accomplish this. First of all, you can use the Start Asychronous Call, which will provide a component of connector for you. So, it is easy to wire the reference to it. You could also implement a global functional (also known as a motor of action) to access the event reference. It is the approach we use for our shared events. If you have lines between the main VI and ths Subvi you to format a particular message reference. However, I don't think that this approach would correspond to what you are doing.

  • Problem with the two EA DEVELOPER SQL DATA MODELING 3.0.0.665 and 3.1

    I created a model of very large data using SQL Developer data 3.0.0.665 and 3.1 EA maker. Its having a lot of check constraints. Whenever I am the design of the fence and the DOF and reopening export to import the DDL file failure to import completely check constraints. It is important to check constraints, but without any range of values inside. Its very frustrating because whenever you open import ddl, you must manually add again all the details of data check range constraint.

    OS: Windows XP.
    Check in the two EA Developer SQL Data Modeler 3.0.0.665 and 3.1

    -------------------------------------------
    Here are the contents of the .dmd file.
    -------------------------------------------
    * <? XML version = "1.0" encoding = "UTF - 8"? > *.
    * < OSDM_Design class = "oracle.dbtools.crest.model.design.Design" name = 'Admin_Panel' id = "9BE18B0A-6C67-2E5B-00DE-BD8312189ECB" version = "3.41" > * "
    * < createdBy > administrator < / createdBy > *.
    * < Createduserid > 2011-10-17 08:32:18 UTC < / Createduserid > *.
    * < Admin_Panel ownerDesignName > < / ownerDesignName > *.
    * < false capitalNames > < / capitalNames > *.
    * < designId > 9BE18B0A-6C67-2E5B-00DE-BD8312189ECB < / designId > *.
    * < / OSDM_Design > *.

    -------------------------------------------------------------------------------
    An example how the check constraints to get dirty.
    -------------------------------------------------------------------------------
    Initial check constraint is as below:
    ======================
    ALTER TABLE test_table
    ADD CONSTRAINT Active_Flag_ck
    CHECK (Active_Flag IN ('A', 'I'))
    *;*

    Below how it occurs once I have imported the ddl and re-export:
    ============================================
    ALTER TABLE test_table
    ADD CONSTRAINT Active_Flag_ck
    (CHECK)
    *;*

    I'm in trouble as I already in the middle of the my development using SQL Developer Data Modeler.

    Please help me soon.

    Jean

    Hi John,.

    Every time I'm fence design and export the ddl and reopening through the import of the DDL file

    Why are you doing this? Once the DDL file is imported and then save the drawing and open simply saved design, no need to generate the DDL and import it every time that you start Modeler data.
    On the list of values - forced as this CHECK (Active_Flag IN ('A', 'I')) are imported as constraint check plain and not as a list of values.
    There are the more specific elements import of check constraint - they are defined as type database constraint that you select during the import. Accordingly if you import your DOF as Oracle 10 g DDL, then you will get forced correct check in DDL generated for Oracle 10 g and Oracle 11 g. Constraint of evil will be generated for Oracle 9i. You can move the constraint for Oracle 9i (in the check constraint dialog box) or generic if it can be treated as such constraint.

    I logged for DOF bad bug.

    Philippe

  • I have a design program on my iMac and Air. I want to transfer a file between the two, but it's in a format that it cannot open any applications. Can I transfer it somehow between the two?

    I have a version software Punch Home Design compete 17.5 on both my iMac and my Air.It saves files in my office as a .dxf file. I want to transfer the file to my Air, but nothing opens a .dxf file, including the Dropbox App Home Design is without help. Is it possible to just connect the two computers and share the file? It offers 3D features that I want to show a customer without making them come to my office and look at my big mac. The two computers are on 10.11.3, so what counts.

    I don't understand how a program that works and which saves .dxf files can open them but CADintosh can open the .dxf files.

  • What is the difference between the export photos and pictures of unmodified export

    I'm trying to export my library of photos of 30 GB on a hard drive. When you choose file > export gives two options: export the Photos... and export Unmodified Original...

    Is there a difference between the two options?

    When I export the location data is backed up?

    The original unmodified are image files full-size that have been imported into the library at the start.

    Export Photos will give you the edited version (if it is edited).  Also, you will have a chance to change the size of the file (Mbs) and/or the image (pixels) size when exporting and to change the JPEG, tiff or png.

  • Find the difference of pressure between the two transducers using a NI DAQ 6008

    Hello

    First of all, I'm a relatively inexperienced LabVIEW Developer, so my apologies in advance if this message does not have something, or otherwise lacks clarity.

    I try to develop a VI as follows the pressure difference between the 2 EME 3100 pressure sensors (4-20 my), related to two different pressure lines, using a NO-DAQ 6008. I would like for the acquisition of data to read the two transducers, then have him find VI the differential and write this differential in an Excel file.

    The data sheet for these sensors may be found at: http://www.gemssensors.com/Products/Pressure/Pressure-Tranducers/Sputtered-thin-film/~/media/GemsNA/...  It is a 3-wire system, with a voltage between 8 - 24V. I use an external power supply of generic brand to power sensors, which provides a maximum of 24V @ 4A.

    I drifted my physical connection (for the two transducers) this thread http://forums.ni.com/t5/LabVIEW/I-am-having-trouble-Omega-PX4200-Pressure-Transducers-to-where-I/m-p... and am relatively certain of the accuracy of the information. For purposes of signal conditioning, I use a 500 Ohm resistor between the signal of each transducer and the Earth wire.  On the side of software, I use the latest version of LabVIEW (2011) as well as MAX on a Windows 7 64-bit machine.

    In an ideal world, the sampling rate would be as high as possible, but 4 samples per second would suffice for all purposes useful.

    Given this goal, are there any sample of VI (especially for MAX, which I have not yet used) who would be similar/applicable to this project, specifically, regarding setting a sampling frequency, calibration of the transducers or affecting the pins/channels appropriate? All resources would be greatly appreciated.

    Kind regards

    MG Wilkinson

    Measure the voltage between the two resistance (resistance by probe 4-20 MA) using the differential inputs of the x 600.

    When you configure the task, you can read several entries at once, by entering in "Dev_ / AI0:1" in the physical channels and using the "several channels / {unique |}". multiple} samples"polymorphic instance.

    600 x can read 1kS/sec.

    Do maths/conversions on the table, and then simply subtract the two tables.

    Could also take some samples (10-100) at 1 kHz and their average together, give you a smaller rate effective sampling but with less noise.

    A loop of producer-consumer would be good architecture here, let the daqmx reading live in a loop and sends the data via a queue to a 2nd consumer that performs mathematical operations and write to a file.

  • Align the two signals and measure the Phase Shift

    Hello

    I do an experiment in which I use the NI USB-6221 DAQ card. The jury is able to make 250 k samples/second. I want to measure two voltages in a circuit and find the phase shift between them at frequencies between 1 and 10000. First I ouputted a wave sinusoidal frequency variable through the Commission and applied to a test circuit. Then I used the Board to measure the two tensions consecutively (thus reducing the maximum sampling frequency at 125 k). I used the signals align VI and measured the two phases and then calculates the phase shift (VI attached in Phase 1). It worked well for the test circuit I built in which the phase shift went way logarithmique.20 degrees ~84.5 degrees and then stabilized. At frequencies above 5 000 Hz phase shift must have remained constant, but it varies more or less 1 degree. When the phase shift is 84.5 degrees, present a degree of variability is not particularly explicit. When I asked my program on the circuit that I really wanted to measure, the phase shift went from-. 5 degrees up to about 1.2 degrees. The change in the values of phase shift at high frequencies (> 3000) was environ.2 degrees. Given the small phase shift, this variation is unacceptable. Now I tried to use a sequence to each blood individually (increase the maximum sampling frequency to 250 k) and then align the two signals and measure the phase of each shift. When I use align it and re - sample Express VI to realign the two signals, I get the message "error 20333 analysis: cannot align two waveforms with dt even if their samples are not clocked in phase." Is it possible to align two signals I describe here? I enclose the new VI as Phase 2

    Matthew,

    I think I have an idea for at least part of the problem.

    I took your program data and deleted stuff DAQ.  I have converted the Signal on the chart control and looked then what was going on with the signal analysis.

    The output of the Waveforms.vi line has two waveforms, like the entry.  However, arrays of Y in the two waveforms are empty!  It does not generate an error. After some head scratching, reading the help files and try things out, that's what I think is happening: the time t0 two input signals are 1,031 seconds apart. Since the wavefoms contains 1,000 seconds of data, there is no overlap and may not align them.

    I changed the t0 on two waveforms are the same, and it lines up.  The number of items in the tables is reduced by one. Then I increased the t0 of 0.1 seconds on the first element. The output had both greater than the entry by dt t0 t0 and the size of the arrays was 224998.  Reversing the t0 two elements shifts the phase in the opposite direction.

    What that tells me, is that you can not reliably align two waveforms which do not overlap.

    I suggest that you go to 2-channel data acquisition and that it accept the reduced sample rate.  You won't get the resolution you want, but you should be able to tell if something important happens.

    You may be able to improve the equivalent resolution by taking multiple steps with a slight phase shift. This is similar to the way that old oscilloscopes of sampling (analog) worked. Take a series of measures with the signal you are currently using.  The make enough average to minimize changes due to noise. Then pass the phase of the signal of excitement to an amount that is smaller than the resolution of phase of sampling rate and repeat the measurements.  Recall that I calculated that for a 5 kHz signal sampled at 125kHz, you get a sample every 14.4 degrees. If shift you the phase of 1 degree (to the point/mathematical simulation), you get a different set of samples for excitement.  They are always separated by 14.4 degrees.  Take another series of measures. Transfer phase another degree and repeat.  As long as your sampling clocks are stable enough so that frequency does not drift significantly (and it shouldn't with your equipment), you should be able to get near resolution of what you need.  The trade-off is that you need to perform more measurements and may need to keep track of the phase shifts between the various measures.

    Lynn

  • I can't stop finite samples daqmx read between the two?

    Hi all

    I want to read data from 10 seconds to a trigger is received. for this im using daqmx task finished sample mode and read the data on the trigger getting. It works fine but I can't stop my vi between the two when its reading of the data. I have to wait for it to complete the reading of values, and then stop the vi.

    so I switched to continuous sampling mode that allowed me to stop the vi whenever I want.

    I just want to know is there any means or the property using which I can stop my task over daqmx read when I want?

    I guess you call DAQmx Read with extraordinary value (-1) for samples of #.  It is also the default if left thread continues.  In a finished sample task, it means to wait until the memory full buffer has been filled with samples before returning.  Once you make that call, you cannot directly finish soon.  You're stuck waiting for buffer fill or for the timeout expires (default 10 seconds).

    One way to avoid getting stuck is not to ask for samples that do not exist already.  You can query a DAQmx Read property, known as the "Samples available" or something like that and son of this result in a call to DAQmx Read.  Such a call will return immediately whatever data are currently available.  Subsequent calls will give you samples.

    -Kevin P

  • difference between the binding context and link container

    Hello experts

    can you please explain to me the difference between the binding context and link container.

    I searched on the net but unable to understand the concept.

    Hello

    the BindingContext represents the DataBindings.cpx file execution and is a record of BindingContainers and their mapping pages and views. In addition it contains information about the data used by an application controls. The link container is the representation of the execution of the file PageDef and gives you access to the collections, methods, and attributes of the data used by a page or view. Context binding is a house while the link container is a piece in.

    Frank

  • Any difference between the separate function and aggregation in sql query cost?

    Hello
    I've run many models sql stmts - such as:
    one) using a single table
    (b) using the two tables, using simple joins or outer joins

    but I didn't notice a difference in sql stmts in cost and implementation plan...
    In any case, my colleague insists on only using the aggregate function is less expensive compared to
    separate... (something I've not confirmed, that is why I believe that they are exactly the same...)

    For the situation described above under 1 sql... We could for example use
    select distinct deptno
    from emp
    select count(*), deptno
    from emp
    group by deptno
    select distinct owner, object_type from all_objects
    select count(*), owner, object_type from all_objects
    group by owner, object_type
    Have you ever found no difference between the two...?

    Note: I use Ora DB 10g v2.

    Thank you
    SIM

    Alexandre Gelin says:
    function separate and aggregation are for different uses and can give the same result, but if you use the aggregate function to get the separate records, it will be expensive...

    really? I find them almost identical to 11g. Actually GROUP BY is almost always more fast for me in the old days.

    article about this askTom Re: any difference between the separate function and aggregation in sql query cost?
    This applies mainly to the older oracle versions http://www.oracle.com/technology/products/rdb/pdf/distinct_derivedtables_groupby_sort_tech_article.pdf

Maybe you are looking for

  • Recommended installation for the stability of the regions hot &amp; warm even under Safari until Mac, cooling system is innovated. For a more Durable Mac

    Hello. It is best to combine a stable software (10.11.6 is stable to this day) and a cool hardware, even with Safari (with many tabs). A stable software is not enough, a cooled optimal equipment is also essential; It creates a stable holistic system.

  • FCB-EX980SP

    I use the specified security (FCB-EX980SP) camera in my project.When I integrate into my system, I see restore image on the screen.Video decoder PST IC 5146 and ADV 7343 video Encoder IC is used in my project.When I connect it to another camera its w

  • New mini optical mouse does not work

    Hi all: I used a mini mouse optical for a few years now without a single problem. I just plugged into the USB port, and that's all. Yesterday it died on me, so I bought a new. The mouse does not work and the cursor stays frozen at least that I move i

  • Data for the graph economy waveform

    Hello I'm trying to collect the data of temperature with the attached VI. Everything works fine until I open the exported file that contains only the last point of the chart. I already had this problem and I think that it is quite common, but I can't

  • How to determine the color of a pixel on any given point on the screen?

    Does anyone know if it is possible to get the value of hexadecimal color of a pixel on the screen? And if yes how can I do this? I'm developing an application which can detect the color of an object in another (open) window and based on some steps. A