Movement, Measurement and time between them

Hello friends, 
I have a doubt with my program. I've made a statemachine (using Lab 9.0, no possible to use a new one) to move two motors and make a measurement (IV curve). Motors move and measurement is done, however this measurement is made meanwhile motors are moving, why? 
What should I do? I want the motors move, then make the measurement, when this is made, then move motors again and so on. 
Any idea? All help is appreciated. 
Attached you can find the program (sorry because of the drivers, they are Thorlabs for motors and Keithley 2400 for Measurement)
Solved!
Go to Solution.

lacorgui wrote:  The thing is that if I run the program with the "light" (like in a probe mode) it works fine: first move, then measure once motor is stopped.
That is called Highlight Execution.  Things with instruments tend to work so much better with Highlight Execution turned on purely because it slows your code down to a crawl.  This just screams the need to add in waits.  The state machine approach is the better way to go.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines

Similar Messages

  • 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

  • Three finger or two finger gesture to move back and forward between pages of file only work on safari, unlike with old os. this new lion won't let me do it. Any help?

    three finger or two finger gesture to move back and forward between pages of file only work on safari, unlike with old os. this new lion won't let me do it. Any help?

    I have decided to dedicate this thread to the wonderful errors of Lion OSX. Each time I find a huge problem with Lion I will make note of it here.
    Today I discovered a new treasure of doggie poop in Lion. No Save As......
    I repeat. No Save As. In text editor I couldn't save the file with a new extension. I finally accomplished this oh so majorly difficult task (because we all know how difficult it should be to save a file with a new extension) by pressing duplicate and then saving a copy of the file with a new extension. Yet then I had to delete the first copy and send it to trash. And of course then I have to secure empty trash because if I have to do this the rest of my mac's life I will be taking up a quarter of percentage of space with duplicate files. So this is the real reason they got rid of Save As: so that it would garble up some extra GB on the ole hard disk.
    So about 20 minutes of my time were wasted while doing my homework and studying for an exam because I had to look up "how to save a file with a new extension in  mac Lion" and then wasted time sitting here and ranting on this forum until someone over at Apple wakes up from their OSX-coma.
    are you freaking kidding me Apple? I mean REALLY?!!!! who the heck designed this?!!! I want to know. I want his or her name and I want to sit down with them and have a long chat. and then I'd probably splash cold water on their face to wake them up.
    I am starting to believe that Apple is Satan.

  • Can i set up two emails accounts on the mail function tab and switch between them

    I would like to be able to set up two email accounts on the mail tab on the Iphone 5 and switch between them, is this possible?

    Yes it is possible to set up multiple accounts but you cannot switch between them in the mail app.  What you can do in settings/mail etc is have one set as active an dthe other as inactive and you can change that from time to time if you want

  • I want to measure te time between the peaks

    I need to measure the time between each peaks (QRS peak) in an ECG waveform continuously and plot on the chart.
    Can u please help me with this.

    Hello kok,
    Here is an example.  I am using a sine wave instead but it will still work.  Just put in the threshold to be above the itnermediate peaks that you want to ignore but below the peaks you want to get.  The VI will then tell you what location inside of the array the peak occured.  You can subtract each location from each other to find how many elements pass between peaks.  You can then multiply the number of elements between peaks by the amount of time between each sample.  I hope this helps.
    Steven T.
    Attachments:
    rrmeter.vi ‏16 KB

  • Can I have two or more JVMs in one mashin and switch between them?

    Hi all,
    I want to have two JVMs in one mashin and switch between them via a httpListener. If I can, could you please guide me to do it?
    Thanks in advance,
    Orod Semsarzadeh

    may be my question is not fully clear. I mean, I want to have an bottun in my JSP when I click on it, 1 thread will be created and work in another JVM.

  • How can i define the same business partner as Vendor and Customer and link between them

    Hello Professionals,
    I want to define the same business partner as customer and vendor and link between them,
    How can i do this in SAP B1?
    Thanks in Advance,

    Hi Karem
    Our Account People doing like this only in my company. 
    If you Raise A/R Invoice means customer list only show in Business Partner List.
    If you Raise A/P Invoice means Vendor list only show in Business Partner List
    We Follow different Code for Customer and Vendor as show below.
    for Vendor  = Code Starts with V0001
    for Customer = Code Starts With C0001
    With Regards
    Balaji

  • I want to make 2 thesaurus and compare between them?????????Help

    Hi everybody,
    I have a Problem,I want to make 2 thesaurus and compare between them.
    I mean : I have a File Like This-----with lexicographical Order----
    ENG GERMAN
    Any Jede
    I ich
    Two Zwei
    when i write a sentence an german the Program must look the synonym of English an write it.
    Please help me as soon as possible
    Thanks

    Cross posted:
    http://forum.java.sun.com/thread.jspa?threadID=5259185 http://forum.java.sun.com/thread.jspa?threadID=5259240

  • Major kind of indexes and difference between them

    what are major kind of indexes and difference between them?

    what are major kind of indexes R - Reverse Index
    B - BitMap Index
    B - B-Tree Index
    I - Index Organised Tables
    F - Function based Index etc

  • How can i measure the time between a pulse output and a pulse back on the input?

    Llo,
    I have a problem i use a ultrsonic sensor, and when i send a pulse out of 4V then a couple of ms i have a pulse back on the input, how can i exactly know how much time there is between the 2 ^pulse??

    Use the output pulse to trigger a counter in period measuring mode and stop the counter on the return signal (if the input return signal is large enough to reliably trigger a logic circuit). If the signal is not large enough to trigger the counter directly, an external comparator can be used to generate the stop signal.
    Another approach is to use two channels of analog input. Feed the output signal to one of them and the return signal to the other channel. The time between outgoing and return pulses can be determined from the sampling rate. If precise timing is required and your AI board does not have simultaneous sampling, you have to account for the inter-channel time as well.
    Lynn

  • How do you move events and projects between Libraries in iMove 10

    I am running OSX 10.9.5 (Mavericks) & iMovie 10.0.5.
    I am trying to free up space on my internal 1TB hard drive and want to archive events and completed projects onto an external hard drive, which has a second iMove v10 Library on.  Under V9 of iMovie this function was easy, but I am struggling under V10.
    What is the correct way to move events between libraries in iMovie. 
    When I attach the external drive containing my second iMovie Library, open it I can see all existing events stored (by move) under version 9 of iMovie.
    Reading the Help (extract below) for this function it implies highlight the Event to move & then drag & drop into the second Library.
    Shift+CMD with drag and drop onto the second library at the library name level will move Events that are not tied to a project, but for completed projects (Finalized under V9 or shared for example with iTunes in V10) it seems these can not be moved, the above function only copies them to the second library.
    I have tried all different combinations of the Fn, Ctrl, Option CMD keys etc with and without SHIFT and the ones that work for this function only copy the event. I can not seem to get an event moved once attached to a project. File - Move Event will also move Events not tied to a completed project.
    I have also tried copy to a second Library & then to delete the original events.  Again it appears you can not delete events tied to a Project.
    What I have also not been able to find is how to move a finalised Project to another Library and then see if events attached to that project would then move.
    I have been able to move Events not tied to a Project to the second Library, then create a new project within this Library.  This helps with all new projects & future import of Events. But does not help me free up current space by archiving.
    Extract from help
    Copy or move projects, events, or clips between libraries or storage devices
             Connect a storage device that contains the target library to your Mac, or copy the target library to your Mac.
             Choose File > Open Library, and choose an option from the submenu.You can choose from recently opened libraries, locate an existing library on your Mac, or create a new library.The selected library is opened in the Libraries list, with the first event selected and its contents displayed in the browser.
             In the Libraries list, select the event that contains the item you want to move or copy.
             In the browser, select the item you want to move or copy.Tip:  To select multiple clips or projects in the same library, hold down the Command key as you click the items you want to select, or drag a selection rectangle around the items.
             Do one of the following:
    To move items between events or libraries: Drag the clip or project to another event or library.
    To copy items between events or libraries: Option-drag the clip or project to another event or library by first starting to drag and then holding down the Option key as you drag.
    Would appreciate any help on this matter.
    Thanks
    Colroy

    Further to my original post below; I have done further analysis and it seams that if you have events tied to a project (mine are all finalised) you can not move events between Libraries.  However, events that are not tied to a project can be moved. Either by Shift CMD or by using File- Move event.
    What I have not been able to find is how to move a finalised Project to another Library and then see if events attached to that project would then move.
    Copy works for events attached to a project. I have also tried copy to a second Library & then to delete the original events.  Again it appears you can not delete events tied to a Project.
    Does anyone know how to archive (move) Projects and/or events in iMovie 10.0.05 under Mavericks 10.9.5 to a second library on an external drive.
    Thanks
    Colroy

  • Move audio and video between tracks simultaneously

    If I have a video clip on V1, with linked audio on A1, I would like to move them both to V2 and A2, respectively, at the same time.  Is this possible?  I like to work this way to easily keep track of which video goes with which audio.

    There is a practical logic why one moves Audio and Video separately.
    Audio does not care what track its on...but video does (layering).
    Audio tracks are frequently checkerboarded (  A&B'd) to create overlaps and enable J & L Cuts to Video.
    It would be too easy to overwrite audio if it chased video track for track.
    You need to use track and source targeting to organise your timeline if thats your requirement.
    If the Video and Audio are linked

  • How can i measure the time between two successive rising edges ,using digital input ..

    Hello
    I'm trying to measure the time in seconds between each two successive rising edges on a digital input .
    Till now I have managed to detect the rising edge ,increment a counter with each rising edge ,and snap the time at which the rising edge happenned
    all I need now is to subtract the current rising edge time from the previous rising edge time in order to calculate (T) which can be 1/frequency and display it in realtime to the user.
    but I don't know how to do this
    Can somebody please help me !!!
    note: the time that I'm measuring ranges between 200 ms - 2 seconds
    Solved!
    Go to Solution.
    Attachments:
    Counter without time.vi ‏11 KB

    Cheers for that. It's always a good idea to post your SubVIs as well - the problem could be in one of those.
    To help you out:
    You already know how to use shift registers so why not use one again for time? Create a new shift register for  the time then simply compare the "rising edge time" to the the previous time stored in the shift register and then write the new time to the shift register.
    Just a few other pointers:
    1. You'll want to initialise your shift registers ie wire a constant to the left hand register outside of the loop. This will cause the register to be reset each time the program is run. This is so that your counter will start from zero each time you run your code.
    2. You don't need to use the "greater than?" compare function with boolean as they can only be true or false (1 or 0)! The "Equal?" function is what you should use here.
    3. Lastly, it's a small thing but you can use the same tunnel that feeds into a case structure in each of the cases - no need to create two tunnels for the true and false cases, use the same one.
    -CC
    "If anyone needs me, I'll be in the Angry Dome!"

  • How can I measure the time between each two successive rising edges ,using Digital Input ?

    Hello
    I'm trying two measure the time in seconds between each two successive rising edges on a digital input .
    Till now I have managed to detect the rising edge ,increment a counter with each rising edge ,and snap the time at which the rising edge happenned
    all I need now is to subtract the current rising edge time from the previous rising edge time in order to calculate (T) which can be 1/frequency and display it in realtime to the user.
    but I don't know how to do this
    Can somebody please help me !!!
    Solved!
    Go to Solution.
    Attachments:
    Counter without time.vi ‏11 KB

    Woah!  
    Sorry Apok, but your code is becoming way too complicated/messy. I don't think that all of those shift registers or boolean conversion/operators are needed at all.
    If you want to measure the timing between two button presses then this is a different (much less complicated) way. It simply records the timing of the button press into a shift register then compares the two.
    Spoiler (Highlight to read)
    Of course this is a very quick and basic solution just to show you that it can be much simpler than you are making it (remember to use the mechanical actions of the buttons to get the behaviour you want).
    A better way would be to use an event structure looking at value changes of the buttons to determine the timings between clicks.
    -CC
    "If anyone needs me, I'll be in the Angry Dome!"
    Attachments:
    Time between clicks.vi ‏9 KB

  • Import raw and JPEG and switch between them

    Some background. The Epson R-D1 (and R-D1s) when set to B&W and asked to record raw + JPGs renders the JPG in B&W and leaves the raw alone. It also shows you the images in B&W on its LCD. This is great because, if you don't want to, you never have to see the images in colour.
    When importing the images into Lightroom 2.0, the help has this to say: "To import duplicate JPEG files and raw files separately, select the Treat JPEG Files Next To Raw Files As Separate Photos option. Deselect this option to import only a single file." So does that mean that you can only have the raw images, which are shown in colour, or both images individually? It would be great if Lightroom knew that the two files represented the same image and let you pick which to work with, but I can't tell whether this is currently possible.
    Thanks!

    Thanks--the stacking approach seems to mostly work OK; not sure why I didn't think of it. IA problem though is that setting the slider for the time between shots to zero doesn't actually group shots having the same capture time--it seems to group nothing! Kind of pointless. You thus have to set the minimum time to 1s, which can put too many photos in a stack if you've been blazing away. I think I'd consider this a bug.

Maybe you are looking for

  • Exception while opening a JSP file created using oracle report builder

    I have created a JSP page which contains embedded Oracle reports build using Oracle Report Builder. I have deployed the JSP created above to the Oracle Application Server but when i try to open the JSP file it gives the following error: 500 Internal

  • MacBookPro Firewire HDD Capturing

    I don't have FCP installed yet (haven't even bought it yet) but I'm trying to work out the bugs mentally before I plunge into the abyss. So here's my question: If I use a firewire external HDD how do I capture video to it since all my cameras are fir

  • Viewing check number in payment document.

    Hi, I have made an outgoing payments through F-53. Two document numbers: 1800000012 & 1800000013 were generated Then i issued a check through FBZ5 & FCH5 respectively. Now i went into FB03 & displayed both above mentioned document numbers. But i am u

  • Sales Employee in COPA

    Hey Guys, I have used partner function PE and attached to customer account group and Sales Order Header and Item. When I create sales order sales employee is being copied from customer master. In COPA we maintained derivation rule to derive sales emp

  • Message types?

    hi am new to BI pls help me to know about message types. plese provide docs or pdfs if u have and that would be really helpful thank u