Calculate the speed of the target by using photoelectric sensors 2

I use 2 photoelectric sensors mounted parallel to each other. As the target passes in front of the sensor, the signal of output voltage goes from 0V to 10V. Because I know that the distance between the sensors, I need to use the difference of rise time of the signal between the sensors to calculate speeds. I can do that when I export the data to excel, but I would do it automatically into my LabVIEW code.

The data of my sensors are the type of waveform. I can extract the waveform (t0, dt, Y) components using 'Get waveform components' and then look for the timestamp for each value using t0, dt and index value. I need to calculate the timestamp of each sensor once the signal passes to 10V (Y = 10V). I can't extract the components of waveform for signals from sensors (seems to only be able to extract the components for a sensor) and once I extracted components, setting up my calculation of the speed. I think I need a case structure to save the timestamp, once the signal hits first 10V (if Y = 10V save timestamp; if Y = 0V continue indexing of values).

Any suggestions on the extraction of components of form of wave or indexation of values and calculation speed are greatly appreciated! The code I wrote to collect signals is attached.

Thank you very much

Alberto M.

Here is a sample of the signals of the sensor showing the difference of signal rise time.

1. you must use the finished sample mode and read all samples.  To match what you have, I would use 10 k samples.  That would be 5 seconds worth of data.  This eliminates the need for the while loop and gives you the full waveforms.

2. just use the base trigger level detection VI (in the Signal Processing-> measures of waveform-> palette of Waveform Monitoring) to get the time for every rising edge.  Then it's a simple subtraction and divide.

In addition, if you want to make things even easier, you could have used a camera with a meter of A - B.  Then the meter gives you just the time difference directly.

Tags: NI Software

Similar Questions

  • How to calculate the variable on the target, but use the value on the source?

    Hi ODI gurus!

    I use LKM MS SQL for Oracle (bcp-> sqlldr).
    I have a variable which is calculated from tables on the target DB (oracle).
    I would use this calculated value in the filter on the source, but I get error ODI is refreshing to variable on the source database.

    It is possible to update value of variable on the target technology and using calculated value on the source technology?

    Thanks in advance!

    Step 1. In the variable - > refreshing tab - > select the schema and the application required for the Oracle database, so you when you refresh the variable, you get the desired result (for example, the ex - value 25 or whatever you are looking for)
    step 2. Call this variable in the Source filter, where the table_source. COLUMN = #VARIABLE_NAME
    Step 3. Call the Variable in refreshing mode, call the interface.
    So that when the variable is updated to the value that is passed and the source table to get the value of its filter.

    If you do pretty much the same things, can you please paste the error, query and your filter condition. So that we can guide you accordingly.

  • How to calculate the total memory used by oracle under Linux?

    Hi all

    In one of my server have 148 GB of total physical memory and 12 databases are running. For capacity planning, I need to know how the Oracle server use.

    How to calculate the use oracle database? I was perplexed because Yop out his show off 148 gb 128 GB are used.

    Below for your reference:
    ++++++++++++++++++++
    == > back to top
    top - 09:52:32 up to 151 days, 15:20, 3 users, load average: 6.11, 6.00 6.05
    Tasks: 7 running, 1314, 1321 total sleep, stopped 0, 0 zombie
    CPU: 37.8%us, 1.4%sy, 0.0%ni, 55.0%id, 5.6%wa, 0.1%hi, 0.2%si, 0.0%st
    MEM: 148290444 k total, 129368792 k used, 18921652 k free, 1450292 k buffers
    Swap: 50331632 k total, 1296188 k used, 49035444 k free, 114733336 k cached


    The memory allocated to each instance is: sga total == > 34 pga = > 48 GB gb
    +++++++++++++++++++++++++++++

    SGA PGA
    4 GB 4 gb
    4 GB 4 gb
    2 GB, 4 GB
    2 GB, 4 GB
    2 GB, 4 GB
    2 GB, 4 GB
    2 GB, 4 GB
    3 gb 4 gb
    3 gb 4 gb
    4 GB 4 gb
    3 gb 4 gb
    3 gb 4 gb

    Thank you

    Try this - http://www.pythian.com/news/29703/oracle-instance-memory-usage/ for each of your instances.

    As far as I know, different instances may share only the binary code oracle and using libraries, so you should be able to easily understand the amount of memory of all instances of 12.

    Lordane Iotzov
    http://iiotzov.WordPress.com/

  • How do you calculate the default gateway using cidr or slash notation

    I had this question in the Microsoft Certified Technology Specialist - 70-680, configuration Windows 7 Measureup asking me to find the default gateway to the IP 192.168.123.128 with a rating of 26.

    I was wondering how do I work this? I'm really bad about that. If anyone has the time to help with this it would be great.

    I know CIDR is used to find the subnet mask, but do not know how to default gateways or IP addresses.

    Thanks in advance.

    Hello

    I suggest you to send your request in the below link and check if it helps.

    http://social.Microsoft.com/forums/en/CertGeneral/threads

  • How to ensure the right Version of the Addon is used?

    Hi all

    Recently built a stand alone application using GTA on a computer by using office 2010 and saw no problem. On the target machine, using a more recent version of Office 2013, I encountered problems.  I note the office and GTA versions because there may be compatibility problems if you use GTA 2011 with office 2013.  Now, I created the application in LV2015 and what I hoped was RGT2015, but I also installed on my computer, RGT2011, LV 2011.

    My question is how can I authenticate that I use RGT2015 in my VI?

    Thanks for any help.

    When you install LabVIEW, you notice that it shows you two directories in which it will install, something like ...\National Instruments\LabVIEW 2016 and Instruments of... \National.  All Version-specific code (addons, modules, VI.lib, User.lib, etc.) go in the folder-specific Version, so you can be sure that if you develop with LabVIEW 2015, you will get the GTA from 2015.  The 'outside' folder is there "independent of the version" stuff such as drivers, MAX, etc. go, and even, if there are Version-specific things, you find subfolders.

    NEITHER seems to do a pretty good job keeping their straight Versions...

    Bob Schor

  • Is there a way to the target url by using the power of Attorney (I want to say is possible to use the proxy to target a site something like that.)?

    Is there a way to the target url by using the power of Attorney (I want to say is possible to use the proxy to target a site something like that.)?

    By default, you can not in Firefox.

    But you can use an add-on like FoxyProxy Standard, I think he understands the functionality you need.

  • How to calculate the equation of dataset using 'Fitting VI' (non-linear or polynomial fit)?

    I have the datasheet of a NTC (thermistor negative Coefficient) and I want to calculate the most approximate equation

    that describes its behavior. The table has values of temperature and resistance. If the resistance of the NTC varies according to the temperature it detects. I tried the following:

    -Excel: polynomial adjustment

    -Maple: polynomial adjustment

    -LabVIEW: Polynomial Fit.vi

    I've been doing equations with a not very good approximate parameteres. I suspect that this method 'Polynomial FIT' it is not the best method for this type of data/equation (being a non-linear equation).

    So is - that someone has used the non-linear Fit.vi matching the behavior of a dataset object? If so, can you explain how this VI... I would really appreciate it.

    Thanks in advance and I will wait for your reply.


  • Calculate the maximum value of the sub-table when creating using a structure of case and records the shift

    I have two 1 d arrays that contain cyclical information (a bit like a sine wave).  One that contains information about the position in degrees and another that contains the couple.  I would like to calculate the value of maximum torque whenever the station is within a certain range (for example, 30 to 80 degrees).  The beaches are repeated - that is why it is cyclical.   I use the function "in the range", a structure of the case and the shift records to build a new table with the values that are included in the beach I said - that was easy part (see attached VI).  I'm struggling with a way to calculate a maximum value for each sub-table formed when the values are 'in range '.   Your help is very appreciated.

    vt92 solution worked!  I agree that there should be a simpler solution, but your to works fine.  Thank you very much.

  • How to use the target FPGA and co. on the same chassis cRIO?

    I have a cRIO system consisting of a master chassis 9074 with several modules IO and EtherCAT 9144 slave unit.

    I want to run a CIE (see: http://zone.ni.com/devzone/cda/epd/p/id/5333) on the chassis of the master, this uses the analytical engine. At the same time I have to do some very urgent measures if I want to use the Board in hybrid mode, using analysis and FPGA engine at the same time (as described here: http://digital.ni.com/public.nsf/allkb/0DB7FEF37C26AF85862575C400531690.)

    But as soon as I add the FPGA target at one of the chassis, the feature of the ice on this chassis stops working. After some research, I found that the CIE can initialize is no longer the modules belonging to the frame that has the target FPGA on it. Error in the method Init of the CIE is: 65700 (indeterminate). This occurs when you try to use "for a more specific class' on the modules configured with a target FPGA on it.

    Someone knows what can cause exactly this problem and perhaps provide a solution/work around?

    Many thanks in advance.

    Hybrid mode requires you to have a bitfile compiled running on the FPGA to be able to read the Scan Interface IO Variables.  Move the target FPGA at the RT target module will allow Interface of scanning for this module, but the frame will always mode Interface of LabVIEW FPGA.

    To get fair access to the scan mode for the frame, right click on the chassis in the project, and choose Properties.  Then, modify the Scan Interface programming.  If you want to continue using the programming of FPGA and the Scan Interface set (hybrid mode), you will need to compile a bitfile (empty if you do not want programs on the FPGA again or containing your FPGA code).  By compiling, the support of the module scan mode for the modules under your RT chassis is compiled in your custom bitfile.  Then, on your VI RT, you need to use reference FPGA VI open to your newly compiled VI.  Once this VI is deployed and ongoing implementation, you get the data from you are the CIE.

    For more information, see this knowledge base article and Reference Interface of Scan CompactRIO and procedures.

  • How to bind the requirements to the cycle of the target using OTA

    I have a list of requirements that have been linked to previous cycles of target to ALM.  I would now like to add a new cycle to the same specifications while maintaining the cycles that were previously assigned.  So where a requirement had 2 previous cycles, once the code of the OTA is executed, it should now have 3.

    I tried to use the sample code that comes with the OTA to set the version (modified to cycle the target) target for requirments.  Using this code removes the previous cycles and remains only the new cycle.

    Can someone help me with this.  The code of the OTA will be run using VBA Excel.

    the HP's Support Forum is for all things related to products for domestic consumption.

    All things business and professionals involved are in the HP Enterprise business community.

    Here is a good starting point...

    Quality Center and News Forum - HP Enterprise Business Community support

    Good luck.

  • Need help recovering data of the target in real time. Using NI 9233

    I have a cRio-9012 with 9233 module. I have recently setup of the software for the computer and the target. I have also gone through and set up the "NI 9233 start-up scan mode" to use on my controller. However I couldn't really get the execution of vis data. Could I have missed?

    The VI is executed, but it reads zero while I use an accelerometer (Wilcoxon research model 797-33).

    You should consider the specific\ni of Labview\examples\compactrio\module 9233\ examples.

  • How to change the target of the .exe or shortened using the c language file

    Hi all, I use windows xp and there is a project in which I want to change the target of the file .exe and shortcut using the c language can any body help me with it, or give me any link I can gather some knowledge about this

    People who write programs and software to hang out in the MSDN forums, not here.  Visit the MSDN forums Web site and they will be able to help, if anyone can.

    http://social.msdn.Microsoft.com/forums/en-us/categories

  • The listener is down: even if a listener with the name "AUDITOR", is running on this host at the port: "1521", it has not started using "the target LISTENER. ORA file.


    I moved a listener on a host in a House different oracle. The headset works fine, but EM 12 c shows that the listener is down with the following summary:

    The listener is down: even if a listener with the name "AUDITOR", is running on this host at the port: "1521", it has not started using "the target LISTENER. ORA file. CORRECTIVE ACTION: To monitor this "EM listener target" with its current configuration, you must stop the process of listening running and start it using the Listener parameter file: opt/oracle/product/12.1.0.2/network/admin/listener.ora. Alternatively, you can update "this target LISTENER. Location ORA setting"with the location of the listener running, which started using the: opt/oracle/product/11.2.0.3/network/admin/listener.ora.

    EM 11 g, I simply changed the configuration of the listener for the different oracle home, argued the change and in a few minutes the listener would show that 'UP' with the oracle of new home. I upgraded to MS 12 c (12.1.0.4) and can't find how to do this. Can someone give me the procedure.

    Thank you

    Ron

    Hi Ron,

    Can you please do the following?

    -Create a for the listener listener.ora file, stop and start the receiver using the listener.ora file. If the file is located in a default location, set the TNS_ADMIN environment variable to that location before you start the listener.

    -Log on to the EM console, go to the homepage of the listener.

    -In the Oracle Listener menu, select target Configuration > Configuration of the analysis.

    -Ensure that the parameters, including the Listener.ora directory, are properly.

    Kind regards

    -Loc

  • Calculate the use of operating rooms

    I received this question in an e-mail.

    I will post it here, as well as my own answer-, so that other people with the same problem can find and learn, and that responses can be given (here there are smart people who might have alternative solutions of large .)

    Here's the post with the question:

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

    Hi Kim,

    I'm stuck in a SQL query.

    I want to calculate the use of operating rooms. follwing is my data structure

    create the table room_usage
    (in_time DATE,
    out_time DATE,
    mr_no VARCHAR2 (15).
    room_no, NUMBER (3));

    insert into room_usage
    values
    (to_date('11-Feb-15 8:33:00 AM', 'dd-mon-rr hh:mi:ss am'),
    to_date('11-Feb-15 10:17:00 AM', 'dd-mon-RR hh:mi:SS am'),
    '00052740',
    733);
    insert into room_usage
    values
    (to_date('11-Feb-15 10:56:00 AM', 'dd-mon-rr hh:mi:ss am'),
    to_date('11-Feb-15 12:36:00', 'dd-mon-RR hh:mi:SS am'),
    '00111780',
    733);
    insert into room_usage
    values
    (to_date('11-Feb-15 12:56:00 PM', 'dd-mon-rr hh:mi:ss am'),
    to_date('11-Feb-15 2:46:00 PM', 'dd-mon-RR hh:mi:SS am'),
    '00111777',
    733);
    insert into room_usage
    values
    (to_date('11-Feb-15 3:02:00 PM', 'dd-mon-rr hh:mi:ss am'),
    to_date('11-Feb-15 6:12:00 PM', 'dd-mon-RR hh:mi:SS am'),
    '00052713',
    733);
    insert into room_usage
    values
    (to_date('11-Feb-15 6:51:00 PM', 'dd-mon-rr hh:mi:ss am'),
    to_date('11-Feb-15 7:57:00 PM', 'dd-mon-RR hh:mi:SS am'),
    '00052760',
    733);
    insert into room_usage
    values
    (to_date('12-Feb-15 8:51:00 PM', 'dd-mon-rr hh:mi:ss am'),
    to_date('12-Feb-15 9:57:00 PM', 'dd-mon-RR hh:mi:SS am'),
    '00082760',
    733);

    Select IN_TIME, OUT_TIME, (OUT_TIME - IN_TIME) * 24 * 60 stay, MR_NO, ROOM_NO
    of room_usage
    When trunc (IN_TIME) between February 11, 15 'and 12 February 15'
    order of in_time


    in_time out_time stay_min mr_no room_no

    11 February 15 08:33 11 February 15 10:17 104 00052740 733
    11 February 15 10:56 11 February 15 12:36 100 00111780 733
    11 February 15 12:56 11 February 15 14:46 110 00111777 733
    11 February 15 15:02 11 February 15 18:12 190 00052713 733
    11 February 15 18:51 11 February 15 19:57 00052760 733
    12 February 15 20:51 12 February 15 21:57 00082760 733

    But I also want to get time slots to USE NOT. This is the result I want

    in_time out_time stay_min mr_no room_no

    11 February 15 12:01:00 AM February 11, 15 08:32 511 no use of 733
    11 February 15 08:33 11 February 15 10:17 104 00052740 733
    11 February 15 10:18 11 February 15 10:55 37 no use of 733
    11 February 15 10:56 11 February 15 12:36 100 00111780 733
    11 February 15 12:37 February 11, 15 12:55 18 no use of 733
    11 February 15 12:56 11 February 15 14:46 110 00111777 733
    11 February 15 14:47 11 February 15 15:01 14 no use of 733
    11 February 15 15:02 11 February 15 18:12 190 00052713 733
    11 February 15 18:13 February 11, 15 18:50 37 no use of 733
    11 February 15 18:51 11 February 15 19:57 00052760 733
    11 February 15 19:58 11 February 15 23:59 241 no use of 733

    How can I get that.

    A problem like this is easy to solve with the model clause:

    Select in_time, out_time, round ((out_time-in_time) * 24 * 60) stay_min, mr_no, room_no
    of room_usage
    model
    partition (room_no, trunc (in_time) d)
    dimension (row_number() on rn (partition room_no, trunc (in_time) order of in_time))
    measures (in_time, out_time, mr_no)
    rules iterate (1000) until (presentv (in_time [iteration_number + 1], 1, 2) = 2)
    (in_time [iteration_number + 0.5] = presentv (out_time [iteration_number], [iteration_number] out_time, trunc (in_time [iteration_number + 1])) + interval minute '1'
    , out_time [iteration_number + 0.5] = presentv (in_time [iteration_number + 1], in_time [iteration_number + 1], trunc (out_time [iteration_number] + 1))-'1' minute of interval
    , mr_no [iteration_number + 0.5] = 'no use '.
    )
    order of in_time

  • Error while using any tool in Photoshop "could not use tool the___ ("fill in the blank with any tool") because the channel of the target is hidden".

    I'm working in Photoshop CC, but when I try to use the tools I get this message:

    "Could not use the___ tool ("fill the void with any tool ") because the target channel is hidden."

    Why I get this message? I haven't hidden all channels.

    Anyone know?

    Thank you.

    Hi snow,

    See this thread: 'Could not move tool use because the channel of the target is hidden'

    Kind regards

    Claes

Maybe you are looking for

  • Can you pay for a product and use Apple finances for the rest?

    I am looking to buy the Macbook Pro when it is updated (hopefully) this summer and my question is if could I pay part of it using my updated credit card balance in terms of financing without interest apple? Thanks in advance!

  • HP 5502 have power but no display. Help, please!

    This is an office with hp 5502 crt. yesterday it was working fine. But today, when I tried to turn on the pc. It has the power, but displaying a dark black screen. Please help me in this matter. Thanks and greetings Rajat

  • Satellite P100: task bar sometimes appears as a gray square icon

    I have a Satellite P100 and the bar sometimes appears an icon which I can't understand tasks. It of a grey square with a horizontal line near the botoom and seems to represent a computer. Then, on the side at the bottom right there is a red on red ci

  • report amenazas por e-mail

    Buenas tardes quisiera report amenzas en mi trabajo este email * address email is removed from the privacy * mi number are ROBERTO CORTES RAMIREZ MI CORREO ES EL SIGUIENTE * address email is removed from the privacy * y me entan enviando amenzas a mi

  • Windows XP - recognition USB keyboard/mouse after change in the BIOS

    I moved to use a mouse and a keyboard that is connected via PS/2 ports for a new keyboard and mouse which connect via the USB ports.  The BIOS was originally installed to recognize the keyboard and the mouse through the operating system, but to use t