Can I acquire and analyse in real time with regular Labview?

I have to acquire samples (which vary cyclically in a roughly sinusoidal fashion) from a sensor, and check every sample to see if it is the minimum (the valley) of a cycle. If it is, and it does not fall within an expected range, I have to take a corrective action that involves rejecting the part that was just measured as well as a 30 more parts (to make sure that the defective part has been rejected). The signal from the sensor is not very noisy, but beause of the nature of the measured object, there could be local minima and maxima. To guard against that, a point is considered to be a valley only if subsequent readings deviate above that point by a certain amount. If a part is indeed defective,
a digital out put has to issued to reject that part.
Can all these be done using regular Labview (not RT)? I tried it out with a proto-type VI, using DAQmx vis, continously acquiring samples, but reading one sample at a time from within a loop (the VI I used is attached with this question). The result has been disappointing, since each time the loop executes there is a delay that keeps building up. Finally, even after the part feed has been turned off I can see Labview processing signals from parts that have long since gone past the measuring head.
Another perplexing thing I found is that the time taken to execute the while loop in the vi is not consistent; it takes anything from 6 to 50ms to execute.
I will need atleast 8-12 samples from a part to build its profile, and the feed rate is about 3000 parts per minute. I am using Labview 7.0 with an NI-6013 card in a Windows 2000 environment.
Thanks for any suggestions / recommendations.
Attachments:
find_trough_2.vi ‏378 KB

Hello,
Thank you for your suggestions; I had already resigned myself to going for a Real Time system, your answer convinced me to commit myself to it!
That said, your reply leads to a couple of (related) questions...
1. Your point regarding the use of Local Variables is well taken; I have been repeatedly told at various training sessions how the necessity of updating the LVs during each loop iteration slows the computation time. However, what alternative do we have when there are several controls to which we have to write AND read data multiple times during a loop iteration, and perform different computations based on the value held by these controls? (You have seen the VI I attached with the original question). Some of these conditional
computations further change the value of the controls. Does Labview have any other mechanism to store and manipulate the intermediate value from a computation?
2. I did a simple experiment to determine the average loop time, and the results were surprising. I placed the entire content of the VI I used (Find the Valley in cycle.vi) in a stacked sequence structure, and wired the index counter "i" to a control to count the number of iterations the loop executes. I placed a frame before this with a tick count instruction to get the start time of the loop, and a frame after this to get the end time of the loop. Dividng the difference of these with the number of iterations, I got the average loop time to be around 1.2ms! Am I interpreting my results incorrectly?
Thnaks once again for your response. I would really appreciate your views on the questions I have raised in this comment
Regards
Arun P. Madangarli

Similar Messages

  • Continuous data acquisition and analysis in real time

    Hi all,
    This is a VI for the continous acquisition of an ECG signal. As far as I understand the DAQmx Analog read VI needs to be placed inside a while loop so it can acquire the data continously, I need to perform filtering and analysis of the waveform in real time. The way I set up the block diagram means that the data stays int the while loop, and as far as I know the data will be transfered out through the data tunnels once the loop finishes executing, clearly this is not real time data processing. 
    The only way I can think of fixing this problem is by placing another while loop that covers the filtering the stage VIs and using some sort of shift registeing to pass the data to the second loop. My questions is whether or not this would introduce some sort of delay, and wether or not this would be considered to be real time processing. Would it be better to place all the VIs (aquicition and filtering) inside one while loop? or is this bad programming practice. Other functions that I need to perform is to save the data i na file but only when the user wants to do so. 
    Any advice would be appriciated. 
    Solved!
    Go to Solution.

    You have two options:
    A.  As you mentioned, you can place code inside your current while loop to do the processing.  If you are clever, you won't need to place another while loop inside your existing one (nested loops).  But that totally depends on the type of processing you are doing.
    B.  Create a second parallel loop to do the processing.  This would decouple the processes to ensure that the processing does not hinder your acquisition.  See here for more info.
    Your choice really depends on the processing that you plan to perform.  If it is processor-intensive, it might introduce delays as you mentioned.  
    I would reccomend you first try to place everything in the first loop, and see if your DAQ buffer overflows (you can monitor the buffer backlog while its running).  If so, then you should decouple the processes into separate loops.
    Regarding whether or not "this would be considered to be real time processing" is a loaded question.  Most people on these forums will say that your system will NEVER be real-time because you are using a desktop PC to perform the processing (note:  I am assuming this is code running on a laptop or desktop?).  It is not a deterministic system and your data is already "old" by the time it exits your DAQ buffer.  But the answer to your question really depends on how you define "real-time processing".  Many lay-people will define it as the processing of "live data" ... but what is "live data"?

  • Is it possible to set up my iPad as a video camera and broadcast it real time to a TV via apple TV?

    Is it possible to sey up my iPad as a video camera and broadcast it real time to a TV via Apple TV?

    Use airplay to send what is on the iPad to your tv.
    Since ipad2, you can display exactly what is on the ipad screento a tv via an adaper or via airplay through an apple TV.
    http://support.apple.com/kb/ht5209
    http://support.apple.com/kb/ht4437
    General overview but lacks specifics.
    http://accelerateyourmarketing.com/home-video-studio/
    Video
    https://www.youtube.com/watch?v=ce5FVJi0Uxw

  • TWO VERY TOUGH SUPPORT PROBLEMS FACED AND SOLVED IN REAL TIME

    pls any body post two very tough support problems faced and solved in real time.
    my id is: [email protected]

    Hi Priya.,
    For example client wants his customer legacy number in XD01 master data which is not there in Standard SAP.we can satisfy the requirement with USER EXIT
    2) If the client wants customer Phone number in the sales order we can use user exit to satify the requirement
    These are not provided in Standard SAP & we should work out on alternative way
    REWARD if helpfull
    Thanks & Regards
    Narayana

  • Can I use Labview real time with PCI 6013?

    How much does Labview real time cost?
    Do i need to have some additional hardware to use labview real time with PCI 6013?

    You can not use the PCI-6013 board with LabVIEW Real-Time.
    We offer three platforms for LabVIEW Real-time. PXI embedded controllers, 7030 data-acquisition plug-in boards (7030/xxxx) and FieldPoint. For more information on these options go to www.ni.com/products and then choose Real-Time from the menu on the left. There are PCI versions of the 7030 boards. Each 7030 board has a data-acquistion board attached to it (6030E, 6040E or 6533). When you embed a LabVIEW Real-Time program on the 7030 you will be able to access the daughter board. You can not access other boards from the embedded program. If you want to use several daq cards in your real-time system I would recommend a PXI chassi and PXI daq boards.

  • Can we use remote cubes for real time data

    Hi Gurus,
    Can you please explain, can remote cubes be used for sales item and billing item ,data sources, if it, can i extract the data as of normal cube running on these DataSource, if so then i want to make multicube on normal cube and remote cube and make a real time sales data on BW, please explain the possibilities of this, we are on version 3.1c
    Thanks in advance

    Hi,
    Remote cubes are special InfoCubes. A Remote cube represents a logical view.
    Unlike with BasisCubes however, no data is physically stored in SAP BW. The
    data is taken from the source systems only after a query has been executed.
    There are three types of remote cube. They can be distinguished by the way
    in which they retrieve data.
    Overview: Virtual Cube Types
    -SAP RemoteCube
    A SAP RemoteCube allows you to define queries with direct access to transaction data in other SAP systems.
    -General RemoteCube:
    A general Remote Cube allows reporting using data from non-SAP systems. The external system transfers the requested data to the OLAP processor via the BAPI.
    -Virtual InfoCube with Services:
    For a virtual InfoCube with services, a user-defined function module is used as the data source.
    Regards
    Pavan Prakhya

  • How can I download itunes when I get the following errors...have installed and uninstalled a dozen times with various fixes...b noir for example and used Revo to clean up..ituneshelper did not install correctly error 7

    How can I download itunes when I get the following errors  ..ituneshelper did not install correctly error 7..I .have installed and uninstalled a dozen times with various fixes...b noir for example and used Revo to clean up.
    This has been a problem for 6 weeks now, I retry when I have time and patience and use my other laptop which is also Windows 7 and runs with no problem.
    Every attempt fails when all seems fine on the desktop and I try to log on to Itunes I get the errors.
    Any help greatly appreciated.
    billymac

    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features(Later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support (If this won't uninstall press on)
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    See also HT1925: Removing and Reinstalling iTunes for Windows XP or HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    Should you get the error iTunes.exe - Entry Point Not Found after the above reinstall then copy QTMovieWin.dll from:
    C:\Program Files (x86)\Common Files\Apple\Apple Application Support
    and paste into:
    C:\Program Files (x86)\iTunes
    The above paths would be for a 64-bit machine. Hopefully the same fix with the " (x86)" omitted would work on 32-bit systems with the same error.
    tt2

  • My wife is very color deficient and has a hard time with the font colors in call log. Any way to change and does Apple have plans to correct?

    My wife is color deficient and has a hard time with the font colors in the phone log and messaging. Is there any way to change color or background and does Apple have plans to correct this?

    There are some minor settings in Accessibility that you can look at, however it really isn't much for color changing. As far as what Apple might have in mind, we are not Apple here, we are users like you. It is against the terms of service to speculate what Apple might have in mind. If you want to provide feedback to Apple, that is done here: www.apple.com/feedback and click on the appropriate link.

  • HT1212 My Ipad is disabled by wrong password and I have tried to reset and restore a few times with no success. Now I-tunes won't even recognize the I-pad in recovery mode. I need help please.

    My Ipad is disabled by wrong password and I have tried to reset and restore a few times with no success. Now I-tunes won't even recognize the I-pad in recovery mode. I need help please.

    If the iPad was running iOS 7,  iCloud: Find My iPhone Activation Lock in iOS 7
    http://support.apple.com/kb/HT5818
    How can I unlock my iPad if I forgot the passcode?
    http://www.everymac.com/systems/apple/ipad/ipad-troubleshooting-repair-faq/ipad- how-to-unlock-open-forgot-code-passcode-password-login.html
    iOS: Device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212
    How can I unlock my iPad if I forgot the passcode?
    http://tinyurl.com/7ndy8tb
    How to Reset a Forgotten Password for an iOS Device
    http://www.wikihow.com/Reset-a-Forgotten-Password-for-an-iOS-Device
    Using iPhone/iPad Recovery Mode
    http://ipod.about.com/od/iphonetroubleshooting/a/Iphone-Recovery-Mode.htm
    Saw this solution on another post about an iPad in a school environment. Might work on your iPad so you won't lose everything.
    ~~~~~~~~~~~~~
    ‘iPad is disabled’ fix without resetting using iTunes
    Today I met my match with an iPad that had a passcode entered too many times, resulting in it displaying the message ‘iPad is disabled – Connect to iTunes’. This was a student iPad and since they use Notability for most of their work there was a chance that her files were not all backed up to the cloud. I really wanted to just re-activate the iPad instead of totally resetting it back to our default image.
    I reached out to my PLN on Twitter and had some help from a few people through retweets and a couple of clarification tweets. I love that so many are willing to help out so quickly. Through this I also learned that I look like Lt. Riker from Star Trek (thanks @FillineMachine).
    Through some trial and error (and a little sheer luck), I was able to reactivate the iPad without loosing any data. Note, this will only work on the computer it last synced with. Here’s how:
    1. Configurator is useless in reactivating a locked iPad. You will only be able to completely reformat the iPad using Configurator. If that’s ok with you, go for it – otherwise don’t waste your time trying to figure it out.
    2. Open iTunes with the iPad disconnected.
    3. Connect the iPad to the computer and wait for it to show up in the devices section in iTunes.
    4. Click on the iPad name when it appears and you will be given the option to restore a backup or setup as a new iPad (since it is locked).
    5. Click ‘Setup as new iPad’ and then click restore.
    6. The iPad will start backing up before it does the full restore and sync. CANCEL THE BACKUP IMMEDIATELY. You do this by clicking the small x in the status window in iTunes.
    7. When the backup cancels, it immediately starts syncing – cancel this as well using the same small x in the iTunes status window.
    8. The first stage in the restore process unlocks the iPad, you are basically just cancelling out the restore process as soon as it reactivates the iPad.
    If done correctly, you will experience no data loss and the result will be a reactivated iPad. I have now tried this with about 5 iPads that were locked identically by students and each time it worked like a charm.
    ~~~~~~~~~~~~~
    Try it and good luck. You have nothing more to lose if it doesn't work for you.
     Cheers, Tom

  • I tried to upgrade the ios on the phone and I was asked for my icloud user and password. I don't remember these exactly and I tried several times with different options but unsuccessfully. I also forget my email used to configurate the phone.

    How i said on the question. I tried to upgrade the ios on the phone and I was asked for my icloud user and password. I don’t remember these exactly and I tried several times with different options but unsuccessfully. I also forget my email used to configurate the phone. I have the phone box and the bill. I sent you an email with my problem and attachments with the box informations, the bill and the reset request. What to do? You said to me:
    Your request comes from an unrecognized email domain. Apple accepts email requests only from email domains for Apple-authorized carriers.
    Please re-submit your request using your official carrier domain.
    but this email is authorized, what to do??
                                                                                                              respectfully, Beba

    If you have forgotten then these links are the only way to resolve
    http://www.apple.com/support/appleid/
    As long as you have owned the iPhone from new and your Apple id is the one used to activate when new
    OR have you recently purchased the iPhone secondhand ?

  • I have itune on my first computer, but i cant download it for my other one,how can i do that, i tryed many time with the link it says you download it but nothing follows  thank you

    I have itune on my first computer, but i cant download it for my other one, how can i do that, i tryed many time with the link it says you download it but nothing follows  thank you

    I'd first try downloading an installer from the Apple website using a different web browser:
    http://www.apple.com/itunes/download/
    If you use Firefox instead of IE for the download (or vice versa), do you get a working installer?

  • Can I pick and choose what to clone with CCC

    I bought a 2009 17" MBP "used", and it has a ton of files from the other guy on it, everywhere. For some reason it only has a 250 gig HD. I thought 500 was standard, maybe he changed that out. Anyway, I was hoping to totally clean out his junk and install a larger hardrive. My plan is to clone it onto the new hardrive. But I don't want to clone all of his junk.
    Can I pick and choose what to clone with Carbon Copy? I do not have the OS (10.6.8) install discs so. I really just want to put the OS back on the machine then I can load whatever I want and the machine would be clean.

    Yes. Carbon Copy Cloner allows you to choose which files you want to clone to an external drive. Have a look at the developer's site -> http://bombich.com/features

  • HOW CAN I ACQUIRE AND DEPLOY DATA IN REAL TIME WITH DAQ 6024E?

    HI ENGINEER,
    I'M PROGRAMING AN APLICATION WHICH I NEED ACUIRING AND DEPLOYING AN ANALOGOUS SIGNAL IN REAL TIME.
    I HAVE:
    LabVIEW 7.0
    WINDOWS 2000
    DAQ CARD 6024E
    THE SIGNAL I WANT TO ACQUIRE IS 0-10 Vcd FROM A SENSOR, THE PROBLEM I HAVE, IS THAT I AM ACQUIERING THE DATA AND IT SEEM THAT THEY ARE UPDATING EACH SECOND, BUT I HAVE BEEN MOVING THE PARAMETERS SUCH AS TASK TIMING IN THE DAQ ASSISTANT VI AND NOTHING HAPPENS.
    CAN YOU TELL ME WHICH PARAMETERS I HAVE TO MOVE TO AQUIRE AND DEPLOY DATA IN REAL TIME

    Hi barron,
    If you want to see the data update quicker, you can decrease the value in the "Samples to Read" field of your DAQ Assistant. This number controls when data is transferred from the DAQ buffer to the PC. If the sampling frequency remains the same, but this field decreases, it means the buffered data will be returned more quickly.
    Hope this helps.
    Thanks,
    Lesley Y.

  • How much interfaces can be driven in "real-time" with a VI in LABVIEW 6i

    In my application I need to merged data from different devices hanging to my computer via different interface types. Each data set in to be specifically formatted in a file. Each data set comes a a rate of ~ 10 Hz.
    As acquisition devices I do have
    - 4 digitizers connected to the PCI bus and their labview driver are already given by the constructor
    - an instrument from which data to be imported via a GPIB interface
    - an instrument from which data are imported via a serial port
    - and probably in the future, 2 devices mounted on two USB port
    I wish to developp a LABVIEW 6i code which permit me to make the request to all instrument, to import the data and to merged them as quick as possible so
    that I can store data set coming every 0,1 s. All data from all instruments must be recorded for the same event at the same time (in a triggered manner) before it performs the acquistions for the next event
    I would like to know what is the best way to each my goal.
    - Is it possible to control all this with one VI (containing lot of VIs) ?
    - Should I execute a VI for each interface and run them at the same time and save all data set with a time stamps in a file and then, off-line, process all the files and merge my information.
    In a general manner, are there any rules which indicate the maximum number of interface (according to their nature) which can be properly controled on a given platform from one computer.
    Thanks you very much for any answers

    Its been a couple of days with no reply....
    Look at the occurence functions.
    You can have one loop send occurences at teh rate you need.
    Put each of the other functions in seperate loops that wait for the occurence on each interation.
    Provided each of your loops runs fast enough this approach should serve you up till you run into the indeterminism of Windows. If the the indeterminism will be an issue, you may have to go with LV Real-Time.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Are there any examples for using a CAN card via XNET on a real time system?

    I am programming a real time application and I have a PXI 8512 card.  My first order of business is to get 5-byte messages from transducers that are broadcasting at 10 Hz on known message IDs.  There are no CAN/XNET samples in my "realtime" CVI sample folder.  I have found some in the nixnet folder but they are Windows based so I have to hack a lot of stuff out of them.
    Thank you.
    Michael Chadwell
    Department of Engine and Vehicle R&D
    Southwest Research Institute

    In other words, I just need to do something very similar to this with no user interface:
    NOTE: See attachment
    Michael Chadwell
    Department of Engine and Vehicle R&D
    Southwest Research Institute
    Attachments:
    CAN Bus Monitor.jpg ‏83 KB

Maybe you are looking for

  • Problem in rendering the XML using  XSLT in Netscape 7

    Hi there, I have used the XSLT to generate HTML codes from the XML datafiles. It works fine in Internet Explorer, but when I tried it on Netscape 7.0 , it just displayed the xml data, without the tags.. For example, In the xml ,I have the following :

  • Can Vendor Master be copied in different Co Codes

    Hi All, Can Vendor Master be copied in different Co Codes. Actually we have a requirement of Vendors for cross company code....How can I go about...Please advice ............... Regards, Rounak

  • Where is the PSE9 catalog?

    I upgraded from PSE8 to 9. I had set up all my photos in c:\adobedata\photos and the catalog from PSE8 in c:\adobedata\catalog so that I could synchronise PSE8 between my desktop and laptop. When I upgraded to PSE9, the program converted my catalog.

  • ODI - Create a Target Table Definition from a source definition

    Hi - Is there a way to create a target flat file definition from an oracle table definition? I have some oracle tables and I want to create flat files from them but don't want to have to re-type the file definition because it is nearly exactly the sa

  • Programmatically hiding vo attributes

    Hie I have a requirement to hide some of the vo objects programmatically. Can someone please guide me on how to do it? using ADF 11g latest jdev Vik