Interleaving of samples: two outputs analog (tables with different lengths)

CHAN                   AOCHANNEL1       AOCHANNEL2       AOCHANNEL1           AOCHANNEL2       .. .and so on

SAMP * * * * * * * * * * * * .............and so on

Hi guys, how could I go on the interlacing of two arrays of different lengths in a two-channel analog output?

In the illustration above, for example, I like to write 5 values in channel 1, followed a string of unique value 2 and so on...

I use DAQmx library controls to achieve this (not LabView).

I am able to write unique values each time a task is opened without any problem, I was wondering if I can interleave the berries so that values are buffered and tasks are performed with greater haste.

best regards,

Ravi

target met: I've made the following changes:

CREATION OF TASK 1
CREATION ANALOG_VO channel 1 & channel 2 in TASK 1
CONFIG. CALENDAR OF TASK 1

CREATED some TENSION with SAMPLES interleaved pre

WRITING TASK 1 VALUES

TASK 1 STARTED



DAQmxCfgSampClkTiming(taskHandle1,"",SAMPLING_RATE,DAQmx_Val_Rising,DAQmx_Val_FiniteSamps,2*SAMPLE_SIZE_WX)


Tags: NI Hardware

Similar Questions

  • Several analog inputs with different configuration differential/CSR

    Hello

    Can anyone tell how to measure two analog inputs with different configurations using a USB-6009?
    I am aware of the syntax for create virtual channels for the channels DAQmx create virtual so I created two strings using Dev3 / ai0:1 but I would like the first string of the CSR and the second to be differential.
    So far I have found no way to specify the configuration of the separate channels.

    Any ideas much appreciated!

    Jack

    JackT wrote:

    I prefer to use the 'low' level vi is therefore always curious to know if there is a way to set the configuration using the their.

    It should be like this:

  • 'For' loop with a different number of iterations. Second, the auto-indexation of the tables with different sizes is done. It can affect the performance of the Vi?

    Hello

    I have a loop 'for' which can take different number of iterations according to the number of measures that the user wants to do.

    Inside this loop, I'm auto-indexation four different 1 d arrays. This means that the size of the tables will be different in the different phases of the execution of the program (the size will equal the number of measures).

    My question is: the auto-indexation of the tables with different sizes will affect the performance of the program? I think it slows down my Vi...

    Thank you very much.

    My first thought is that the compiler to the LabVIEW actually removes the Matlab node because the outputs are not used.  Once you son upward, LabVIEW must then call Matlab and wait for it to run.  I know from experience, the call of Matlab to run the script is SLOW.  I also recommend to do the math in native LabVIEW.

  • Two tables with different values of basic on an analysis filter

    Hi guys,.

    Let assume that I have an analysis with columns: group_id and sales.
    On this basis I would like to create two tables: table1 where group_id = 1 and table2 where group_id = 2.

    OBIEE is able to do?

    Kind regards
    Slavi

    Hi Slavi,

    You can do it in a single analysis, but you have to have the column with group_id twice.

    Bring, group_id_1, group_id_2 (same column), sale

    Now in table 1.

    bring group_id_1, sales

    Then in the selection steps for group_id_1-> select members-> Action choose keep only-> choose the value of the filter 1

    This will filter the table 1 with group_id 1

    In table2 group_id_2 porter, sales

    Then do the same step for group_id_2 with the value 2.

    You now have two reports with different filter in the same report.

    If you want you can keep the same name column for the two columns group_id, I just kept group_id_1, group_id_2 for easy reference.

  • Impossible to use two af:tables with different colors (skins)?

    Im trying to configure the Siebel self-service application and customize the counting. I have a few problems, because I need to show two af:tables on the same page, but with different colors. One with black background and white text (header and body) and the other with white background and black text. I tried to use styleClass: are, but the css settings defined for the table of the af are the substitution of those mentioned in the style sheets.

    Anyone with an idea how to solve this problem?

    Thank you
    / Jon-Erik

    Hello

    If the styleClass name is table1 then the skin selector would be something like

    .Table1 af | table

    mul afTable.af: table

    I don't see how this can be overloaded. If you hypothesis is that the style class reference must be to a definition of CSS on the page, then indeed, it does not. The styleClass name is an identifier of type named for the skin component and is used to describe more the component skin

    Frank

  • two queries against aud$ with different results

    Hi guys

    I'm not so good with queries and it is the reason for my question:

    We have active audit and we want to get the following information (monthly):

    1. -How many times the logon user to the database.
    2. -each logon to each user in a month.

    For the first (1) obligation for us to have the following query:

    select USERID "Cuenta", USERHOST, TERMINAL, nombres||' '||PRIMER_APELLIDO||' '||SEGUNDO_APELLIDO "WhiteList"
    , count(*) "TOTAL"
    from aud$, ab.usuarios
    where (ACTION# = 100) and 
    (NTIMESTAMP# between (to_date(to_char('01092013 00:00:00'),'ddmmyyyy HH24:MI:SS'))
        and (to_date(to_char('30092013 23:59:00'),'ddmmyyyy HH24:MI:SS'))) and
    USERID = CODIGO_USUARIO(+) and
    USERID not in ('DBSNMP','SYSMAN')
    group by USERID, USERHOST, TERMINAL,  nombres||' '||PRIMER_APELLIDO||' '||SEGUNDO_APELLIDO
    order by USERID, USERHOST, TERMINAL;
    

    the result of this query shows like this:

    Header 1

    Cuenta USERHOST TERMINAL WhiteList TOTAL

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

    ASEGUR MAQUINADIAB\SSSSS IUOOO PEPITO GARCIA GARCIA Y SOCIED 10

    ASEGUR POSADASDE\MNNN4550094 MNNN4550094 PEPITO GARCIA GARCIA Y SOCIED 1

    ASEGUR POSADASDE\YUMI YUMI PEPITO GARCIA GARCIA Y SOCIED 10

    ASEGUR YUH PEPITO GARCIA GARCIA Y SOCIED 20

    ASEGUR SDFRG PEPITO GARCIA GARCIA Y SOCIED 13

    ASEGUR signy PEPITO GARCIA Y GARCIA SOCIED 29

    Sigurd ASEGUR PEPITO GARCIA Y GARCIA SOCIED 32

    ASEGUR valhalla-Legacy PEPITO GARCIA Y GARCIA SOCIED 12

    ADMIN MAQUINADIAB\SSSSS IUOOO USER ADMINISTRATOR NETWORKING 3

    SPRINGUSR            bragi                                                                                      98

    SPRINGUSR            hermod                                                                                     59

    SPRINGUSR            YUH                                                                                        49

    Therefore, total logons per month per user.

    for the second requirement, we use the tracking query:

    select USERID "Cuenta", USERHOST, TERMINAL, to_char(NTIMESTAMP#,'YYYYMMDD HH24:MI:SS') "Fec Ing", nombres||' '||PRIMER_APELLIDO||' '||SEGUNDO_APELLIDO "WhiteList"
    --, count(*) "TOTAL"
    from aud$, ab.usuarios
    where (ACTION# = 100) and 
    --to_char(NTIMESTAMP#,'dd-mm-yy')=to_char(sysdate-50,'dd-mm-yy') and 
    (NTIMESTAMP# between (to_date(to_char('01062013 18:00:00'),'ddmmyyyy HH24:MI:SS'))
        and (to_date(to_char('30062013 23:59:00'),'ddmmyyyy HH24:MI:SS'))) and
    USERID = CODIGO_USUARIO(+) and
    USERID not in ('DBSNMP','SYSMAN')
    group by USERID, USERHOST, TERMINAL,to_char(NTIMESTAMP#,'YYYYMMDD HH24:MI:SS'), nombres||' '||PRIMER_APELLIDO||' '||SEGUNDO_APELLIDO
    order by USERID, USERHOST, TERMINAL;
    

    Header 1

    Cuenta USERHOST Fec TERMINAL Ing white list

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

    UTILISATEUR12 DOMINIODDD\IOIPOP IOIPOP 20130930 12:08:33 ANGEL ROBERTO GARCIA Y GARCIA S

    UTILISATEUR12 DOMINIODDD\IOIPOP IOIPOP 20130930 14:28:47 ANGEL ROBERTO GARCIA Y GARCIA S

    UTILISATEUR12 DOMINIODDD\IOIPOP IOIPOP 20130930 16:24:43 ANGEL ROBERTO GARCIA Y GARCIA S

    Thus, shows the opening of each session conducted per user per month.

    But in the two queries, the results are different. This is not to assume that they must have the same number of logons?

    I mean, if I have summarized the numbers in the TOTAL column I less that I get in the second query. Always!

    could you help us?

    Thank you

    Hello

    Why you use GROUP BY in the second query, remove it from the second query, then result will be the same

    HTH

  • two rows of delete with different values

    Hello

    I wouldn't lines with the same id and have values of E and F 10258932.

    I would like the following data:
    A        B  C      D     E N
    -------- -- ------ ----- - -
    10258927 1  103,35 0
    10258929 3  284,85 89,52 E N
    10258929 4  323,85 89,52 E N
    10258930 5  478,80 91,53 E N
    10258931 6  436,67 78,09 E N
    But I have the following lines:
    SQL> with my_table as
      2  (
      3  select '10258927' a, '1'  b, '103,35'  c, '0'      d,   NULL  e from dual union all    
      4  select '10258928' a, '2'  b, '0'       c, '15,19'  d,  'E'    e from dual union all
      5  select '10258929' a, '3'  b, '284,85'  c, '89,52'  d,  'E'    e from dual union all
      6  select '10258929' a, '4'  b, '323,85'  c, '89,52'  d,  'E'    e from dual union all
      7  select '10258930' a, '5'  b, '478,80'  c, '91,53'  d,  'E'    e from dual union all
      8  select '10258931' a, '6'  b, '436,67'  c, '78,09'  d,  'E'    e from dual union all
      9  select '10258932' a, '7'  b, '784,88'  c, '23,19'  d,  'E'    e from dual union all
     10  select '10258932' a, '8'  b, '100,88'  c, '11,11'  d,  'E'    e from dual union all
     11  select '10258932' a, '9'  b, '300,88'  c, '22,22'  d,  'F'    e from dual union all
     12  select '10258932' a, '10' b, '468,25'  c, '78,33'  d,  'F'    e from dual)
     13  select a, b, c, d, e, no_ds from
     14  (
     15    select a, b, c, d, e,
     16           case when c > 0 and e != 'F'
     17                then 'N'
     18           end no_ds
     19    from my_table)
     20  where no_ds = 'N' or e is null
     21  order by 1
     22  /
    
    A        B  C      D     E N
    -------- -- ------ ----- - -
    10258927 1  103,35 0
    10258929 3  284,85 89,52 E N
    10258929 4  323,85 89,52 E N
    10258930 5  478,80 91,53 E N
    10258931 6  436,67 78,09 E N
    10258932 7  784,88 23,19 E N
    10258932 8  100,88 11,11 E N
    
    7 Zeilen ausgewählt.
    
    SQL> 
    Does anyone have an idea?

    Oh, I read the title again once: 'remove double lines with different values.
    If it means that he is not specifically E and F values, but only if there is more than one distinct value, then you can do the following:

    with my_table as
    (
    select '10258927' a, '1'  b, '103,35'  c, '0'      d,   NULL  e from dual union all
    select '10258928' a, '2'  b, '0'       c, '15,19'  d,  'E'    e from dual union all
    select '10258929' a, '3'  b, '284,85'  c, '89,52'  d,  'E'    e from dual union all
    select '10258929' a, '4'  b, '323,85'  c, '89,52'  d,  'E'    e from dual union all
    select '10258930' a, '5'  b, '478,80'  c, '91,53'  d,  'E'    e from dual union all
    select '10258931' a, '6'  b, '436,67'  c, '78,09'  d,  'E'    e from dual union all
    select '10258932' a, '7'  b, '784,88'  c, '23,19'  d,  'E'    e from dual union all
    select '10258932' a, '8'  b, '100,88'  c, '11,11'  d,  'E'    e from dual union all
    select '10258932' a, '9'  b, '300,88'  c, '22,22'  d,  'F'    e from dual union all
    select '10258932' a, '10' b, '468,25'  c, '78,33'  d,  'F'    e from dual
    )
    --
    -- end-of-test-data
    --
    select a, b, c, d, e,
           num_distinct_values
    from
    (
      select a, b, c, d, e,
             count(distinct e) over (partition by a) num_distinct_values
      from my_table)
    where num_distinct_values <= 1
    order by 1
    / 
    

    The county notes how the distinct non-null values in column e for each one.
    Where clause then selects those with count = 0 (this is where e = null) and count = 1.
    If the number is greater than 1, different values exist for this id.

    Choose what fits your condition ;-)

  • Container for several tables of different length

    Hey,.

    I'm doing an algorithm for labelling component connected in LabVIEW.  I came across the problem that I need some sort of data structure that I can't create.  I hope that I've missed something and someone can report this to me.

    What I'm looking for is a container that can contain lists of lists of 2 values.  Basically, I have several labels.  Each label will have a list of coordinates in.  The closest I came to this creation is a 2D cluster table.  Then, the cluster contains the coordinates X and Y.  The problem is that each list is not the same size, and for a table of 2D in labVIEW, all rows/columns must have the same length.

    In summary, I'm looking for a way to store multiple lists of coordinates.  The lists will all be of different lengths, and I don't know how many lists there will be.

    Is it possible to do this?

    If not, does anyone know an easier way than that looking for a 2D for concentrations table all?  At the back of my mind, I want to say that there may be a Vision VI of OR who can do this, but I can't find a.

    Thanks for your help,

    Dominic Walker

    A way to manage several arrays of different lengths (but all the same type of data) is to put the berries in a queue.  Each element in the queue must be a table, but they can be of different lengths.  To get to all the tables, you use the preview queue feature.  It returns an array of clusters with each table queue in a separate group (if I remember correctly).   Perhaps an array of clusters of berries would work for you.  I just checked that this allows arrays of different lengths.  You can also place a control of the chain with the label of the cluster if it is appropriate.

    Lynn

  • Generating analog output signals 4 with different frequencies

    Hi all

    I was trying to say to generate 4 different signals at different frequencies

    1. first waveform is a sine wave with 5000 Hz,

    2. other with 8000Hz,

    3. third, one is a square with 25 Hz waveform and

    4. fourth one with triangular waveform 50 Hz

    all waveforms must be generated simultanoeusly.

    I tried to generate with the task unique analog output and sample clock (clock rate is 100000). Cross in scope that I see only 5000 and 8000 Hz we generated correctly and the rest two waveforms show the incorrect frequency.

    I guess that's due to the frequency of high clock to sample for more low frequencies for ex 25 Hz and 50 Hz. If I reduce the clock rate to get the lower frequencies properly so I can't generate frequencies higher correctly. (there's a clsh between frequencies and the clock frequency)

    Is it possible to use DAQ board master sample clock and its magnitude downward revision (everywhere where it is necessary for each waveform separately) to generate all the signals at different frequencies at the same time in a single task?


  • To write a waveform to two outputs analog of DAQ(USB-6215)

    Hello

    I use USB-6215, who has two analog outputs and having to send the same waveform through the analog outputs two of my DAQ. at the same time. in fact, I have a text file consisting of a code word (please see the attatchment) with dt, freq and annex 0 in the first column and other columns contain the word coded. Withe the help of dt, the rate and the data I did a waveform with the wave of construction VI. I am able to write this wavefrom through an analog output A01 right now. I want to know how I could write the same analog waveform other AO0 out simultaneously. I use a source of external triggering via PFI0 to be triggered. for now, I use the write.vi DAQmx (analog channel 1 DBL 1 d N samples) and DAQmx create virtual channel.vi with dev1/ao1 as the physical channel. For more information, I am attatching the program along with the text file. Please see page 2 of my structure of matter in the VI attatched.

    Thank you.

    Kind regards

    Raja

    Hi Steve,.

    his works now. I changed the instance of writing DAQmx for analog waveform samples N channel N. still, I now that a single waveform. How could I do like two like it (writing DAQmx) will not accept a single waveform as the entry as the number of channels in the task will now be 2 where, under the waveform has an exit.

    Kind regards

    Raja

  • And outputs analog table 2D through 4 lines (PCI 6711)

    Hello

    I want to design a user interface where the user can set the level of analog voltage of a specific analog channel for a certain period of time.  Basically, I need a 2D table where the columns represent each channel on the PCI 6711 map (Ao 0:3) and the lines represent a specific amount of time for each line to last.  I guess it would have to be another array of verical 1 d with integers representing the number of ticks that each line will last.  I can't seem to find an example of code where this is implemented, so some examples or suggestions would be grealty appreciated.  I have included a picture of another program that does this, and I would like to reproduce this configuration.

    Pass the array using a loop for. This example gets each line. You can then use the subset of the table to get the columns with the voltage. This gets wired to a game of writing DAQmx for n channels 1 sample. The duration column index and son to a delay. Try it and post back you're stuck.

    Sorry, but the answer above is meaningless to me.

  • is it ok to connect two outputs analog voltage in series?

    Ok... I have a PS-210 FieldPoint... basically an analog voltage output 0 - 10V, 200mA per channel (with additional external power supply)... my question is... can I plug two channels in series?  Love how I can put two AA batteries in the series... and then to double my blood pressure?  and then check my two separate channels and the sum of the tensions would be assujettirait I have my load in?

    Thank you!

    No, you can't.  The channels all share the common side of their outputs.  If you've tried to hang them in the series, you have wind of short-circuit one output from the ground.

    The reason for which you can do with batteries is that the tensions are floating.  There is no common reference between the negative terminals of both batteries.

  • JSF Validation - how to have two &lt; af:inputText &gt; table with auto-submit?

    Guys and girls,

    Have a different challenge, question, problem, brain validation JSF bender. It is similar to the validation of the model in a previous post of mine: Re: JSF Validation challenges - workspace included using the HR schema

    I have a table full of < af:inputText > elements. Two of the elements are set to auto-submit, and they are both mandatory (PartNumber & TaxCode). They update both < af:inputText > only reading titled PartPrice & PartTax, respectively, via the entity model. When I click on the line, I get validation error jump - rises due to the auto-submit. _How can I get validation to fire only when I click on the "Submit" button that is running #{bindings.commit.execute}? __

    Because of the auto-submit to both, I have to disable any validation and rely on the database to refuse to accept the ' null ' values.

    Any ideas? With the help of JDev 11.1.2.1.0.

    Will be

    Have you tried setting immediate = "true" or in the pageDef SkipValidation = "true"?

  • Samples of output by release, with all the preloaded samples

    Hello

    I was wondering if it was possible to (Using matlab and labview)

    preloads all the samples on the acquisition of data, and each trigger card, it displays the following value (rather than all of them, which is the default setting)

    IE load (0 5 9 7 2 6)

    at each call, it changes the output to the next value. (and if possible a loop around)

    I have managed to program on matlab, load the sample and then wait for trigger to display the value. However, I need to make one of the values at the same time and can not preload all values. It is causing serious time delay/cpu for my program.

    Any help would be appreciated.

    I use PCI6259

    Hi Michael,

    You could certainly write this in C (although labVIEW would be much faster), as for Matlab, I can't really comment on!

    Please find attached 2009 version

  • Want to combine two tables with different numbers of lines 2d

    I'm out data in a file in 2d tables, then adding more as it goes, and I run into issues when the size changes.

    2D arrays must be of rectangular shape, so those empty space you have it will be filled with the default value of any data type you are using. See attachment for the concatenation of tables:

Maybe you are looking for

  • Need to buy a key for Equium A100-147

    need to buy a replacement key for A100-147 but need part number can help you! Thank you

  • How convert the string in enum by using LabVIEW 7.0

    I learned LabVIEW 8.6, but here at work, so we must use the Solaris workstations built in 95, the more advanced version of LV they will work is version 7.0.  On LV8.6, it was very to change a string to an enum using the format 'text' vi.  On LV7.0, i

  • Save the error 0 x 80070005 on vista. Cannot perform a backup?

    The backup will not end.  Message 0 x 80070005 appears every time.  What is the problem and how it can be corrected.  Thank you.

  • Street and trips

    Do I need to have a product key for the Street and the TRIPS agreement?

  • High export settings

    Hi guys,.Love the new application. You need just a few things (copy-clip-properties, speed, various transitions).One of these things is high export settings. It is currently exported as 720 p in my opinion fairly low quality/Mbps.I use a Nexus 6 p, o