By dividing the time base clock sample by N, we're the first sample on pulse 1 or pulse N?

I use an external source for the time base a task of analog input sample clock. I'm dividing down by 100 to get my sample clock. Is could someone please tell me if my first sample clock pulse will be generated on the first impulse of the source of the base of external time, or about the 100th?

I use a M Series device, but can't see a time diagram in the manual that answers my question.

Thank you.

CASE NO.

CERTIFICATION AUTHORITIES,

I don't think it's possible to use the sample clock of 3 kHz on the fast map as the time base clock sample on the slow map and get the first sample to align.  The fast card can enjoy on each pulse signal 3 kHz, while the slow card will have to meet the requirement of the initial delay before he can deliver a sample clock.  If you turn this initial delay a minimum of two ticks of the time base, the slow card eventually picking around the edges of the clock 2, 102, 202, etc..  You can set the initial delay for 100, which means that the slow card would taste on the edges, 100, 200, 300... but you wouldn't get a card reading slow on the first edge of your sample clock.

Hope that helps,

Dan

Tags: NI Hardware

Similar Questions

  • Automatically divide the first 30 seconds of mov

    Hi guys this is not strictly cs5 related, but could be if she can do it somehow.

    I have about 500 mov files that I need to extract the first 30 seconds of.

    I prefer to do this automatically because I don't like, what's inside the first 30 seconds.

    Cs5 to do this automatically, or do anyone know of a program that I can import in who will do it for me?

    file is:

    854 x 480 h.264 in each a mov container @2000 kbps

    I want them out as avi, mov or mp4 one of these would be nice, or even mpeg is allowed.

    I have nothing more complicated than what, I hope someone has an idea.

    Thank you guys.

    OK, you can do it in first, but I think that would just be way too manual tinkering due to some functional limitations of the first at the moment. However, you could do this with After Effects, assuming that you have in your arsenal.

    Read this:

    1. Download the script for After Effects Selected_Comps_Changer.jsx. You can donate some money to the author while you are there (I'm not the author - I think you'll find his work useful in this case). You can save anywhere on your computer, but you might want to just drop it into the Scripts folder in the installation of AE folder, so you can easily find it. In addition, if it is there, AE it will load in the Scripts menu at startup.
    2. Import all of your clips in AE.
    3. Selects all the clips and drag them to the new Composition button in the project Panel. in the new publication of the selection dialog box that appears, select the option "Multiple Compositions" and click OK. This will create a new model for each clip, ideally named the same as the clip. Unfortunately, they all will also be of the same duration as the clips they contain; That's what we're going to fix now.
    4. Without clear all (all the comps you created should be selected, but otherwise, use whatever means necessary to reselect the; you can start typing "composition" in the search bar to filter out them, for example), go to file > Scripts > Script file run (if you downloaded in one directory other than suggested above) and finds that the script , or just select Selected_Comps_Changer.jsx if you put where suggested.
    5. The script will launch a window that allows you to change the settings of composition for all comps simultaneously. One of these fields is length; for the purposes of this script, that it calculates from the images and not in seconds, so just multiply 30 (seconds) by what your framerate and enter this value here. So if your videos are NTSC 29.97, for example, just round at 30 and multiply it by 30 seconds, or 900 frames. Enter this value and press OK; each of you comps will be set 30 seconds in duration.
    6. Now, since I've not found a way to change the output destination for several compositions in queue at the same time, you have to do this little two-step: send one of your comps to the render queue, set the rendering parameters, output module, destination and naming scheme of files as you wish. Make the file, and then clear the model of the queue. This should set the destination file for all other compositions.
    7. Add all the comps to the queue queue, change the render settings and output to one of the comps Module without deselect anything; This will outline the parameters for all the comps in queue. So, let the line go to the city. your destination folder must fill progressively with your new videos cut into any format you selected.

    Looks like only a few steps, but it shouldn't take you too long to put this - rendering will be another story

  • External clock as a time base (NI PCI-6122)

    I use the PCI-6122 card and you want to provide an external clock very specific (preferably 10 MHz) as a time base. I tried to connect my external clock signal to PFI - 8 and then internally of PFI-8 road to the RTSI-7, but it did not work. I use only one card, and have therefore no beeing rtsi cable installed.

    Can you help me set up the card to use my external clock?

    Thank you for your help. It seems that there is no way around and I have to 'spend' an additional signal generator (locked my 10 MHz reference) to provide a sample clock, locked in my experience.

  • divided time base

    In the simultaneous measurement with AI and AO, I used SMU-6124, that supports the time base of 80 MHz clock.

    I was told that I can use 80 M/n (integer) as a sampling in SMU-6124.

    In order to obtain n is integer, I limited my settings for 2 to 5 common factors.

    But, why the actual sampling frequency is different from the sampling frequency of entry, 1.6 MHz (n = 50).

    Real rates are 1.67E + 6 (analog input) and 1.54E + 6 (analog output).

    What is the problem for this problem?

    Any other consideration in its sampling frequency?

    labmaster.

    Hi labmaster,.

    Looks like you're on track - to answer your questions:

    0) meter tasks can use the time base of 80 MHz (20 MHz and 100 kHz are also available).  So the frequencies available, you can generate using the meter is 80 MHz/N, where N is an integer (between 4 and 2 ^ 32).  You are still limited to the average fracture, but you would work with a higher time base so you could reach the frequencies that you couldn't otherwise (for example 1.6 MHz).

    (1) you can check the actual sampling frequency of the counter by using the following property node:

    (2) you can run GOT it, AO and two counters at the same time in separate tasks - I'd start, AO and Ctr2 before Ctr1 so that all tasks starts at the same time.  If you started Ctr1 first, then the clock will then perform tasks would begin at different times (software-based) unless you use a trigger to start.

    I'm glad to hear that this has been helpful to you, I hope all is well and good luck to you with your application!

    -John

  • Divide the timeslot in buckets with time schedules

    Hello

    I have a table that contains the range of time to start and stop with the duration, with other columns like below (the start and stop are always on the same day, don't extend through days). I want to divide the time range in hourly buckets and calculate the time spent in that time bucket and retrieve as separate columns, as shown below. The Oracle 11 g database is.

    Any help is appreciated please.

    QUESTION.jpg

    Hello

    Here's what I had in mind from the hour_range table:

    CREATE TABLE hour_range AS

    SELECT (LEVEL - 1) / 24 AS hour_start

    , LEVEL / 24 AS hour_end

    , TO_CHAR (LEVEL - 1, "FM00")

    || ': 00 '

    || TO_CHAR (LEVEL, "FM00")

    || ': 00' AS time_window

    OF the double

    CONNECT BY LEVEL<=>

    ;

    The above statement produces a table like this:

    HOUR_START HOUR_END TIME_WINDOW

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

    0.041666667 00:00 to 01:00

    . 041666667.083333333 01:00 to 02:00

    .083333333.125 02:00 to 03:00

    ...

    The unit of measure in Oracle DATE arithmetic is 1 day; That is why this table is of utiliser.041666667 instead of 1 (or 60 or any other simple value) as meaning 1 hour.

    Here's what I suggest me for a query:

    SELECT p.p_name

    p.p_id

    TRUNC (p.p_start_range) AS p_date

    h.time_window

    (LESS (p.p_end_range

    TRUNC (p.p_end_range) + h.hour_end

    )

    -LARGEST (p.p_start_range

    TRUNC (p.p_start_range) + h.hour_start

    )

    ) * 24 * 60 duration AS

    PERSON p

    JOIN hour_range h ON h.hour_start< p.p_end_range  ="" -="" trunc="">

    AND h.hour_end > p.p_start_range - TRUNC (p.p_start_range)

    ORDER BY p.p_id

    p.p_start_range

    ;

    Output:

    P_NAME P P_DATE TIME_WINDOW DURATION

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

    A 2/1/27/2015 16:00 to 17:00 30

    A 2/1/27/2015 15:00 to 16:00 30

    Two 2 2/28 / 2015 09:00 to 10:00 60

    Two 2 2/28 / 2015 10:00 to 11:00 15

    Three 2 3/28 / 2015 10:00 to 11:00 15

    foo x 2/28/2015 10:00 to 11:00 60

    I added a line to your sample data:

    Insert into person (p_id p_name, p_start_range, p_end_range, p_duration)

    values ('foo', 'x', to_date (' 2015/02/28 10:00 ', "mm/dd/yyyy hh24 '"), to_date (' 28/02/2015 11:00 "," mm/dd/yyyy hh24 ' "), 15);

    I did it because I wanted to test the boundary conditions.  I know that sometimes I get confused and use ' > ' when I hear ' > = ', so I wanted to have a case where a person of rank 1 corresponds to a line in hour_range.

  • Help, please... I need to know how to crop my video segments?  I also need to know how to make several clips to run at the same time by dividing the screens?  How to fade a clip?

    Help, please... I need to know how to crop my video segments?  I also need to know how to make several clips to run at the same time by dividing the screens?  How to fade a clip?

    I watched the video tutorials.  I need to know also how to add additional video tracks to my screen.  Any help please?

  • Elements 3.0 - change the editing mode and a time base?

    Hey all,.

    I use Premiere Elements 3.0 and I'm trying to create a preset for my new project. My source files for this project are 23.976 frames per second, so I tried the project must match. But in the window "Custom Presets", the drop-down lists for editing and the time base Mode are grayed out - I can't change settings at nothing else than to 29.97 FPS. In addition, the only display Format options have 30 images/s.

    Is there a way I can set them to 23.976 or 24 fps?

    Thank you

    Matt

    You cannot create a custom preset to these specifications in Premiere Elements, Matt. I'm sorry.

    Premiere Elements is limited to standard formats and frame rates.

  • 9401 buffered output digital clock sample source

    Hi, I would like to generate a pulse train with a defined number of pulses, according to a defined periodicity. I use a NI9401 module in the Groove 3 CompactDAQ chassis so that I can write the required buffer sample 2047 pulse train. The problem I have is I am unable to choose any clock source slower than the time base of 100 kHz, which means that the buffer can underflow very easily. I would use a 4 kHz clock source, but cannot find how do. If I want to generate a source of the clock of one of the counters, I must have the 9401 in slots 6 or 7 which then do not allow for generation of digital signals in the buffer...

    Hi, JPP,.

    Access to internal counters, even if modules are connected in the Groove 1-4 of the cDAQ chassis. Note this site 6 & 7 are necessary only if you need external access to counters as task of counter in the buffer, the measures of frequency/period, etc... Since in your application, all you need is to generate a continuous pulse train and access its output internally to clock output your digital correlated, this shouldn't be a problem with your DIO module into the Groove 4. Please take a look at the following link for more information.

    With the help of internal counters on one NOR cDAQ-9172 as a sample for other tasks clock

    http://digital.NI.com/public.nsf/allkb/EEB574335BA0B4EB862572060055E9DD?OpenDocument

    I would also like to refer to an example on our site which shows you how to use your correlated digital i/o clock counter. I hope this helps.

    NOR-DAQmx: Digital Correlation of e/s with NI CompactDAQ and LabVIEW

    http://zone.NI.com/DevZone/CDA/EPD/p/ID/5256

  • clock sample question

    Hi ppl,

    I have a question for you.

    I have a very similar to the attached picture circuit. also you can find here (http://zone.ni.com/devzone/cda/tut/p/id/3615#toc4 , fig.2) I write some data on analog channels out and then I collect the data in the time loop. I don't understand what exactly is happening when I write the data in the buffer. Let's say I have a table of 2D 2-lines and 62500 columns that I want to write in the output analog channel, then read in the analog channel. I do not understand the meaning of the sample clock. (I read on operations 2 devices simultaneously and blah blah blah). What should be the sample clock frequency in the August channel and the channel of the ain and the number of samples per channel in the ain daqmx channel when I want to collect data? (http://zone.ni.com/devzone/cda/tut/p/id/2835; reading the data in example labview). My problem is that I do not understand what is happening when I load the August channel with data buffer; for example I put the sampling clock rate: 1000; meaning he will write each s 1000 samples of 62500 samples until the end of the samples; all of these samples that I drove from my out channel voltage piezo-beam-scanning engines. which means that each s piezo motors will get 1000 samples of tensions? now, I want to measure. should number of samples in the playback channel I put? I put my daqmx reading in the while loop. Let's say I put 100 Samper useful/channel. so, each itteration in while loop it will read the 1000 samples/channel buffer. How will I know that the buffer is already full with 1000 samples when ain channel tries to read?

    The process is therefore more; correct me please if I'm wrong. The sample clock will define us the buffer data rate. For example, I load the 2D matrix: 62500 2rows columns; It will load in the buffer and then there are these samples at the August channel of the rate defined in the clock sample string? Then I want to read from the channel of the ain. What sampling clock frequency should I set for the channel of the ain? If the sample clock rate for the playback channel sets the buffer? for example (I put it there 1000 samples/s; meaning it can read 1000 samples per second?) then what the number of samples should be in the read daqmx channel in the while loop?

    Please clarify me this point, I'm confused...

    Hi dimani4,

    There is a very comprehensive document that answers your questions. You can find this document here.

    This article explains the operation of the sample clock frequency and the DAQmx Read reading samples. Quoting the article: "On the hardware side, the Schedule VI DAQmx determines the flow rate of the device/sensor data at the hardware buffer on the data acquisition card.". Here is the 'Timing VI' the sample clock.  Then he also explained that "on the software side, the reading VI DAQmx determines the transfer of the data of the buffer material in the software". "." It is making reference to the samples to read the reading VI DAQmx.

    I hope this information specific to your questions.

  • -Data 200141 was replaced before it can be read by the system. Mechanism of data transfer is interrupted, try to use DMA or USB in bulk. Otherwise, divide the input signal before taking the action.

    Hello

    Installation program:

    2 x PCI-6602

    Configuration:

    Sampling the five PWM signals of 50 kHz using five counters (2 on a map) and three on another for about 10-15 seconds by recording continuously.

    All meter tasks are configured for DMA transfer.

    Problem:

    I get 200141 errors from time to time.

    Question:

    I tried to increase the size of buffer and all tasks of meter are set to DMA. In the error message the last suggestion is to "divide the input signal before taking the action. I don't understand this suggestion. What is meant by "split the signal before taking the action?

    I am open to other solutions to the problem.

    /Mola

    Yes, I know that the 2 MB/s sound do not like much, but it's a way of high load very low tolerance to try to get 2 MB/s.  You have 5 DMA controllers to negotiate access to the bus and each transmits only 1 or 2 samples of 32-bit whenever he gets access.

    I've seen published baseline data where the maximum sustained rate was< 1="" million/sec="" (don't="" recall="" if="" it="" was="" mbytes="" or="" msamples). ="" as="" i="" recall,="" finite="" acquisition="" mode="" allowed="" higher="" rates="" for="" shorter="">

    Ah yes, here is a link that leads to the other links.  See the section on "The counter of the FIFO" in the first message.  Do you see a * very * significant difference in the performance of the M series for the series X-series.  Here are data for counters of the E series.  (It is fair to note that the comparative analysis was conducted with a much older PC hardware).  For the 6602 counter chip was designed between E- and M-series series, so you can probably expect performance in-between.

    Also note that the benchmarks seem to have been done with a task of window unique tent of owning all the bandwidth PCI as possible.  Since you would have 5 tasks they negotiate access, you lose definitely even more overhead.  In addition, for fair comparisons, your 50 kHz PWM would act as a measure of 100 kHz since you have 2 semiperiods to DAB per cycle of 50 kHz.

    Now that I've seen benchmarks once again, I am convinced that it is a no-go for you with just the 6602.  The good news is that the series X-series seem able to yet more ridiculously than I remembered.

    -Kevin P

  • Divide by 2 external clock?

    I have an external clock 20 MHz connected to APFI1, I want to use as a sample of 16 clock inputs digital. Unfortunately I wanted to divide this clock by 2 at the hardware level, but I forgot in the mad rush to get out the Board. Now I find myself with a problem! Map NIDAQ I use (NOR-6289) can enjoy digital inputs as soon as 10 MHz so just sampling and decimating in the software is not an option. In addition, it seems that counters cannot treat ticks is less than 2, so low, I can divide the external clock down by 4. The only option I see at this point is to use the external clock as a trigger for a free counter running on the clock of 80 MHz. The counter would then serve as clock for digital inputs. However, I want to retain the flexibility to change the external clock and not constrained by the software.

    I was encouraged at the beginning of this thread, but unfortunately it does not seem possible with digital inputs.

    http://forums.NI.com/T5/Multifunction-DAQ/analog-sample-clock-Division/m-p/1201687/highlight/false#M...

    Y at - it anyway to divide this by 2 clock and use it for digital inputs?

    Thank you

    Drew

    Hi Drew,

    I think you can probably find this works using an output meter task set to pulse Mode instead of toggle (default).  Here is an example that shows how to configure the meter in this way.  I have posted just the example, you may need to wait a few moments before the transfer is completed.

    Best regards

  • When you get a retailer to re - install Vista are you able to burn a copy of Vista as when he was the first new and turned on for the first time?

    Hello and Merry Christmas to all. Sorry its been a while that I had time to be on the forum, (family illness) Anywho my daughter had dropped her Lenovo and although we went through every conceiveable options to retrieve and detaches from the dreaded "black screen" we couldn't. We had the chance to recover his files before he died forever! That was the good part... I had to resume at Tiger Direct, where they installed a new concert 320 H/D and re-installed Vista. Because she graduated she had two of the residence and turned my basement into a hoarders paradise, lol point being that she has no idea where his original disk is so I contacted Lenovo who assured me that they would send me a copy of Vista (how naïve of me) they me sent recovery disc (two games not less and it took more than a month!) that I discovered after the fact that I could have burned my own through Neo-Smart...

    There is one thing that still bothers me and that's when we first pulled his new Lap Top for the first time and installed Vista I remembered that the very last paragraph said to make your own copy of the o/s before your done... what was not done! Is it still possible to make a copy of its operating system now? If Yes, how would go about this, if I wait for her to do it, it will not! She was lucky that I was able to use a slave to its hard disk of my XP Sata-IDE cable and get its files on the drive before it me locked. It has an external H/D as most of the people who do not know how to change their scores on the top of their Tower and get the full use out of them as desk top users do.

    As aways thanks for the fellow forumer for your time and trouble and any help is appreciated.

    Tiggerer

    Hello and Merry Christmas to all. Sorry its been a while that I had time to be on the forum, (family illness) Anywho my daughter had dropped her Lenovo and although we went through every conceiveable options to retrieve and detaches from the dreaded "black screen" we couldn't. We had the chance to recover his files before he died forever! That was the good part... I had to resume at Tiger Direct, where they installed a new concert 320 H/D and re-installed Vista. Because she graduated she had two of the residence and turned my basement into a hoarders paradise, lol point being that she has no idea where his original disk is so I contacted Lenovo who assured me that they would send me a copy of Vista (how naïve of me) they me sent recovery disc (two games not less and it took more than a month!) that I discovered after the fact that I could have burned my own through Neo-Smart...

    There is one thing that still bothers me and that's when we first pulled his new Lap Top for the first time and installed Vista I remembered that the very last paragraph said to make your own copy of the o/s before your done... what was not done! Is it still possible to make a copy of its operating system now? If Yes, how would go about this, if I wait for her to do it, it will not! She was lucky that I was able to use a slave to its hard disk of my XP Sata-IDE cable and get its files on the drive before it me locked. It has an external H/D as most of the people who do not know how to change their scores on the top of their Tower and get the full use out of them as desk top users do.

    As aways thanks for the fellow forumer for your time and trouble and any help is appreciated.

    Tiggerer

    Hey tiggerer

    NeoSmart is software startup repair not a recovery disk to reinstall vista

    and once you have replaced your hard disk you have lost the ability to do the recovery disk from the recovery partition that may have been defective hard disk

    and it depends on your version of vista as to whether you can now make a backup complete pc using microsoft software

    you need vista business or vista ultimate to backup full pc

    read information from microsoft about it at the link below microsoft

    http://Windows.Microsoft.com/en-us/Windows-Vista/back-up-your-programs-system-settings-and-files

    If you have not these versions vista expect from lenovo recovery disks be delivered or buy a third party program to do a full backup pc

    one of these programs is the true picture in the link below

    http://www.Acronis.com/

    have a happy holiday season

    Walter, the time zone traveller

  • Boarder line divides the screen in resolution 800 x 600 permanently. After SCREEN (bad_pool_caller) BLUE

    PC fell and landed with only the base of the screen. about 10 minutes later, it displays a BLUE SCREEN (bad_pool_caller). After the compilation of the dump file, it is restarted with a line thick boarder that divides the LCD display into 2 halves. both does not appear as one (whole) but individually displayed in 800 X 600 resolution. The way I see it is not for lack of material, because the line is typically straight (no curve, no rough edges) and it does look like INK, as its dissemination even not nor intend to broadcast when the touch screen.

    The border line is horizontal 1.5 cm thick and startup displays (i.e. when the system boots, the line is there also). I discovered that my auto pilot intel display install another software to monitor who is digital flat screen 800 x 600. and option to increase/decrease the resolution as being disabled as a result (only 800 x 600 seems can't be changed) focused on the development of display drivers who have no effect on the boarder line as the remains of 800 x 600 it. now, I would deliver the windows pc 10 back to windows 7 drive c. remains of the border formatting line.

    Lately I have to check the registry values on the display and video and can notice that my values seems different from the default value of the other PC.

    Questions: Blue error screen can change the values of registry permanently? I formatted only C (leaving the D drive as its my backup) this means that the registry values can always stay the same even the old window?

    ##I do not have the .dmp file more #.

    Screen material, has been replaced. Corrected automatic resolution screen. Updated to OS Windows 10. Problem solved of the screen.

    I thank you all.

  • For psc 1315: before you can use this feature, OneNote 2010 must start for the first time.

    I installed the downloaded software (Windows 7) for my old psc 1315 (all-in-in-one). It printed the page sample after installation, but when I want to print what this or else it gives me the following message is displayed:

    "Before you can use this feature, OneNote 2010 must start for the first time."

    Restart the PC does not solve the problem either. How can I get the printer to work?

    Hello pietpompies7

    See the following Microsoft Office Blog article. It deals with OneNote arise while you try to print.

    Microsoft OneNote is misuse of your print jobs?

  • Mr President, how can I enter two rows at the same time with different default values that only the first line to use see?

    Mr President.

    My worm jdev is 12.2.1

    How to enter two rows at the same time with different default values that only the first line to use see?

    Suppose I have a table with four fields as below

    "DEBIT" VARCHAR2(7) , 
      "DRNAME" VARCHAR2(50),
      "CREDIT" VARCHAR2(7) , 
      "CRNAME" VARCHAR2(50),
    

    Now I want that when I click on a button (create an insert) to create the first line with the default values below

    firstrow.png

    So if I click on the button and then validate the second row with different values is also inserted on commit.

    The value of the second row are like the picture below

    tworows.png

    But the second row should be invisible. It could be achieved by adding vc in the vo.

    The difficult part in my question is therefore, to add the second row with the new default values.

    Because I already added default values in the first row.

    Now how to add second time default values.

    Concerning

    Mr President

    I change the code given by expensive Sameh Nassar and get my results.

    Thanks once again dear Sameh Nassar .

    My code to get my goal is

    First line of code is

        protected void doDML(int operation, TransactionEvent e) {    
    
            if(operation != DML_DELETE)
                 {
                     setAmount(getPurqty().multiply(getUnitpurprice()));
                 } 
    
            if (operation == DML_INSERT )
                       {
                               System.out.println("I am in Insert with vid= " + getVid());
                           insertSecondRowInDatabase(getVid(),getLineitem(),"6010010","SALES TAX PAYABLE",
                            (getPurqty().multiply(getUnitpurprice()).multiply(getStaxrate())).divide(100));      
    
                           }
    
            if(operation == DML_UPDATE)
                              {                                                    
    
                                 System.out.println("I am in Update with vid= " + getVid());
                             updateSecondRowInDatabase(getVid(),
                                 (getPurqty().multiply(getUnitpurprice()).multiply(getStaxrate())).divide(100));      
    
                              }                      
    
            super.doDML(operation, e);
        }
        private void insertSecondRowInDatabase(Object value1, Object value2, Object value3, Object value4, Object value5)
                  {
                    PreparedStatement stat = null;
                    try
                    {
                      String sql = "Insert into vdet (VID,LINEITEM,DEBIT,DRNAME,AMOUNT) values " +
                 "('" + value1 + "','" + value2 + "','" + value3 + "','" + value4 + "','" + value5 + "')";  
    
                      stat = getDBTransaction().createPreparedStatement(sql, 1);
                      stat.executeUpdate();
                    }
                    catch (Exception e)
                    {
                      e.printStackTrace();
                    }
                    finally
                    {
                      try
                      {
                        stat.close();
                      }
                      catch (Exception e)
                      {
                        e.printStackTrace();
                      }
                    }
                  }  
    
                  private void updateSecondRowInDatabase(Object value1, Object value5)
                  {
                    PreparedStatement stat = null;
                    try
                    {
                      String sql = "update vdet set  AMOUNT='"+ value5+"' where VID='" + value1 + "'";                     
    
                      stat = getDBTransaction().createPreparedStatement(sql, 1);  
    
                      stat.executeUpdate();
                    }
                    catch (Exception e)
                    {
                      e.printStackTrace();
                    }
                    finally
                    {
                      try
                      {
                        stat.close();
                      }
                      catch (Exception e)
                      {
                        e.printStackTrace();
                      }
                    }                  
    
                  }
    

    Second line code is inside a bean method

        public void addNewPurchaseVoucher(ActionEvent actionEvent) {
            // Add event code here...
    
            BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
                   DCIteratorBinding dciter = (DCIteratorBinding) bindings.get("VoucherView1Iterator");
                   RowSetIterator rsi = dciter.getRowSetIterator();
                   Row lastRow = rsi.last();
                   int lastRowIndex = rsi.getRangeIndexOf(lastRow);
                   Row newRow = rsi.createRow();
                   newRow.setNewRowState(Row.STATUS_NEW);
                   rsi.insertRowAtRangeIndex(lastRowIndex +1, newRow);
                   rsi.setCurrentRow(newRow);
    
                   BindingContainer bindings1 = BindingContext.getCurrent().getCurrentBindingsEntry();
                   DCIteratorBinding dciter1 = (DCIteratorBinding) bindings1.get("VdetView1Iterator");
                   RowSetIterator rsi1 = dciter1.getRowSetIterator();
                   Row lastRow1 = rsi1.last();
                   int lastRowIndex1 = rsi1.getRangeIndexOf(lastRow1);
                   Row newRow1 = rsi1.createRow();
                   newRow1.setNewRowState(Row.STATUS_NEW);
                   rsi1.insertRowAtRangeIndex(lastRowIndex1 +1, newRow1);
                   rsi1.setCurrentRow(newRow1);
        }
    

    And final saveUpdate method is

        public void saveUpdateButton(ActionEvent actionEvent) {
            // Add event code here...
    
            BindingContainer bindingsBC = BindingContext.getCurrent().getCurrentBindingsEntry();      
    
                   OperationBinding commit = bindingsBC.getOperationBinding("Commit");
                   commit.execute(); 
    
            OperationBinding operationBinding = BindingContext.getCurrent().getCurrentBindingsEntry().getOperationBinding("Commit");
            operationBinding.execute();
            DCIteratorBinding iter = (DCIteratorBinding) BindingContext.getCurrent().getCurrentBindingsEntry().get("VdetView1Iterator");// write iterator name from pageDef.
            iter.getViewObject().executeQuery();  
    
        }
    

    Thanks for all the cooperation to obtain the desired results.

    Concerning

Maybe you are looking for

  • How to sort photos?

    I am trying to sort my photos in App Photo in one of my libraries and the sort function is grayed out. Do not allow me to re - sort my photos. Any reason, why and how can I change this?

  • I can not re - download an app I bought

    between November 2015-January 2016 I bought Football manager 2016 and it worked perfectly until it kept freezing as I had not left him space. I deleted it and now I want it re-download I can't. I'm so angry because it's my money, that I used and it w

  • Gesture of support?

    Y at - there no plans to put this feature in Firefox Android in the future? Already, it makes sense on my Firefox PC and could benefit from the user so much experience with the support of key on the mobile, because we have lost the ability to identif

  • My memory on my macbook is used up by videos that I deleted

    I had a lot of videos on my macbook pro (128 GB of disk space) so I copied on my external hard drive and deleted (and emptied my recycle bin). It is still saying that I have 70 + GB of videos in my library, but there are no videos at all in there. Ra

  • Restore files after restoring the image using Windows backup

    Running W7 pro 64-bit. Had the problems of virus/malware, finally restored my discs from image system, dated 2 weeks ago and then restore backup files dated Windows from yesterday. When I go to save / restore my files, the update does not list a back