Increase Speed of DAQmx Sequence

Hi Everyone.  I'm working on my first Labview program that will use a stepper motor to apply a load which is measured using a loadcell.  I'm using a stepper motor driver that takes digital output from my NI USB-6009.  I'm struggling with how to improve the rotation speed of the stepper.
An image of my basic program is attached.  I've tried to make the labels on the tasks explain what each digital signal is responsible for.  I'm hopeful that when I contain the sequence within a while loop the motor rotates quicker than what it does.  Does anyone have an suggestions on how I can improve the speed of the program?
One thing I was thinking about was instead of passing an individual F and then T to the driver to create the step I could put both the F and T into a waveform.  Unfortunately I haven't had any luck in making that happen with my limited knowledge.
Another thing that I don't fully understand are the options in the DAQmx write function so I suspect I may be able to do something different there.
Any suggestions and help that could be offered would be very much appreciated.
Attachments:
StepperDrive.jpg ‏178 KB

Hi Mark,
Thank you for your reply. I'll try to further explain:
- the MS1-3 are digital signals that control the angle of a single step for the stepper motor. The stepper that I'm using has a single step angle of 1.8 degrees however the driver allows that to be reduced to half, quarter, eighth, or sixteenth. This is set by the specific combination of high and low values from the MS1, MS2, and MS3 pins. For example, if the desire is to have the motor rotate with a step resolution of 0.45 degrees I would assign MS1 = H, MS2 = L, MS3 = H.
- the DIR is a digital signal that controls direction of rotation.
- the STEP pin is a digital signal that first goes to low and then to high.  The driver detects the raising edge of the high signal and make the stepper motor rotate by one step using the parameters defined by DIR and MS1, MS2, and MS3.
- If anyone is curious I'm using "Big Easy Driver" to operate the stepper (http://www.schmalzhaus.com/BigEasyDriver/BigEasyDriver_UserManal.pdf)
- I've modified the block diagram (please see attachment) slightly just to give an idea what I'm trying to do.  My goal is to just get the stepper to spin as fast as possible so I believe optimizing whatever is in the while loop is what I want to accomplish.  Once I feel that I've got the best speed I will remove the while loop and turn the program into a SubVI.
- I'm very new to Labview but I'm guessing that using a waveform that goes from low to high could replace the last two DAQmx write functions with one.  I'm struggling with creating the waveform as well as what to select from the write funtion "polymorphic selector".
- Is there a preferred method of the sequence structure?  I believe that the DIR and MS1 - 3 pins must be established prior to the STEP signal and using the sequence is how I have tried to control this.
Again, thanks for any help that can be provided.
Attachments:
StepperDrive.jpg ‏194 KB

Similar Messages

  • Increasing Speed of Imac

    Hello,
    Trying to figure out ways to further increase speed of 24" Imac. I've maxed out the ram to 3g and hard drive is hardly used. Most of my photos are stored on external drives.
    I use the computer mainly for photoshop/lightroom etc. I didn't really think it was that slow until we recently purchased a dell intel core 2 duo CPU / 2.19ghz and 2g RAM at work. This computer is much faster opening programs such as Photoshop almost instantaneously. Is this normal or should my mac be running faster. when opening photoshop or lightroom the icon usually bounces at least 4 times before opening. Any thoughts or suggestions would be welcome.
    I run onxy weekly.
    Owen

    The only thing I can think of that would help load Adobe apps a little faster would be a faster HDD. If your iMac still has the stock HDD then there are certainly faster drives available for the iMac. That would probably help a little but I doubt it would make Mac and PC load times the same.
    Even Steve Jobs' has mentioned slow Adobe app load times during his keynote addresses.
    lenn

  • Is there any way i can upgrade my mac to increase speed

    here is my spec
      Model Name:          iMac
      Model Identifier:          iMac12,2
      Processor Name:          Intel Core i5
      Processor Speed:          2.7 GHz
      Number of Processors:          1
      Total Number of Cores:          4
      L2 Cache (per Core):          256 KB
      L3 Cache:          6 MB
      Memory:          16 GB
      Boot ROM Version:          IM121.0047.B1F
    Storage
    Main-SSD:
      Available:          63.4 GB (63,395,061,760 bytes)
      Capacity:          250.14 GB (250,140,434,432 bytes)
      Mount Point:          /
      File System:          Journaled HFS+
      Writable:          Yes
      Ignore Ownership:          No
      BSD Name:          disk0s2
      Volume UUID:          02B8B21A-62AB-364D-85F9-3F7CE2BA5DE3
      Physical Drive:
      Media Name:          APPLE SSD TS256C Media
      Medium Type:          SSD
      Protocol:          SATA
      Internal:          Yes
      Partition Map Type:          GPT (GUID Partition Table)
      S.M.A.R.T. Status:          Verified
    HD2:
      Available:          617.65 GB (617,653,587,968 bytes)
      Capacity:          999.86 GB (999,860,912,128 bytes)
      Mount Point:          /Volumes/HD2
      File System:          Journaled HFS+
      Writable:          Yes
      Ignore Ownership:          No
      BSD Name:          disk1s2
      Volume UUID:          C473B11F-9A84-3356-A268-B314A4ED2A5B
      Physical Drive:
      Media Name:          ST31000528AS Media
      Medium Type:          Rotational
      Protocol:          SATA
      Internal:          Yes
      Partition Map Type:          GPT (GUID Partition Table)
      S.M.A.R.T. Status:          Verified
    Media-Drive:
      Available:          1.38 TB (1,375,661,342,720 bytes)
      Capacity:          3 TB (3,000,458,477,568 bytes)
      Mount Point:          /Volumes/Media-Drive
      File System:          Case-Sensitive Journaled HFS+
      Writable:          Yes
      Ignore Ownership:          No
      BSD Name:          disk2s3
      Volume UUID:          6FDDAD08-B7CC-3D8D-8291-9150547452E9
      Physical Drive:
      Media Name:          Toshiba External USB 3.0 Media
      Protocol:          USB
      Internal:          No
      Partition Map Type:          APM (Apple Partition Map)
      S.M.A.R.T. Status:          Not Supported
    RAM
    Memory Slots:
      ECC:          Disabled
    BANK 0/DIMM0:
      Size:          4 GB
      Type:          DDR3
      Speed:          1067 MHz
      Status:          OK
      Manufacturer:          0x029E
      Part Number:          0x434D5341344758334D314131303636433720
      Serial Number:          0x00000000
    BANK 1/DIMM0:
      Size:          4 GB
      Type:          DDR3
      Speed:          1067 MHz
      Status:          OK
      Manufacturer:          0x029E
      Part Number:          0x434D5341344758334D314131303636433720
      Serial Number:          0x00000000
    BANK 0/DIMM1:
      Size:          4 GB
      Type:          DDR3
      Speed:          1067 MHz
      Status:          OK
      Manufacturer:          0x029E
      Part Number:          0x434D5341344758334D314131303636433720
      Serial Number:          0x00000000
    BANK 1/DIMM1:
      Size:          4 GB
      Type:          DDR3
      Speed:          1067 MHz
      Status:          OK
      Manufacturer:          0x029E
      Part Number:          0x434D5341344758334D314131303636433720
      Serial Number:          0x00000000
    Graphics
    AMD Radeon HD 6770M:
      Chipset Model:          AMD Radeon HD 6770M
      Type:          GPU
      Bus:          PCIe
      PCIe Lane Width:          x16
      VRAM (Total):          512 MB
      Vendor:          ATI (0x1002)
      Device ID:          0x6740
      Revision ID:          0x0000
      ROM Revision:          113-C0170F-175
      EFI Driver Version:          01.00.560
      Displays:
    iMac:
      Display Type:          LCD
      Resolution:          2560 x 1440
      Pixel Depth:          32-Bit Color (ARGB8888)
      Main Display:          Yes
      Mirror:          Off
      Online:          Yes
      Built-In:          Yes
      Connection Type:          DisplayPort
    42W_LCD_TV:
      Resolution:          1920 x 1080 @ 60Hz (1080i)
      Pixel Depth:          32-Bit Color (ARGB8888)
      Mirror:          Off
      Online:          Yes
      Rotation:          Supported
      Interlaced:          Yes
      Television:          Yes
    is there anything else i can do to upgrade my system to increase speed i do a lot of 3D work and i am pusing my system to 100% 24 hours a day.
    i need more speed

    Sell the 5 privately and use the funds received toward the purchase of a 5s.
    Apple does not do trade-ins like car dealers if that is what you are asking.
    In some locations, Apple will give you a small amount for recycling your
    current iPhone but you will always get more $ by selling it privately.
    Some wireless providers offer periodic reduced price upgrades - check yours
    to see if they have such a plan.

  • Best way to change the speed of a sequence of linked short clips?

    I have a sequenced project of about 150 short 1 second clips linked together via a crossfade transition... I would like to make the timelapse faster. What is the best way to change the speed of the sequence or the clips themselves? I would rather change the sequence for it would be less labor intensive I would imagine!!
    Thanks
    RD

    Or...select all the clips in the timeline, control-click (or right-click) on them and select 'Duration'. Change the duration to whatever will fit/fill the timespan you need, then hit OK.
    If you're needing to change the dissolve as well, you should remove all but one of them first, then drag the remaining transition into the browser. Dbl-click it into the viewer, set the duration of what you want, then use the hand icon at top right and drag it back into the browser. Rename it relevent to it's new duration, then control-click on it and select "Make Default".
    Now, set an inpoint at the first frame of your clips in the timeline, then drag all the shortened clips from the timeline into the canvas and release where it says 'Overwrite with Transition'.
    That's another way to accomplish this.
    K

  • How do increase speed on my iMac or clean up?

    How do increase speed on my iMac or clean up?

    Providing some more details will allow better answers to your question:
    How old is this iMac? (e.g. Early 2008, Late 2012, etc.)
    What Mac OS is it running?  (Snow Leopard, Lion, Mountain Lion?)
    How much RAM memory is installed?
    What is your hard drive size, and how much free space is remaining on it?
    Are you running any anti-virus software or "crapware" like MacKeeper?
    Is this "slowness" evident all the time, or only during certain applications or processes?
    Have you tried going to Applicatons --> Utilities --> Disk Utility and running Repair Permissions?

  • How to increase speed to marker

    using FCE...
    i am trying to devise a way to increase the speed of a clip midway through to have it end at 200% at a marker in the timeline that matches a specific beat in the audio. that is, i would like the action to ramp up from 100% midway through a clip to end at 200% at frame of my choosing to meet a beat in the audio that i have marked in the timeline above.
    regular clip speed>sudden, rapid increase to 200% speed>clip ends on the frame i want and at the beat i want.
    i am working away at it, but any suggestions would be greatly appreciated
    thanks

    The best way I can think of would be to first make it into two different clips (FCE doesn't allow you to keyframe speed). So first, cut the clip at the point where you want it to speed up (blade tool, B). Next, lets have the second clip speed up the way you want it. Highlight the clip, go to modify->speed (I believe the shortcut is command-J). Now type in the speed change you want (in this case, 200%). After you have finished with that, ripple edit the second clip to the point in the audio you want it to stop (or you can put a marker there by clicking M, and if you have snapping turned on it will snap to the marker).
    While this makes a nice effect that I think looks good, it skips from 100% straight to 200%, which I don't think is what you were wanting to do. The only thing I can think of at the moment to do in FCE to ramp it up from 100% to 200% is to do the same process described above, but cut it into several sections, and apply different speeds to them (eg 100%, then 110%, then 120%... then 200%). There might be a better way of doing this but since at the moment FCE speed doesn't appear to be keyframeable this is my best suggestion. If you do enough of these clips with increasing speeds, you should get the same effect.
    I hope I was of help, and good luck with your project.

  • IMac 21.5 hard drive fan increases speed after HDD Replacement

    The hard drive on my iMac 21.5 failed two months out of warranty, so I decided to replace it myself.  I replaced the drive with a duplicate of what was already in the iMac, which is a Seagate 500GB Barracuda 7200.  The replacement and restore went well, however, now the hard drive fan slowly increases speed during operation, until I assume it reaches maximum RPMs.  The increase in fan speed happens regardless of how busy the unit is.  This is not particularly a problem, but the noise at maximum RPMs is annoying and I assume the life of the fan will be shortened.  I ran the Apple Hardware Test and received the error "4SNS/1/40000000:TH00-9.000" which I've seen from another post that this may or may not indicate a problem with the thermal sender unit on the HDD.  During installation I was careful to verify the proper orientation of the thermal sensor cable, so doubtful that is the problem.  Is there a way to definitively determine whether the thermal sensor is bad on the HDD, or do I need some type of Apple-specific firmware installed on the HDD?

    Beginning in late 2009 Apple began using HD's that had the heat sensor integrated into it, if you are absolutely positive your replacement drive has an integrated sensor in it then your problem might be solved by doing a SMC reset. If you haven't done one before here are the instructions:
    SMC RESET
    • Shut down the computer.
    • Unplug the computer's power cord and all peripherals.
    • Press and hold the power button for 5 seconds.
    • Release the power button.
    • Attach the computers power cable.
    • Press the power button to turn on the computer.
    PRAM RESET
    • Shut down the computer.
    • Locate the following keys on the keyboard: Command, Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    • Turn on the computer.
    • Press and hold the Command-Option-P-R keys. You must press this key combination before the gray screen appears.
    Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    Release the keys.

  • How to increase speed of analog read using PCI 6110 and LabView 7.1?

    Hi All,
    I'm a fairly novice user of LabView and I'm trying to figure out how to make my system as fast as possible. Basically, I'm reading in an analog signal (AI0) together with a trigger signal (PFI0) and I want to sample the analog signal on the falling edge of the trigger signal. What I'm finding, though, is that the acquisition rate of this system is excessively slow. My analog signals occur faster than 1 kHz, but the speed of my system is only about 100 Hz. A colleague of mine told me that the DAQmx Trigger.vi I was using was probably the culprit for the slow performance I was observing. Could this be right? If so, how could I resolve this issue?
    Another thought I had was to input the trigger signal into the external source input of the DAQmx Timing.vi. In this way I'd be using the trigger signal as an external clock. If operated in Continuous mode, then I think the Sample Clock would cause a sample to be read only when the trigger signal changes its state (from high to low). Could this work?
    Thanks for reading,
    Ben

    Hi Marni,
    Thank you so much for your post! I tried doing as you suggested, using the Cont Acq&Graph Voltage-Ext Clk-Dig Start.vi and I first set the trigger signal as the external clock source. It works beautifully! Now, with 1.6 kHz signal in, I'm reading in 1.6 kSa/s. This is a dramatic improvement from before. I also tried using the internal clock source option, but it didn't seem to trigger when I wanted it to. I didn't spend too much time debugging it, though, since the other method works so well. This brings up an interesting question. Is the DAQmx Trigger.vi really that slow? Previously, I could read in 100 kSa/s at best using the Trigger VI. Anyways, I'm a happy camper now:-)
    By the way, to answer your question about the DAQ device, I'm using the NI PCI 6110 Multifunction DAQ.
    Thanks again!
    Ben

  • Increase speed visa read write

    Hi guys,
    I am using the visa read and write example, but I am facing some issue when using it in a larger software, and I can only receive date when the vi has been slown down (using the lightbulb).
    The programme definitely works on it own with the settings defined. 
    Therefore, do you have any ideas/suggestions on how to increase the speed of this vi (attached) significantly? Also, it seems to create an issue with the data read
    Many thanks,
    Kentmey
    Kentmey
    Solved!
    Go to Solution.
    Attachments:
    Read and write.vi ‏22 KB

    How are you using this code inside of another VI?  If you are actually calling this VI, there needs to be some changes.
    1.  The port should only be initialized once at the beginning of your program and clsoed once at the end.
    2.  There shouldn't be any  need for the bytes at port.  You are set up to use a termination character.  So just set the number of bytes to read to something really large (like 50 or 100) and let the VISA Read stop when it finds the termination character.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Using Exterenal hard drive with after effects to increase speed

    hi,
          i recently purchased a 500GB Gtech firewire external harddrive for my laptop.  My after effects is extremely slow and i want to use these external harddrive in order to increase the speed. i cant figure how to set it up please can you help me out? what options do i have?? i have a macbook pro with the following specs:
    Processor  2.4 GHz Intel Core 2 Duo
    Memory  8 GB 1067 MHz DDR3
    Graphics  NVIDIA GeForce 320M 256 MB
    Software  OS X 10.8.5 (12F45)

    What version of After Effects are you using?
    What makes you think adding an external hard drive could make AE faster?
    Here is a page on making AE run faster: http://adobe.ly/eV2zE7
    Here is a page on hardware for AE: http://adobe.ly/pRYOuk

  • Why does "ken burns" increase speed going in/out?

    If you've used Flash, you know that you can control the motion by 'easing in/out', that is, the constant and consistent motion of a picture or object can be emphasized at the start or end of a tween (move slow and increases in motion speed towards the end, or vise versa).
    the ken burns effect shows a normal smooth motion, maintaining consistent speed throughout the whole motion, ONLY in the preview pane. When it is actually rendered, for some reason some photos start their motion really slow. Others start their motion really fast. Why is this and can it be controlled?

    Welcome to the forum, Chris.
    Yes, the accelerating zoom of Ken Burns is a known problem. Here's another thread discussing it, with some suggestions. Unfortunately, there is no perfect workaround.
    Karl Petersen, "jumpy ken burns effect" #1, 11:59pm Sep 17, 2005 CDT
    Please complain to Apple so it is fixed.
    http://www.apple.com/feedback/imovie.html
    Karl

  • Increasing Speed problem

    I am having difficulty trying to speed up clips in a DV project to the 200 - 300% range, or at all actually. I right click the clip, and select "speed", then try and type in anything from 101% on up it gives me this error:
    Unable to complete command. An error occurred during a trim operation.
    Any ideas?
    G5 dual 2.5   Mac OS X (10.3.9)  

    There's lots of fixes:
    1. Put the clip on it's own track, and lock the tracks beneath.
    2. Do a match frame, and change the speed of the master clip, then edit it in. Change the speed back once edited... so the master Browser clip remains unchanged.
    3. Best bet: With the clip in the Canvas, type optioncmdf to open the original file as a new clip... change that clip's speed in the Viewer (type cmd+j), edit it in your sequence.
    Jerry

  • How  to make space, increase speed, and battery

    Space is not just taken up by emails. It includes all the "background" apps, bookmarks, messages, music, photos, ibooks and virtually anything is been accessed on your iPhone. Just like closets at home that get over filled and clothes we thought we were going to use your phone and your computer needs to be cleaned out more then once a year.
    Here are a few measures that can be used to increase space and might I add battery power and usage proceessing speed to the lifetime of your phone/pad.
    The most obvisious items: photos, books, documents, music can be streamline / transferred / exported to a hard drive.
    The list below is maybe less thought of:
    MULTITASKING: closing all the open apps.
    To do this use the button below the screen known as home button with your index finger slide the apps upwards to close apps But make sure you keep the main screen app view open.
    BOOKMARKS and READING LIST
    Trim all the bookmarks and reading list that you no longer need by deleting it on your phone. If the bookmarks are important enough to keep then store them to your main computing system. You can even create a file and folder on your computer separate from your safari bookmarks by using a spreadsheet with the name of the site and url address.
    SAFARI and all other WEB BROWSER COOKIES n DATA
    Go to SETTINGS - SAFARI scroll down screen and clear cookies and data.
    GPS &  MAPS
    delete all unnessary directions and locations.
    CELLUAR DATA
    Go to Settings - CELLUAR
    LTE - enable
    ROAMING  - I prefer voice only so data pile up wont become an issue and only turn on data roaming if I need it.
    BACKUPS
    Backing up your phone/pad to a computer and a seperate hard drive using time machine saves space on your mobile device while adding an extra resource to recover and lost data.
    Think about it if your mobile device is constantly storing old, long forgotten  might need one day background stuff how can it have room to go forward and do the hard work you really need.

    Arrange menu :
    Align
    Distribute

  • Faster - many reports coming on increased speed

    http://www.fcp.co/final-cut-pro/news/954-10-0-6-brings-a-3200-speed-increase-whe n-rendering-effects-on-a-final-cut-pro-x-timeline
    Link (above) is one of many that are starting to trickle in - looks like one of the changes in the update involve joining CPU and GPU together for renders.  some kinds of effects will benifit more than others depending on what the effect does and how it does it, but the bottom line is that in exporting a project (Share) it was faster compared to rendering within the project, but now project renders are as fast.

    Good morning py9mrg, and welcome to the forum.
    It is possible that you are getting a lot of errors on your line, in which case the dlm equipment will keep reducing your speed until you get a stable connection.
    As you are using the HH3, can you post the dsl stats ?
    If you found this post helpful, then please click the star on the left, after all, I'm only trying to help........

  • New Ram for my Imac doesn't seem to increase speed!

    I just upgraded my Imac from 1 gig ram to 4 gig ram. I ordered the ram from Crucial. I took out the 1 gig of ram and installed the 4 gigs of new ram, and booted the computer back up. It now says that I have 4 gig of ram, however, I do not notice a noticeable improvement in speed. How can I make sure I don't have a defective module? Is there any thing else I need to do when installing new ram?
    Thanks in advance for your help.

    I'm not sure I totally agree with these responses, but I am admittedly no expert. I too increase my RAM from 1 gig to 2.5. I did this because I noticed a general sluggishness after installing Leopard. I figured the latest OS was hogging up some RAM, so I increased the RAM. I see no appreciable difference fter installing the extra 1.5 gigs. In the past, I have upgraded RAM on my many Macs and have always noticed a difference in the response time in Safari and other apps. What am I missing this time? If RAM won't do it, then what will? It seems absurd to me that a two year old iMac with 2.5 gigs of RAM should be sluggish.
    Jimmy

Maybe you are looking for

  • How do I restore apps/music on my iPhone?

    I can't figure out how to delete my other question, so sorry to post another one similar. I saved everything to iCloud, had to reset phone and then am trying to restore everything. My contacts came back as well as everything in my Calendar.  For some

  • How to fill a Key figure at Query run time

    Hi All, I have a requirement where I have to fill a key figure while the query is running. This value is obtained by multiplying 2 attributes of a Material Master Data object.I  could have used Formula Variable but there are two problems - 1. I have

  • Connecting Powerbook to External LCD Monitor

    The D-BUS port on the external LCD monitor is a female port, so is the VGA port of the DVI Adapter, How can I connect these 2 if both are female ports, what do I need???

  • In Oracle 10g for XML  parsing what jar files have to be loaded?

    I am trying to parse the sample xml file. I want to know what are the jar files which needs to be loaded in Oracle 10g. In Oracle 9i I have files which have been asked to load in to the database. 1) xmlparserv2.jar and 2) xmlplsql.jar But in Oracle 1

  • Can i connect i pad to computer has pass code but the screan black

    how do we conect i pad to the computer if it has a black screan we cant enter the pass code on the ipad and want to restore it on the computer