How to enforce a measurement

I need to measure a voltage with a oscilloscope every second. During this second I have to process and save this value. There my question: Exists in LV 7.1 a possibility to enforce a measurement? Is this enforcement still possible if the processing of this data is not fast enough?
Thanks for help.
mara

Hi,
I think you're looking for some sort of parallel loop architecture, where one loop would be doing the talking to the oscilloscope, and one would be doing the anaylysis, with the data passed through some sort of queue, or handshaking.
The tricky part is that if your processing is taking longer than your re-acquisition time, then you're building up a permanent backlog of data. This obviously cannot go on forever, so you would have to make a decission to either stop acquiring, or dump some of the data to play catchup. (Another possibility would be to analyse a larger chunk of data in one go, but that might not be appropriate)
A second is quite a long time when it comes to code execution.
Have a look here for information on optomising your code.
http://z
one.ni.com/devzone/learningcenter.nsf/webmain/5E017F18A8D3FCEA86256EE80056C707?opendocument&node=200064_us
http://zone.ni.com/devzone/learningcenter.nsf/03f7c60f17aad210862567a90054a26c/d4708bc2f1e4100586256c2c00505344?OpenDocument&node=200064_us
Hope that helps
Sacha Emery
National Instruments (UK)
// it takes almost no time to rate an answer

Similar Messages

  • How to enforce index in oracle query

    Hi all
    how to enforce index in oracle query
    Regards

    Use INDEX hint to force Optimizer to use the specfied index.
    You really need to investigate why Optimizer doesn't choose the index. Remember, INDEX SCAN are not always GOOD.
    Jaffar

  • How to control the measure based on the related dimension.

    Hi Experts,
    In order to improve performance, I have created three kinds of time tables in DB,such as Year .Month, Day.
    Then import them into the physical layer in RPD, and combine them into one dimension in BMM.
    Actually, it has three level fact related with three time tables,so they are also dragged into one fact in BMM,and one column will be corresponding with three column derived from different Fact table in physical layer.
    So I want to know how to control the measure based on the related dimension.
    For example:
    when users drag the Year,Sales column, it will come from Year Dimension and Year Fact Table.
    when users drag the Month,Sales column, it will come from Month Dimension and Month Fact Table.
    when users drag the Day,Sales column, it will come from Day Dimension and Day Fact Table.

    Hi,
    Create a dimension Hierarchy, with Year >> Month >> Day Levels and
    Next Double click on Year Table LTS >> click on Ocntetnt Tab >> set as Year
    same way for Month LTS and Day LTS.
    So now when you select year column then server canknow which LTS to hit and Hits Year LTS.
    Mark If Helpfu/correct
    Thanks.

  • How to create a measure for COUNT and compare year-to-date/last year?

    Hello expert,
    I have gone through the Oracle by example tutorial for creating the repository. However, I can't find out how to create a measure to display the COUNT (sequence ID). I tried the Aggregation function on the sequence ID on the Fact table but the report on Answer listed out all the sequence IDs in the database. And did not give me the count of the transaction for the period quarter. If I used the sequence ID on Dim table, the SQL failed.
    And also I want to have two counts, one is for the count of transactions by quarter. Another is for count of transaction for the same period quarter.
    Please help.
    Thanks.....

    If you use count (or count distinct ) as the aggregation rule in the dropdown in the repository column, it should work. Or you can post the generated logical and physical sql here.

  • How to enforce index

    Hi Guys,
    How to enforce index ?
    Say for example,
    select max(dt) from emp
    emp table has an index called 'id1'.
    I want to enforce this index for the above query. How ?
    Inputs are welcome !

    Your index on ID is worthless for this query.
    You would have to add an index on your DT column. Even then, the index will only be used if you have a NOT NULL constraint on the column (or add "and dt is not null" to your query):
    SQL> explain plan for
      2  select min(dt), max(dt) from emp;
    Explained.
    | Id  | Operation            |  Name       | Rows  | Bytes | Cost  |
    |   0 | SELECT STATEMENT     |             |     1 |     8 |   194 |
    |   1 |  SORT AGGREGATE      |             |     1 |     8 |       |
    |   2 |   TABLE ACCESS FULL  | EMP         | 91000 |   710K|   194 |
    SQL> alter table emp modify (dt not null);
    Table altered.
    SQL> explain plan for
      2  select min(dt), max(dt) from emp;
    Explained.
    | Id  | Operation             |  Name       | Rows  | Bytes | Cost  |
    |   0 | SELECT STATEMENT      |             |     1 |     8 |    39 |
    |   1 |  SORT AGGREGATE       |             |     1 |     8 |       |
    |   2 |   INDEX FAST FULL SCAN| EMP_DT      | 91000 |   710K|    39 |
    ---------------------------------------------------------------------Still, even without an index a full table scan of 91000 rows takes < 1 second even on my laptop. How are you getting 21 seconds?

  • How to enforce the message "Do you want to save changes?"

    Hello,
    How to enforce the message "Do you want to save changes?" when the user attempts to close a form after checking a non-database item (check-box).
    All the other database items in the block are not updateable and only viewable.
    After checking the non database item check-box, if the user tries to commit, then the system is saving the changes and call the appropriate procedure on save.
    But if the user tries to close the window without committing, the form is not showing the message "Do you want to save changes?" since the check-box is a non database item.
    How to enforce the message "Do you want to save changes?" in this scenario when the user tries to close the window?
    Thanks in advance.
    Cheers
    Sri

    This is a fairly common question in the forum. You will need to override the default exit form process and check to see if the checkbox is checked. You can do this in the Key-Exit trigger. For Example:
    DECLARE
      al_id     ALERT;
      al_button  NUMBER;
    BEGIN
      IF ( CHECKBOX_CHECKED('YOUR_BLOCK.CHECKBOX_ITEM') ) THEN
         /* Display an Alert here that asks, "Do you want to save changes?" */
         ...code here to set the properties of your alert...
         al_button := Show_Alert(al_id);
         IF ( al_button = ALERT_BUTTON1 ) THEN
            --YES
            /* Perform COMMIT Processing here...*/
         ELSIF ( al_button = ALERT_BUTTON2 ) THEN
            --No
            Exit_Form(NO_VALIDATE);
         ELSE
            --Cancel
            RAISE Form_Trigger_Failure;
         END IF;
      ELSE
         Exit_Form;
      END IF;
    END;If you need more help with the Alert, please check out the SHOW_ALERT topic in the Forms Help.
    BTW, what happens if all the user does is check the checkbox? No other changes have occured. What changes are you trying to process?
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • How to enforce uniqueness to my database table

    Hello
    One of my database will be updated based on two columns c1 and c2.
    Previous i created an index on these two columns. But forgot to enforce uniqueness. Now my table has some duplicate data.Means columns c1 and c2 contained same value for more than one record. Now i deleted all the duplicate data. And i also want to allow any duplicate data into my table in future. While i was creating an unique index on these two columns it is not allowing and prompting errors. Can someone guide me how to enforce uniqueness for my table

    And i also want to allow any
    duplicate data into my table in future.
    Can someone guide
    me how to enforce uniqueness for my tableSo you want to enforce uniqueness or not?
    Look at alter table add constraint clause in sql reference manual.
    http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14200/clauses002.htm#g1053592
    In case you have duplicate values you can
    "ENABLE NOVALIDATE ensures that all new DML operations on the constrained data comply with the constraint. This clause does not ensure that existing data in the table complies with the constraint and therefore does not require a table lock."
    Gints Plivna
    http://www.gplivna.eu

  • How to combine several measures into 1 pie chart

    Hello everyone,
    I have a requirement to create a design studio application with a pie chart to show several measures.
    It means that I have several different measures and I want to let each piece of the pie chart present 1 measure.
    For example, I need to combine measure1 ,measure2, measure3(which correspond KeyFigures in Bex query) into 1 pie chart and there should have 3 pieces.I tried change swap axis option and put all measures into row, not works.
    I am very appreciate if anyone could help. Thanks a lot.

    Hi !
    There is a tricky way to do that.
    Read the following document How to combine several measures into 1 Pie chart
    hope it helps,
    Roman

  • How to enforce unique primary key constraint in xsd

    Hi,
    I'm trying to enforce primary key constraint in xsd. I'm using the following xsd to generate the xmls .
    <?xml version="1.0" encoding="UTF-8"?>
    <!--<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
    elementFormDefault="qualified" attributeFormDefault=
    "unqualified">-->
    <xs:schema targetNamespace="http://TBD-URI" elementFormDefault="qualified"
    attributeFormDefault="unqualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
          <xs:element name="Employees">
                <xs:annotation>
                      <xs:documentation>Contains All Employee information</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                      <xs:sequence>
                            <xs:element name="Employee" maxOccurs="unbounded">
                                  <xs:complexType>
                                        <xs:sequence>
                                              <xs:element name="Empno" type="xs:int" />
                                              <xs:element name="Ename" type="xs:string" />
                                              <xs:element name="Sal" type="xs:float" />
                                              <xs:element name="Deptno" type="xs:int" />
                                        </xs:sequence>
                                  </xs:complexType>
                            </xs:element>
                      </xs:sequence>
                </xs:complexType>
                <xs:key name="PK_Employee_Empno">
                      <xs:selector xpath=".//Employee" />
                      <xs:field xpath="Empno" />
                </xs:key>
          </xs:element>
    </xs:schema>Here's the generated XML
    <?xml version="1.0" encoding="UTF-8"?>
    <Employees xmlns="http://TBD-URI"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://TBD-URI file:/C:/Documents%20and%20Settings/ctsuser/workspace/JAXB/src/test/resources/TEST.xsd">
        <Employee>
            <Empno>0</Empno>
            <Ename>Ename0</Ename>
            <Sal>0</Sal>
            <Deptno>0</Deptno>
        </Employee>
        <Employee>
            <Empno>0</Empno>
            <Ename>Ename1</Ename>
            <Sal>0</Sal>
            <Deptno>0</Deptno>
        </Employee>
    </Employees>The generated XML allow the same Empno on which the primary key constraint has been defined. I'll appreciate if someone can provide pointers on how to enforce this constraint so that it doesn't allow the same Empno to be repeated.
    Thanks

    Could you please append your solution?
    There is a chance that someone in the future may have a similar problem, and might find this entry. As the entry exists now, all they will find out is that you solved it -- which does not help them at all.

  • How does Activity Moniter measure Network speeds.

    How does Activity Monitor measure network transfer rates? They are always much lower than Web based speed checks. Typically my download speed on Activity Monitor is 162 KBS whereas Web based speed check return 1.2 MBS.

    Duh! I should have realized the AT&T and Activity Monitor are using two different measurements. AT&T uses bits. Activity Monitor uses Bytes. Multiply Bytes by 8 to get bits. So 162 K-bytes in Activity Monitor = 1.29 M-bits in AT&T speed test. The problem comes in misreading the labeling of the units measured. Which is something that causes confusion frequently because the industry is not uniform in its use of labels.
    It is interesting that AT&T uses the higher number. Is this a marketing strategy? Don't get me wrong, I am very satisfied with their service.
    I am also VERY satisfied with my MacBook Pro. The best Mac I ever owned (since my first Mac in 1993 and Apple 2's for 10 years before that). Awesome system software, boots faster than previous MacBooks I owned. Has been flawless in performance. I bought it from Apple refurbished. It came with a larger HD than I ordered. I have used both WinTel (since 1993) and Apple machines. There is no comparison IMHO.

  • How does Order Analysis measure phase lag, particularly super-sync amplitudes?

    In recent testing of a high speed gear box, an 8X amplitude was observed (on the radial displacement probes) as the gear passed through a certain speed range. An NI4472 pci card and vi's written in 7 Express, w/ Order Analysis tool kit were configured with radial displacement probes and keyphasor as input signals. The behavior of the phase lag measurement is significant. If the phase lag of the 8X amplitude rolled as the gear passed through a particular speed range then this could suggest one particular problem, but if the phase lag remained constant then this could indicate a different problem. So, someone asked: How does the system measure phase lag of supersynchronous amplitudes?

    See attached file for figure 1,2,3
    The Phase measurement in the LabVIEW Order Analysis Toolkit uses the phase lag convention. Phase is defined as the angle difference measured from the peak of a vibration signal backward in time to the reference trigger point. This means the directions of numerically increasing angles are always set against the shaft rotation. The trigger point here is the tachometer pulses.
     Figure 1 shows the relationship of the vibration signal and reference signal to zero degree phase. The shaft has a heavy spot and a keyway slot. When the keyway slot passes the tachometer, the tachometer detects a trigger pulse. The heavy spot causes the shaft to vibrate as the shaft rotates. When the heavy spot passes the proximity probe, the vibration reaches a peak. When the heavy spot passes the proximity probe and the keyway slot passes the tachometer simultaneously, the peak of the vibration does not lag or lead the reference trigger point. At this point the phase is zero degrees.
     The other part of the convention dictates that 90 degrees means that the peak of vibration lags 90 degrees behind the trigger point. Figure 2 1illustrates the 90 degree phase. When the vibration signal reaches the peak, rotate the shaft backward (counter the rotation direction) until the keyway slot passes the tachometer. The number of degrees you rotate is the phase lag, or the phase value in machinery vibration measurement. Figure 2 shows the relationship of the vibration signal and reference signal to the 90 degrees phase convention.
    For the 8x phase, the measurement is conducted in the similar way. The difference is that the 8x order component go 8 times faster than the trigger pulses. Figure 3 shows the 90 degree phases ( tacho pulse in rising edge) of the 8x order components. The phase measurement is still conducted through calculating the delay between the peak in the 8x vibration components and the trigger pulses and comparing the delay to one cycle of the 8x components. In figure 3, the signals between the two green grid lines are used to output one phase results.

  • How does MID-7604 measure peak current?

    What are the details about how the MID-7604 measures and regulates motor winding current?
    We manufacture motion systems incorporating small step motors. One of our customers has ordered a motion system with the MID-7604. This is our first experience with the MID-7604.
    When duplicating motor performance comparable to our other Step-motor Controllers, we must set the MID-7604 to 3X the motor's traditional rated peak current. For example, for a super-small MicroMo/Arsape Step motor, we traditionally limit the current to 250mA (RMS). However, with the MID-7604, we must raise the current limit to 700mA (peak) to achieve the same performance.
    While we're not sure about the current regulation philosophy of our other Step-motor Controllers, the Step-motor Manufacturer's Specification Sheet limits the current to 250mA per phase with both phases energized to prevent overheating. Pumping in 700mA from the MID-7604 to achieve comparable performance just seems excessive. However, we're just playing with numbers here and not knowing what they mean. In the end, we're ignoring the numbers and instead, measuring motor torque and winding temperature in order to set the peak current switches on the MID-7604.
    * How can we think of the current setting for the MID-7604?
    * Is it not a PWM device that using width of voltage pulses to produce the current?
    * What does "PEAK CURRENT" and "RMS CURRENT" mean?

    Hey JThomas,
    I'm sorry to hear that you smoked a stepper motor.There are a couple of reasons that your MID-7604 drive could appear to be operating strange. 
    There is a series of DIP switches on the front of the MID drive that allow you to set various things.  One of those DIP switches is the current reduction switch.  This switch is default in the ON position from the factory I believe so if it has never been turned off, chances are it's ON.  When the Current Reduction switch is active, the stepper drive drops the current energizing the coils by 50% if there hasn't been a step in the last 500 ms.  If you were gauging the strength of the drive based off of holding torque, then this could be the reason you were raising the current to a higher rating than you thought was neccesary.  This settings is for customers who have an application with stepper motors that focus more on moving torque instead of holding torque.
    Another possible reason for the increased current to match performance of your drives is if the bus voltage of your drives is some voltage other than 24 VDC.  If your drives that you are used to using are say 36V drives, then at a lower current setting, they would provide greater torque at higher speeds because of the higher voltage being able to energize the coils faster.
    Also, the KILL feature releases the axis from being actively driven.  The HALT command simply locks the motor while leaving the coils energized to hold the position that it is currently in. 
    I hope some of this has helped you out.  Let me know if I can elaborate on anything.
    Thanks,
    Evan D.
    IMAQ/Vision R&D
    National Instruments

  • LabVIEW/SignalExpress: How can I automate measuring the time between two pulses?

    Hi everyone, bit of a newbie here so please bear with me.  
    I'm a student at a university conducting a muon decay experiment with an oscilloscope connected to some photomultipliers.  To summarize, if a muon enters the detector it will create a very small width pulse (a few ns).  Within a period of 10µs it may decay, creating a second pulse.  The oscilloscope triggers on the main pulse 5-15 times per second, and a decay event happens roughly 1-2 times per minute.  I am trying to collect 10 hours of data (roughly 1500-2000 decay events) and measure the time it takes for each decay.
    I've been able to set recording conditions in SignalExpress that starts recording on the first pulse and stops recording on the last.  The Tektronix TDS 1012 oscilloscope however feeds 2500 points of data from this snapshot into a text file (for use in excel or other software).  Even if I perfectly collected the data, I would have 100,000+ data points and it would be too much to handle.  I don't know how (or if it's possible) to reduce the sample size.
    To conclude, using Labview or SignalExpress, I would like to be able to have the software
    1.  Differentiate between the single pulse detections and double pulse decay events
    2.  Record only when two pulses appear on the oscilloscope
    3.  Measure the time between these two pulses and ONLY that to minimize the amount of data recorded.
    Any help would be GREATLY appreciated, thanks!

    Hi wdavis8,
    I am not that familiar with Tektronix, but there should be a place in the dialog that you go through when you create the action step to acquire date to specify a sampling rate. That would allow you to reduce the number of data points you are seeing, but may reduce the quality of the data.
    If it’s just a matter of that much data being hard to dig through when you have that many points, you could do some analysis on the data after the fact, and then create a new file with only the data you want to look at. For example, you could identify the peaks in the data, and based on the distance between them or the difference in magnitude, selectively write data to a new file.  
    Here is some information about peak detection in LabVIEW:
    http://www.ni.com/white-paper/3770/en/
    You could also do some downsampling on the data to get fewer data points:
    https://decibel.ni.com/content/docs/DOC-23952
    https://decibel.ni.com/content/docs/DOC-28976
    Those are just a few quick ideas. 
    Kelsey J
    Applications Engineer

  • How to get multiple measures in measure hierarchy in Essbase Studio

    Hi All,
    Previously we are using one measure column which will gives the count.Now the current requirement is to get multiple measures in measure hierarchy.
    For Example
    Measure
    Count
    SalesCount(count*Sales/10)
    CustomerCount(count*customer/10)
    In the fact we will be having only column called "count".
    So,I created the remaining two user defined dimension elements and applied formula in filters.
    When i am using individual dimension element in measure hierarchy the data is coming correct,However when I am combing these three hierarchies under measure hierarchiy I am getting no data.Can someone help me out how to resolve this issue
    Thanks,
    SatyaB

    Thanks Gleen.
    This is how the actual scenerio,currently i am creating a cube for testing domain.
    For all defects we will having a column called defect count.Now there are asking a new requirement to add addtional metrics contains sev1open defect,sev2 open defect etc...
    So,I created hierarchy like this
    Measures(Hierarchy)
    Count
    SalesMeasure
    For this member I returned in filter as ( 'contains'( connection : 'STATUS', "New" ) and 'contains'( 'TESTING_SEVERITY', "2-High" ))
    However when I am trying build this individually working fine getting correct data
    When I am combining due to overwrite it seems getting no data.Like this I have to create 16 metrics
    Is there any other method where I can proceed further to resolve this issue
    So,can you help me on this Gleen.Thanks
    Regards,
    SatyaB

  • How to convert a measure value to null when the actual measure value is 0

    Hello Gurus,
    I have year, products, measure 1, measure 2, measure 3. I am added three products into one category by using bin in the analysis i am getting zeros for some of the measure cells when it should be null values, because the actual measure values are null for indivudual product. How can i convert that 0's to null. Please advise.
    Thanks,
    RC

    To answer your immediate question, you can write this:
    CASE WHEN table.column = 0 THEN NULL ELSE table.column END
    Remember though, that any aggregations done on a record that is NULL will not yield a sum. That is why the usual case is to convert NULLs to 0s. But that may not be a concern for what you are doing. Good luck!

Maybe you are looking for

  • Machine received from customer on loan basis(sap student)

    HI experts 1)my client receives machines from the customer on loan basis so while receiving the machine my client takes the cenvat credit and every month he pays rent for that machine. but after the machine life is over he sends it back to customer a

  • Analytic function question

    I have been trying to fix this since yesterday ad I am close, here is the question CREATE TABLE P_X_STG   PID  NUMBER,   EID  VARCHAR2(10 BYTE) CREATE TABLE TAB_C   EID  VARCHAR2(10 BYTE),   X    NUMBER SET DEFINE OFF; Insert into P_X_STG    (PID, EI

  • 2 Po's for the same SC

    Hi Experts, We have a strange case where for a single SC which contains only one line item there are two PO's created. any inputs will be appreciated Sameer

  • Report Issue: Previous Weeks, Current Week and Next Week Values

    Hello Folks, this is a typical requirement...at-least typical for me.. we have 20 weeks of data at weekly level. we have four Metrics out of which two are coming from Database and rest two are calculated metrics. Metric0: On Hand Qty Metric1: Past Qt

  • Process Order BOM component list

    Dear All, Can i know form which table i can get Process order relevant BOM component list ?