How to track position of motor using LabVIEW?

I have created a VI in LabVIEW that will allow me to control a motor to turn a certain number of degrees and then the motor will provide me with feedback on its final position. For example, I ask it to turn 180 degrees and it will output 180 degrees on the screen when it reaches its destination.
Is there a way to track the motion of the motor as it turns second by second? For example, at 1 second it is at 30 degrees and 2 seconds 75 degrees, etc. I would like to display this information in a chart/graph or table.
Any help would be greatly appreciated.

You can try use chart and wire its input with the output of the motor and put the whole in a loop.

Similar Messages

  • How to control an electric motor using LabVIEW?

    Hi,
    is there a simple way to control the rotation speed of a electric motor (12V) using LabVIEW?
    I have an idea how to achieve this by using NI measurment card, by its not that cheap. Any ideas?
    Maciek.
    LabView 2009.
    Solved!
    Go to Solution.

    Rubid wrote:
    Let's complicate the problem. Is there a way to control the output voltage of the USB port in my PC?
    Do you know what a USB-RS232 converter is??
    Buy one together with that power supply and your problem is solved
    What do you mean with "control the output voltage of the USB port" do you want to drive the motor directly from the USB port

  • How to run stepping motor using LabVIEW

    Hi
    I need to run bipolar stepping motor using LabVIEW 6.1. Would anyone please guide me how to do that.
    I have measurement and automation 3.1.0.3021 installed on my system. I am new to LabVIEW.
    Jayaprakash.

    Hi,
    Do a search for the words "stepper motor" in the forums. This should bring up several threads where this has been discussed.
    -Sal

  • How to draw the circle diagram of induction motor using labview

    hi
      i am trying to model the  electrical machines using labview..
    i want to know that is it possible to draw the circle diagram of induction motor using labview..........
    if its possible then please suggest me the possible ways.
                                                                                         thanks

    There may be better ways, but the method I used was to convert amplitude & angle to rectangular coords, then create an XY plot from (0,0) to those coords.  (Or 1 plot for Voltage, 1 for Current, etc.)  I would then just keep updating this plot and feeding it to the graph in a loop.  The result was a slightly choppy looking but useable animation of the phase vectors.
    -Kevin P.

  • How to track repeting record data using BAM in biztalk

    Hi All,
      am new bam, How can How to track repeting record data using BAM in biztalk,please find the below input record
    <ns0:Employee xmlns:ns0="http://BizTalk_.Employee.Schemas.emp_In">
      <Emp>
        <id>122</id>
        <sal>222222222</sal>
        <name>.srinu</name>
        <dept>java</dept>
      </Emp>
       <Emp>
        <id>666</id>
        <sal>44444444</sal>
        <name>.srinu</name>
        <dept>java</dept>
      </Emp>
       <Emp>
        <id>333</id>
        <sal>7777</sal>
        <name>.biztalk</name>
        <dept>C#</dept>
      </Emp>
    </ns0:Invoice>
    am tried using TPE but its showing all the 3 rows as NULL  in bam primary import database.
    So please let know how can i achieve above issue.
    Regards,
    srinivas

    Hi Srinivas,
    Using TPE you cannot process repeating records. It doesn’t allow you to loop through your InvoiceDetails (repeating record), hence it shows null in tracked record. This
    is one of the limitations when you use TPE.
    This can be done using BAM API. If you use Orchestration or by writing a custom pipeline component you can use BAM API where you have the flexibility to loop through the
    repeating record and insert each InvoiceDetails node as a record in your BAM activity. BAM API is the only option to track repeating items inside a message as separate activity instances.
    Refer this MSDN article for more info:http://msdn.microsoft.com/en-us/library/aa559527.aspx
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Sinusoidal velocity profile of a stepper motor using labview

    Hi I am trying to get sinusoidal velocity profile of the stepper motor using labview.
    Could anyone please help me out...

    I'm also really interested in this solution.
    I think you could do it by controlling the velocity of the stepper with points (excel) or function maybe... but that's an idea...

  • How to power a motor using labview DAQ output signal

    The power from labview is not enough to move a decent-sized motor (works with tiny one). Is there any electrical component/device that I can use to sort of increase it (something in between output from labview and the motor)?
    Thanks

    LabView is a software and does not supply any physical signals. To generate physical signals you need an interface board, NI has plenty of them which can be controlled via LabView. Anyhow, as you mentioned, digital i/o interfaces can handle currents in the mA range only. I think the best way to control motors via LabView and an interface board is using an additional relay driver board. Since relay contacts only switch power and do not supply any power you will need an external power supply matching the voltage and current specs of the motor.

  • Intesnisty and Position input analyzed using Labview

    I have a motorized actuator which I want to first move using labview and also get feedback on its position using a DAQ card (NI-PCI-MIO-16E-1). I have a lock in amplifier which basically gives me voltage information through a GPIB card that I have. Now I need to implement a VI which can simultaneously do the following:
    1) move the motor in steps.
    2) get position feedback from the motor
    3) get data from the Lock in amplifier
    4) Plot a graph of position on the X and Voltage intensity on the Y
    Advice, suggestions, comments or questions ? 

    How are you controlling the motor? Are you using a motion card? If you're not using a motion card, what hardware do you have and how is it all set up? Position feedback can be obtained from the DAQ card and the voltage information can be obtained from the GPIB card pretty easily. The examples found in the example finder are great places to start in order to get those two aspects down. If you can get those acquired, plotting them is also pretty easy and there are examples on that as well. Your main challenge will be with the motor so any additional information would help.
    -Zach
    Certified LabVIEW Developer

  • How to implement a callback function using LabView's Call Library Function Node?

    I am trying to call a fuction from a SDK.dll library using the Call Library Function Node. The SDK was provided to
    me and I do not have the source code, just the .dll and .h files.
    The SdkSetPropertyEventHandler function has a callback fuction as one of its parameters. How do I implement the
    callback using the CLF node? I am a good LabView programmer but this is my first time using the Call Library
    Function Node. I have read all the info I can find on NI's web site and the discussion board but cannot figure
    this one out. I am using LabView 8.6.
    The SDK.h deacribes the function as:
    //  Function:   SdkSetPropertyEventHandler
    SdkError SDKAPI SdkSetPropertyEventHandler(
                SdkCameraRef                    inCameraRef,
                SdkPropertyEvent                inEvnet,          
                SdkPropertyEventHandler         inPropertyEventHandler,
                SdkVoid*                        inContext );
    //  Description:
    //       Registers a callback function for receiving status
    //          change notification events for property states on a camera.
    //  Parameters:
    //       In:    inCameraRef - Designate the camera object.
    //              inEvent - Designate one or all events to be supplemented.
    //              inPropertyEventHandler - Designate the pointer to the callback
    //                      function for receiving property-related camera events.
    //              inContext - Designate application information to be passed by
    //                      means of the callback function. Any data needed for
    //                      your application can be passed.
    //      Out:    None
    //  Returns:    Any of the sdk errors.
    A separate header file called SDKTypes.h contains the following data:
    typedef  SdkUInt32  SdkPropertyEvent;
    typedef  SdkUInt32  SdkPropertyID;
    typedef  void       SdkVoid;
    typedef  struct __SdkObject*    SdkBaseRef;
    typedef  SdkBaseRef    SdkCameraRef;
     SdkPropertyEventHandler
    typedef SdkError ( SDKCALLBACK *SdkPropertyEventHandler )(
                        SdkPropertyEvent        inEvent,
                        SdkPropertyID           inPropertyID,
                        SdkUInt32               inParam,
                        SdkVoid *               inContext );
    Thanks for your help.
    Alejandro
    Solved!
    Go to Solution.

    alejandroandreatta wrote:
    I am trying to call a fuction from a SDK.dll library using the Call Library Function Node. The SDK was provided to
    me and I do not have the source code, just the .dll and .h files.
    The SdkSetPropertyEventHandler function has a callback fuction as one of its parameters. How do I implement the
    callback using the CLF node? I am a good LabView programmer but this is my first time using the Call Library
    Function Node. I have read all the info I can find on NI's web site and the discussion board but cannot figure
    this one out. I am using LabView 8.6.
    Basically you do not do that. LabVIEW does not know pointers and certainly not function pointers. What you should do instead is writing a C DLL that implements the callback and also exports a function to be called by LabVIEW that translates between the callback and a LabVIEW user event. Look for PostLVUserEvent() here on the NI site to find examples how to do that.
    Rolf Kalbermatter
    Message Edited by rolfk on 02-11-2009 08:00 PM
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How to create an SQL Database using LabVIEW??

    Hi all,
    I have been using LabVIEW for quite a long time but now I am doing something which I am totally new to. I have a VI which gives out a table as output. What I am trying to do is, I want to create an SQL databse and save this table in the database and I want to pass the value of this table to the SQL Database once in  every 24 hours. As I dont have any knowledge of My SQL I am totally stuck.
    Can anyone help me by telling me how to do this.?? An example code will be well appreciated.
    Regards,
    Nitz..

    Hi Nitzz,
    what have you done and where do you have problems? Did you make a search here in the forum?
    http://forums.ni.com/t5/forums/searchpage/tab/message?q=create+database#message-list
    Mike

  • How to create fourier transform properties using labview

    Hi everyone
    i am a new user to Labview and i only have 2 weeks left to complete an assignment.
    This assignment involves the implementation of the various types of fourier transform properties using Labview. These properties include linearity, time shifting, frequency shifting, time scaling,
    I do not really know how to implement them using Labview
    PLS HELP!!!
    Thanks

    i am refering to the fourier transform properties listed below:
    A) time shifting
    x(t-a) ------- >  exp (-jwa) X(w) 
    For the time shifting property above, i have problem creating the exponential term using labview
    B) time scaling
    x(at)-----------> 1/a X (w/a)
    C) Time convolution
    Y(w) = F[h(t) * x(t)] = H(w)X(w)
    where * stands for the convolution operation and F stands for fourier transform
    Please provide diagrams if possible. Thank you
    PLEASE HELP!!!!!!!!  THANKS!!!!!!!

  • How to catch ACK signal by using LabVIEW?

    Hi everyone,
    I use 8451 to read/write and follow I2C protocol. Now, I want to catch the ACK signal. Does anyone knows how I should do by using LabVIEW?
    Thanks.
    Best Regards,
    Catherine

    Duplicate post.
     Regards
    JamesC
    NIUK and Ireland

  • How to measure PLL lock time using LabView?

    Hi.
    I have to measure PLL, especially PLL lock time, using LabView.
    How can I do it?
    Is there is some dedicated LabView Toolkit that can do PLL lock time measurement?
    Thanks :-)

    Hi Igor,
    you want to measure the time it takes the PLL to lock in to a change in the source frequency?
    So you need to measure the frequency and you need to know the state of the PLL. Then you can calculate the time the PLL needs to work.
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How to control darwin op robot using labview

    hey eveyrone,
    i have just started working on a project..
    i want to know how to control the darwin op robot using labview.. want to get a head start....
    thanx...

    Hi Preetisar,
    You can use LabVIEW robotics to start your project.
    You can find some informations from our website regarding this Software:
    Overview of the LabVIEW Robotics Module
    <link no longer exists>
    <link no longer exists>
    Robotics Fundamentals Series
    Regards,
    Rémi D.
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    >> Les rencontres techniques de NI - Mesures et acquisition de données : de la théorie à la mise en ...

  • How to get PC host name using labview

    hi,
    I have a need to display the pc host name(login name) in my application. How can i get it using labview in runtime i.e. if i write a program and execute it in different PC systems/same system with different users, then i should get the corresponding login names.
    Can any one help me on this?
    Thanks,
    Regards,
    Arvinth
    Solved!
    Go to Solution.

    Well, the PC host name and the login name are two different things, so which one are you trying to get? Darin's snippet gives you the login name. If you want the PC name use this method.

Maybe you are looking for

  • How to remove recovery partition of HP Pavilion X2 10

    HP Pavilion X2 10 comes with a 32GB drive, like many other Windows 8 tables, and only 14GB is available to users. The free space is decreases as I install and save data to the device, and quickly reached 3GB to a level that machine start reising wari

  • Why Would Crystal Change all "string" values to hexidecimal

    We are running Crystal Reports version 11 and using it to access a ISeries DB2 Database. We use the OLE DB (ADO) connedction to the ISeries. We have had several reports running for months, then last Friday when we ran one of the reports Crystal indic

  • Need help knowing best way to create record

    What is the best way to create a new record... I have a form pulling info from about 20 tables. When the user wants to create a new record, I want a new form to open and allow them to select the values based on the foreign key fields so it makes more

  • Font book problems 10.9

    Hi guys, Can anyone help with this issue of Font Book not loading fonts? They've all gone hideaway since upgrading, and as a graphic designer it's a nightmare as I only have a handful to choose from. I'm on 10.9.2 I use the Adobe CC apps. Help or a l

  • Path for WebApplication home directory?

    Hi I have a webapplication in which I need to create a directory at the same level as WEB-INF. The way I like to implement is that the path should be read from a .properties file. What path should be given such that the directory is always created at