Stepper Control with labjack

Hi everybody,
Im doing a project at uni that requires me to control a small stepper with labview. The program I developed can generate the correct binary sequence (using a 4 element array) but the problem im having is obtaining a high enough frequency to drive the motor at sufficient speed. Two pieces of hardware that ive tried to use are Labjack and NI ELVIS(to output the signals). I now Have access to NI DAQPad-6015.

What frequency range do you need?
Using discrete digital outputs toggling on/off, you will be limited by the iteration speed of your software loop. This is probably limited to 100's of Herzt, most likely less than 1KHz. Post your code, maybe we can help. Please note that software timing can be indeterminate due to Windoze overhead- the speed of your motor may not be constant. Also note that your stepper may stall out if you command it to accelerate too fast.
The other option is that the DAQPad-6015 has 2 counter/timers that you can use to generate a wide range of frequencies and dynamically change and ramp up and down in frequency. But you would also need additional simple hardware (state decoder) to generate the 4 discrete phase signals that go to the motor drive electronics.
~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~

Similar Messages

  • Stepper control with labview

    Hello again,
    Im developing a project with a lazer pointer attached to a stepper motor, my program allows me enter a value and make the stepper  "step" a certain amount of times .This works ok but I have to stop the program running and start again in order to make the stepper step again.Is there a way that I can enter a value to make the motor rotate then enter another value to make it rotate again without stopping and starting the program. Ive attached my vi
    any input is much appreciated
    Attachments:
    jonnystepper.vi ‏133 KB

    Thanks!!
    Right here goes, the array in the while loop defines the sequence for half step mode, this array contains 48 values and therefore if all the elements are read this gives 48 (half) steps which corrosponds to 90 degrees of rotation (the motor gives 3.75 degrees per full step). The for loop part of the vi allows me to enter a value in to the control named index 2, the array in this part of the vi contains values that corrospond to a particular number of half steps.So if I have 48 in the first element and 24 in the second element this allows 90 and 45 degrees respectively, if 0 (first element) is entered into index 2 the for loop iterates 48 times and therefore I get 90 dgrees of rotation,if 1 (second element) is entered into index 2 then the for loop iterates 24 times and I get 45 degrees of rotation. What i would like to achieve is .......enter 0 into index 2 then start the program, when the motor has finished rotating  I would like to change the value in index 2 to1 and see the motor spin again without having to start and stop the program.
    Apologies for explanation........I hope you can understand the jist...please feel free to tell me if you think my method is incorrect or contrived
    with freunlichen Grüss

  • Labview interfacin​g with labjack U3-HV

    Hi, I am new to labview. I am doing a project on motor control. Here I have to find the following parameters of motor using Labview 7.1 version along with Labjack (U3-HV) : 1) Torque 2) Voltage 3) Current 4) Speed I don’t know how to write a code for these parameters in labview and I didn’t find any blocks like IC’s, chips, motors in control and function palette. Plz guide me for the same and post all your suggestions here. Thank you.
    Solved!
    Go to Solution.

    Hi labview,
    The IC’s, chips, motors etc: are not available in function or control palletes.
    For getting started with labjack,please see here
    http://www.labjack.com/forums/index.php?showtopic=​84
    http://www.labjack.com/lju12datarates.php
    Hope this helps.
    Thanks as kudos only

  • Motor control with 6024e

    I would like to set up a lab to control 1 to 4 axes using the 6024E card.
    Is it possible? I could do my own signal conditioning and amplification.
    I intend to try to use both stepper motors with some closed loop and brushless motors also with closed loop.
    Has anyone got some example solutions for this including what type of motors were used + labview VIs.
    Thanks
    Olivier

    I'm not sure if that would be possible/ or at least worthwhile, using one e series card. Have you considered using a motion control card? This will make the hardware and software implementation so much easier, and could be a cheaper solution in the long run:
    http://www.ni.com/motion/

  • Configure stepper motor with MAX

    Hi,
    After wiring VI, I don't know what must I do to control my stepper motor?
    Can anyone give general information what must to do.
    How to configure stepper motor with MAX? I'm using PCI6036E.
    Thank you

    The answer to your question is dependent on your motor/motor controller and the inputs that it needs. Are you using a stepper motor controller? The PCI-6036E probably won't be able to supply enough current to power your motor (max 5mA) by itself, so you will probably need a stepper motor controller. With the 6036E, you do have 2 analog outputs, 8 digital I/O, and 2 counters (can be used for pulse train generation). Have you considered an NI Motion Control Board? ni.com/motion
    -Alan A.

  • Possible to drive a stepper motor with PCI-6111?

    Is it possible to drive a stepper motor with PCI-6111?

    Hello Tristan,
    If your stepper motor is TTL compatible you should be able to control it with one of the two counters on the board. Keep in mind that the stepper will ask for a certain amount of power so before attaching it track down how much power it consumes and take a look at the Specifications of the PCI-6111 to be sure that the counters on the board can deliver that amount. If the stepper takes to much power you have to use some kind of power drive which can be controlled with digital (TTL) signals or Analog signals between -10V and +10V.
    Hope this helps.
    Best regards
    RikP
    Application Engineering
    National Instruments
    Rik Prins, CLD
    Applications Engineering Specialist Northern Europe, National Instruments
    Please tip your answer providers with kudos.
    Any attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system,
    or for use in hazardous environments. You assume all risks for use of the Code and use of the Code is subject
    to the Sample Code License Terms which can be found at: http://ni.com/samplecodelicense

  • How to delete the row in table control with respect to one field in module pool programming?

    Hi,
    Can I know the way to delete the row in table control with respect to one field in module pool programming
    Regards
    Darshan MS

    HI,
    I want to delete the row after the display of table control. I have created push button as delete row. If I click on this push button, the selected row should get deleted.
    I have written this code,
    module USER_COMMAND_9000 input.
    DATA OK_CODE TYPE SY-UCOMM.
    OK_CODE = SY-UCOMM.
    CASE OK_CODE.
         WHEN 'DELETE'.
            LOOP AT lt_source INTO ls_source WHERE mark = 'X'.
                APPEND LS_SOURCE TO LT_RESTORE.
                DELETE TABLE LT_SOURCE FROM LS_SOURCE.
                SOURCE-LINES = SOURCE-LINES - 1.
            ENDLOOP.
    But I'm unable to delete the selected rows, It is getting deleted the last rows eventhough I select the other row.
    So I thought of doing with respect to the field.

  • How Do You Populate A Spark List Control With An Array?

    Hello, all,
    Sorry to come accross so frustrated, but how in the name of God do you populate a Spark list control with the data in an array?  You used to be able to do this with the mx:List control, but the guys developing Flex just had to make things more difficult than they need to be!  I am more of a code purist and prefer doing things the way they have been done for decades, but apparently nothing can ever stay simple!
    I simply want to populate a list control with an array and this shouldn't be rocket science!  I found out that I must use a "collection" element, so I decided that an arrayCollection would be best.  However, after searching Adobe's documentation about arrayCollections, I am lost in a black hole of data binding, extra lines of code just to add a new element, the need to sort it, etc...!
    Here is my code:
    var pendingArray:ArrayCollection = new ArrayCollection();
    for ( var i:int = 0 ; i < queue.length ; i++ )
         var item:UserQueueItem = queue[i] as UserQueueItem ;
         if ( item.status == UserQueueItem.STATUS_PENDING )
         pendingArray.addItem({label:item.descriptor.displayName,descriptor:item.descriptor});
    Here is the relevant MXML:
    <s:VGroup>
         <s:List id="knockingList" width="110" height="100"/>              
    </s:VGroup>
    I'm not getting any errors, but the list is not populating.
    I have seen several examples where the arrayCollection is declared and populated in MXML:
            <mx:ArrayCollection id="myAC">
                <!-- Use an fx:Array tag to associate an id with the array. -->
                <fx:Array id="myArray">
                    <fx:Object label="MI" data="Lansing"/>
                    <fx:Object label="MO" data="Jefferson City"/>
                    <fx:Object label="MA" data="Boston"/>
                    etc...
               </fx:Array>
            </mx:ArrayCollection>
    That may be fine for an example, but I think this is a rare situation.  Most of the time I would image that the arrayCollection would be created and populated on the fly in ActionScript!  How can I do this?
    Thanks in advance for any help or advice anyone can give!
    Matt

    In your post it seemed like you were trying to take care of many considerations at once: optimization, design, architecture.  I would suggest you get something up and running and then worry about everything else.
    If I use data binding, then I will probably have to declare the  arrayCollection as a global variable and then I'll have to write 100 or  so extra lines of code to addItem(), removeItem(), sort(), etc...  It  just seems like too much overhead.
    I believe you may have some misconceptions about databinding in general.  You won't have to make it a global variable and you certainly won't need an extra 100 lines of code.  If you did this forum would be a very , very quiet place.
    I don't want to use data binding because the original array is refreshed  often and there is one function called by an event that re-declares the  arrayCollection each time, populates it with the array, and then sets  it as the list's dataprovider.
    That is the beauty of the ArrayCollection, it can handle the updates to its source Array. I don't know if you need to redeclare the ArrayCollection, resetting the source to the new Array allows everyone involved to keep their references so you don't have to worry about any "spooky" stuff going on.

  • Jabber and deskphone control with video

    Hi all,
    one of our clients has IM and presence 9.1 and jabber on windows 9.1.X and is integrating with Active directory for user synchronization and authentication.
    Q.
    why when we use deskphone control with jaber users have an audio in hardware phones but video in Jabber clients not working ?
    Note that the media service interface file  is installed.
    Help needed.
    Thanks in advance.

    you might want to have a look at this post 
    https://supportforums.cisco.com/thread/2160363
    =============================
    Please remember to rate useful posts, by clicking on the stars below. 
    =============================

  • Windows Phone - Cannot bind custom user controll with listview item source property

    It is Windows Phone 8.1 (runtime)
    I have some problem of binding custom user controll with list of data. I'll make it simple as I can.
    My problem is that somehow if I use DataBind {Binding Something} inside my custom controll it will not work.
    I need to transfer binded data (string) to custom controll.
    It is strange that if I do not use DataBind, it will work normally. Eg MyCustomControllParameter = "some string" (in my example 'BindingTextValue' property)
    Does anyone Know how to bind custom user controll with inside ListView with DataTemplate.
    Assume this:
    XAML Test-Main page
    <Grid  Background="Black">        <ListView x:Name="TestList" Background="#FFEAEAEA">                    <ListView.ItemTemplate>                <DataTemplate>                    <Grid Background="#FF727272">                        <local:TextBoxS BindingTextValue="{Binding Tag, FallbackValue='aSource'}" local:TextBoxS>                    </Grid>                </DataTemplate>            </ListView.ItemTemplate>        </ListView>    </Grid>
    XAML Test-Main page c#
    public sealed partial class MainPage : Page    {        List<TTag> tags = new List<TTag>();        public MainPage()        {            this.InitializeComponent();            this.NavigationCacheMode = NavigationCacheMode.Required;        }        public class TTag        {            public string Tag { get; set; }        }        private void InitializeAppData()        {            TTag tag = new TTag() { Tag = "hello world" };            tags.Add(tag);            tags.Add(tag);            tags.Add(tag);            TestList.ItemsSource = tags;        }             protected override void OnNavigatedTo(NavigationEventArgs e)        {            InitializeAppData();        }           }
    User Control XAML:
      <UserControl    x:Class="CustomControllTest.TextBoxS"    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"    xmlns:local="using:CustomControllTest"    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"    mc:Ignorable="d"    d:DesignHeight="300"    d:DesignWidth="400">      <Grid x:Name="LayoutRoot" Background="#FF4F4F4F"   >        <RichTextBlock x:Name="MyTestBlock">        </RichTextBlock>    </Grid></UserControl>
    User Control c#
    public TextBoxS()       {            this.InitializeComponent();            LayoutRoot.DataContext = this;        }        public static readonly DependencyProperty BindingTextValueProperty = DependencyProperty.Register(                                         "BindingTextValue",                                         typeof(string),                                         typeof(TextBoxS),                                         new PropertyMetadata(default(string)));        public string BindingTextValue        {            get            {                return GetValue(BindingTextValueProperty) as string;            }            set            {                SetValue(BindingTextValueProperty, value);                //This method adds some custom logic into RichTextBlock, pointed correctly                SetupBox(value);            }        }
    Thanks for helping ;)

    If you use a built-in control rather than your custom control, does binding work? You should verify that first.
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
    objects and unknown namespaces.

  • WP8 Map control with custom tiles

    I'm trying to display a map control in my app targeting Windows Phone 8 but I want to use custom tiles from open street map.
    I'm using this line :
    mapControl.TileSources.Add(new TileSource("http://a.tile.openstreetmap.org/{zoomLevel}/{x}/{y}.png"));
    When I launch the app the custom tiles are properly displayed, but there's still the default map tiles underneath them.
    I tried to hide them, but I counld'nt even find where they exist in the map control and what is displaying them exactly.
    I would like to know how I can remove those default tiles when loading custom tiles.
    I tried to hide them, but I counld'nt even find where they exist in the map control and what is displaying them exactly.

    Hi MakanWG,
    You have solved your question in here:
    http://stackoverflow.com/questions/27948331/wp8-map-control-with-custom-tiles .
    Good!
    Vote if help you

  • Can I use, and how can I use voice control with my iPad 2?

    Is it possible to use the voice control with my iPad 2? If so, how can I use it? Since there is no siri for iPad yet, I'd like to use something similar to it and I've seen this built in voice control before but I was not sure if it's possible with the iPad.

    Not yet, however you can download the new google app. This offers voice seeking on the net.

  • How can i distinguish two controls with the same name?

    I'm recording automated tests with VS 2012 Coded Ui Test for testing a web application.
    In that web application it is possible to enter data in something looking like a list.
    There is - per example - an Edit control sitting on a ColumnHeader with the name/text "Description".
    Below that header is another Edit control for data input - containing the text "Description" too and which lies on a Cell control.
    When i playback my recording, Coded UI Test looks for a control with the name "Description" and gets the one, it finds at first.
    In that case the Edit on the ColumnHeader, which causes an exception, when the Text will be setted with the data input from the recording.
    Unfortunately the controls have no ID.
    Is there a way to distinguish controls with the same name?
    Thanks in advance!

    Hi Patrick Pirzer,
    >>Is there a way to distinguish controls with the same name?
    Based on the blog "How does “Coded UI test” finds a control ??", we know that to really find a control, it would be related to the unique properties as the search properties,
    so if two controls have the same property, please use other unique property as the search property would be better.
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • "Source not found" Error creating URL Data control with query parameters

    Hi,
    I have a restful service for which i want to create a URL data control. I am able to create the URL data control successfully when i am not passing any parameters in the Source field. But if i am specifying the parameters in the source field like this Department=##ParamName##, something weird is happening. After giving the param string in the Source field, it asks for default param value to test the url. It tests the url successfully. After that i select XML as the data format in which i am mentioning the xsd like this . "file:///C:/..../something.xsd" . And this is when i am getting the error. "Invalid Connection. The source is not found". I am giving exactly same path for xsd which i gave while creating URL data control without query parameters. Infact i was able to create the URL data control with query parameters successfully till afternoon. after that it started giving me this error all of a sudden. Infact as soon as i was able to create a URL data contol with query parameter successfully, i took a backup of the application before moving further. But even that backup is not working now.
    As far as i understand, i dont think there will be any change in xsd if query params are passed to a web service. Please correct me if i am wrong.
    Just dont know what could be the issue. Please help
    Thanks

    Hi,
    xsd is used for the URL service to know what the returned data structure is so it can create the ADF DC metadata
    Frank

  • TS1382 Can my iPod Classic 160GB model MB565LL version 2.0.1 Mac be controlled with my Apple Remote if it is connected to the universal dock and connected to my stereo system

    Can my iPod Classic 160GB model MB565LL version 2.0.1 Mac be controlled with my Apple Remote if it is connected to the universal dock and connected to my stereo system

    Read this Apple Support Article on Apple REMOTE
    Good luck!

Maybe you are looking for