Control venetian blind using DC motor

hello everyone..im from malaysia
im want to know how to create VI which i could control DC motor..
the DC motor will control the venetian blind according to lux density..it will open angle by angle syncronize with the lux density and time 
for example..on normal weather(malaysia, without rainy)on the morning the blind will open 45* (*=degree)..on noon the blind will open approx less then 45* since heat penetriate from the sun..while on evening the blind should open max to get full illuminations..
could anyone help me on what function should be used or maybe some basic and moderate example of yours?
undergraduate local student inspired to use LabView for final year project
nubies here need guidance.
Solved!
Go to Solution.

Hi,
Please do not create duplicate post (http://forums.ni.com/ni/board/message?board.id=240&message.id=8183).
You provided information on your project and what to be achieve in your project but you did not mention what hardware you are using. Eg, which DAQ card you are using, what software (ie. LabVIEW or others), etc.
Split your project objectives into smaller projects, like 1 for controlling DC motor, 1 for reading lux density. Make sure all these can be done individually before you merge them together into a single project.
What functions to use will depend on what software and hardware you are using.
Regards
Lee

Similar Messages

  • Venetian blinds

    Has anyone got the script for making venetian blinds?
    Is there a tutorial for this?

    Mmmh, certainly some BorisFX plugin or something like that exists, but should be simple enough to put together using a linear wipe before the blinds and rigged with a expression control for the edge of the linear wipe. Also do not forget Card Wipe/ Card Dance that would allow something similar just by defining a custom map...
    Mylenium

  • Error -70006 when using stepper motor in Open Loop Mode

    We have a LabView program that runs a test in which a table is rotated. At the end of the test, the table is supposed to rewind. Instead, the following message appears:
    Error -7006 occurred at Read Trajectory status.flx
    Possible reasons: For FlexMotion, an invalid axis number or other resource ID (Vector Space, Encoder, I/O Port, and so on) was used.
    We have the PCI-7344 interfaced with a UMI-7764 and a Zeta4 that is controlling a ZETA83-93 stepper motor. There is no encoder in the system for this motor. The stepper loop mode was originally set to closed loop but the motor behaved erratically (moving multiple times when instructed by MAX to move once). The stepper loop mode was changed to open loop and the m
    otor started behaving properly, but that is when the error message starting appearing. Are there any other configuration settings, such as Primary Feedback (which is now set to Encoder) or ? that I may need to correct to resolve this error?

    First of all I would check a couple of things. The reason why your motor was not behaving properly in closed loop stepper configuration is most probably related to the fact that you don't have the encoder counts per revolution adn the stepper steps per revolution properly configured for your motor. Please follow the instructions found in the following knowledgebase:
    http://digital.ni.com/public.nsf/websearch/29edb56​146f274a386256a1c00624310?OpenDocument
    When you configure an axis in closed loop stepper mode, we use the information of the encoder to generate the adequate velocity profile. If the encoder counts and steps per revolution are not properly matched, then the motor will not execute the moves properly. What you need to do is the following:
    1.-Configure your axis as closed loop stepper in the Axis Conifguration Section in MAX.
    2.- In thbe 1-D Interactive Basic panel, kill the motor and click on reset position.
    3.- Manually rotate the motor one revolution.
    4.- In the advanced panel on 1-D interactive, read the Encoder Value. This is the value you should enter on the Axis Encoder Counts per Revolution under Axis Configuration. Press Apply.
    5.- Go back to the 1-D interactive Basic Panel. Change the bullet selector unbder Stepper Loop Mode from Closed to Open. Run a 10000 step move.
    6.- When the move is finished, read the encoder counts from the advanced panel. This will tell you how many counts you have in 10000 steps. You can now calculate the stepper steps per revolution by the following formula:
    (# of steps per count)*(# counts per revolution) = # steps per revolution.
    Your motor should work fine in closed loop stepper configuration now and the error should not appear. Please make sure you are using the latest version of our driver (Ni-Motion 6.0.1)to avoid older firmware errors and fixed bugs from affecting your system. You can get it from:
    http://digital.ni.com/softlib.nsf/webcategories/85​256410006C055586256BB9002C16DF?opendocument&node=1​32070_US

  • Ssr control without the use of pwm

    i want to control the heater and a DC motor using the SSR. on checking for the solution i find that PWM with varing duty cycle is the best option but i don't know nothing about PWM and also how to program it on LabVIEW. i have a NI 9403 and NI 9478 DAQcard and other AI/AO cards. i am thinking of controlling the SSR using one of these cards. i am trying to use a simulated signal block (LabVIEW 2010) square wave, try to vary its duty using a PID. now the question is how to send this simulated signal to the SSR using the Available DAQ cards with me. i want to skip usage of PWM because i dont have the time. i want to start the experiments as fast as possible.

    this is the vi that i am using to control the heater for temperature control. the DAQ assistant is measuring the temperature using NI 9211 and this temperature is matched with the set point and adjust the duty cycle of the simulated signal, (square wave just like PWM),
    i am not actually using a PWM just creating something like PWM, the frequency that i have set is just a hit and trail (i dont know how much to set).
    the DAQ assistant2 controls the SSR which in turn ON/OFF the heater according to duty cycle.it's working fine. the same concept i am trying to use in the case of controlling the RPM of a DC motor.
    the rpm from the motor controller, that i have, will be fixed to 100 rpm. i will set the setpoint to 60 RPM in the PID, the PID will vary the duty cycle of the simulated signal and will controll the RPM but the question now arise is:
    1) from the experience obtained from heater control that i had done, there will be no current flowing to the DC motor because the SSR get fully closed (duty cycle 0) as soon as the process variable goes above the setpoint (60 RPM) and again opens to full (duty cycle 100) as it falls below the set point. i want it to at 50% duty cycle at at set point(60 RPM)  and as the RPM decreases it should increase the Duty cycle to adjust the RPM back to 60.
    2) now how to acheive this.
    i am simultaneously measuring the current and voltage that is going to the DC motor. if the duty cycle goes to zero ( SSR gets closed), i will not be able to measure the current and voltage going to the DC motor. that's why i want the duty cycle to be at 50%.
    Attachments:
    8 june pid cntrol heater.vi ‏127 KB

  • How can i control a 3rd party stepper motor driver

    I want to control a 3rd party stepper motor hardware driver througt labview.The company has given me a C program.Can somebody help.I'm new to labview.
    Thanks in advance
    Rajan

    Hi Rajan,
    The LabVIEW may be able to control the motor depends on the bus used for communication and what the C program does.
    For example, if you connect to the motor using a simple bus, such as RS-232 (serial), then you could use LabVIEW to send the commands to the instrument. For this you need the motor's command set, which should be in the motor's documentation. You can also look into the C example program you were giving and determine if commands are being sent directly using the serial port.
    Another way the manufacturer might provide conectivity is using a driver. In this case, the manufacturer provides you with a library of functions that reflect the functionality of the device. You don't need to worry about the specifics of the communication bu
    s. You just call the functions from this library. In this case, you can use LabVIEW's Library Function Call Node, which allows you to call C functions in dlls.
    If you can include more information on how the motor is connected to the instrument and what the C code does, I could probably provide more details.
    DiegoF
    National Instruments.

  • How can I control a driver using Matlab?

    For a lab project I have to program in matlab a driver (esp300 by Newport - http://www.newport.com/store/product.aspx?id=3229) that commands a motorized stage of the same company. The interface is GPIB. I rather control the driver using only matlab, but if i can't - i wan't to use Labview as a connector between the two. any idea how can i do one of the above? I've got no idea where to start from. I'll thank to any given advise. 

    What is the analysis that ou need to perform. The resources that are available to you from within LV is very complete!
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • I there, my question is quite simple, I would like to know if the "apple remote control" can be used with a mac mini and , if so, it can be used to control also the "logic pro" functions (e.g. record, start, stop etc). Thks a lot, Danilo

    I there, my question is quite simple, I would like to know if the "apple remote control" can be used with a mac mini and , if so, it can be used to control also the "logic pro" functions (e.g. record, start, stop etc). Thks a lot, Danilo

    Good work, thanks for the report.

  • What control is being used here?

    I'd like to create an interface similar to the Windows Maps app where a sidebar displays when the user puts focus on a search box. I can't seem to figure out what control they're using. At first I though it was a Flyout, but it is not dismissed when the
    user clicks off of it. Can anyone tell me what control it is?

    Hi joshberry,
    Could be a Popup with
    IsLightDismissEnabled property disabled.
    --James
    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.

  • What version control system you use?

    We are 20 developer and we use bitkeeper as a version control system.
    But we have 4 envirronnement.
    dev/test/pre-prod/prod.
    Sometimes, 2-3 projects are affecting the same packages.
    And different packages version is all over the place since we have 4 envirronnements.
    What version control system you use for packages?
    Would be cool to have a version control system intergrated to our tools, like toad, pl/sql dev or sql developer, is there one for those tools?
    Is the tool you using it doing all you want it to do?
    Have any link for me to check out?

    Hi,
    I recommend SourceAnywhere Standalone to you. It is an SQL-based source control application that provides all of the key features of VSS, plus much more. It is well integrated with Microsoft Visual Studio 6/2003/2005/2008, Dreamweaver and Eclipse. Here is the home page of SourceAnywhere Standalone:
    http://www.dynamsoft.com/Products/SAWstandalone_Overview.aspx
    The Hosted edition, SourceAnywhere Hosted that is delivered as a SaaS application is also available.
    http://www.dynamsoft.com/Products/SAWhosted_Overview.aspx
    You can take a look.
    Thanks,
    Catherine Sea
    www.dynamsoft.com
    the leading developer of version control and issue tracking software
    Message was edited by:
    Catherine Sea

  • I currently have an iPhone 4s, ipad2 and 2nd gen iPod touch connected to a dock. Can I control the iPod using my phone or iPad if I have iTunes open on laptop?

    I currently have an iPhone 4s, ipad2 and 2nd gen iPod touch connected to a dock. Can I control the iPod using my phone or iPad if I have iTunes open on laptop?

    The Tango app might be of some help with that:
    http://www.tuaw.com/2010/11/08/tango-links-your-ios-devices-for-remote-music-con trol/

  • Creating a user defined control in java using java Beans

    Hi,
    I want to create a user defined control for drawing a line like a line control which is used in Visual Basic. I have created a program which will be drawing a line in runtime..but i cant use the same program in the beans to act as a user defined control to work as a line control ..b'coz i extend the class with JPanel..so when i drag and drop the control i am getting the panel only...so can u give me some ideas to create the line control...i am attaching the code which i created ...so pls do make some modification or correction to work as a line control....
    Thank u in advance..........
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import java.awt.image.BufferedImage;
    import javax.swing.*;
    import javax.swing.event.*;
    public class Line extends JPanel
    BufferedImage image;
    Color color;
    Stroke stroke;
    Point start = new Point();
    Point end = new Point();
    public Line()
    color = Color.blue;
    stroke = new BasicStroke(1f, BasicStroke.CAP_BUTT,
    BasicStroke.JOIN_MITER);
    protected void paintComponent(Graphics g)
    super.paintComponent(g);
    if(image == null)
    initImage();
    g.drawImage(image, 0, 0, this);
    // Draw temp line over image.
    Graphics2D g2 = (Graphics2D)g;
    g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
    RenderingHints.VALUE_ANTIALIAS_ON);
    g2.setPaint(Color.red);
    g2.drawLine(start.x, start.y, end.x, end.y);
    public void setTempPoints(Point p1, Point p2) {
    start = p1;
    end = p2;
    repaint();
    public void draw(Point p1, Point p2)
    Graphics2D g2 = image.createGraphics();
    g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
    RenderingHints.VALUE_ANTIALIAS_ON);
    g2.setPaint(color);
    g2.setStroke(stroke);
    g2.drawLine(p1.x, p1.y, p2.x, p2.y);
    g2.dispose();
    start = end;
    repaint();
    private void clearImage()
    Graphics g = image.getGraphics();
    g.setColor(getBackground());
    g.fillRect(0, 0, image.getWidth(), image.getHeight());
    g.dispose();
    repaint();
    private void initImage()
    int w = getWidth();
    int h = getHeight();
    image = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB);
    Graphics2D g2 = image.createGraphics();
    g2.setPaint(getBackground());
    g2.fillRect(0,0,w,h);
    g2.dispose();
    public static void main(String[] args)
    Line wbclient = new Line();
    DrawingListener listener = new DrawingListener(wbclient);
    wbclient.addMouseListener(listener);
    wbclient.addMouseMotionListener(listener);
    JFrame f = new JFrame();
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    f.getContentPane().add(wbclient);
    f.setSize(400,400);
    f.setLocation(200,200);
    f.setVisible(true);
    class DrawingListener extends MouseInputAdapter
    Line wbclient;
    Point start;
    Point end;
    final int MIN_DIST = 5;
    public DrawingListener(Line fh)
    this.wbclient = fh;
    public void mousePressed(MouseEvent e)
    start = e.getPoint();
    public void mouseReleased(MouseEvent e)
    end=e.getPoint();
    if(start.distance(end) > MIN_DIST)
    wbclient.draw(start, end);
    public void mouseDragged(MouseEvent e)
    wbclient.setTempPoints(start, e.getPoint());
    }

    %TYPE is PL/SQL syntax, which thus cannot be used inside SQL.
    The other way around, SQL can be used inside PL/SQL.
    Regards,
    K.

  • Speech Recognition Control for commercial use

    I would like to use Speech Recognition Control for commercial use. Is it possible?

    Hello deadean,
    We suggest that you post your question in the
    Speech Service Forum.
    The
    Bing Speech Recognition Control is a separate product from the
    Microsoft Translator service, but we can point you to their terms of use, which is posted on Windows Azure Marketplace.
    Thank you.
    Microsoft Translator team - www.microsoft.com/Translator

  • How to control movie clips using mause scroller...?

    ....please look
    http://www.nagaoka-id.ac.jp/gallery/gallery.html
    ...how to control movie clips using mause scroller...?

    Hi Ldavinci, I have noticed your posts on that particular
    site before. Just chiming in here... don't be afraid of Flash Help
    menu. There's a wealth of information there and I've found it much
    faster than waiting for a response from the forum. Then if it still
    doesn't make sense, at least you have a basic idea of specifics to
    ask.
    If you search for mouse wheel, you'll see an example under
    the Actionscript 2.0 Language Reference on this topic. That said,
    here's the example:

  • Mavericks: "System Events" would like to control this computer using accessibility features?

    I just installed Mavericks on my MacBook Pro and was in the process of exploring changes when suddently this message popped up:
    - "System Events' would like to control this computer using accessibility features. Grant access to this application in Security & Privacy preferences, located in System Preferences.
    The two choices offered are "Open System Preferences" and "Deny."
      Any idea why this would be triggered?  I don't like clicking to grant access without understanding what's going on.
    Thanks.
    Message was edited by: Bob Mayo

    Dribble666 wrote:
    Why would I want to do this?
    Only if you want intrusive, incompatible, memory hogging software on your Mac.
    Would this open a back door up to Google?
    Yes. More than one.
    Google software (Chrome, Google Drive, and Google Keystone Agent in particular) is bad news for Macs, and a frequent flyer on these discussions.

  • CAN WE START AND STOP THE CONTROL CENTER SERVICES USING OMB?

    Hi All,
    I'm new into the world of OMB and currently i have been working with OMB scripts and i just need to know whether i am able to start the control center services using OMB...?
    Any help will be highly appreciated.
    Regards,
    Shenoy

    Thanks ALL, I GOT IT, but I used other solution.
    Since I installed and uninstalled the Oracle several times, it keeps also many different Services for the listener. I don't know why, it didn't create a Service for my actual instalation with its path. In other words, all the services remained in the services.msc panel, had the path that was already removed from the Windows folder.
    Then what I did, was that I picked one service, took its name (OracleOraDb10g_home1TNSListener), went to regedit to [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\OracleOraDb10g_home1TNSListener] and simply changed the image path that was setted for the one that was removed (C:\oracle\product\10.1.0\Db_2\BIN\TNSLSNR ) for mine that is installed right now
    (C:\oracle\product\10.1.0\Db_1\BIN\TNSLSNR). Nothing more and finally works.
    I have tried something in the services.msc panel before, as you can see in this forum at the thread "I can't start listener in the Control Painel/Admin Tools/ Services", but I never got
    success.
    Appreciate your time!!

Maybe you are looking for

  • Can I rearrange pages when I merge files with Adobe PDF Pack?

    Hi Have purchased PDF pack as an upgrade, but not happy with what it does as doesn't seem to be any better than what I had before When you merge documents there doesn't appear to be any tool to rearrange the order or to delete any pages you don't wan

  • Cannot see text in large PDF file

    Hi all, I've searched Google and these forums, but I have yet to find anything relating to my issue. I'm trying to view a PDF file, but I cannot see any text in Adobe Reader. I've viewed it w/ the FoxIt reader, and I can see all text there. Any idea

  • Colour Calibration / White Point setting - Is Imac Display really professional quality

    I am trying to calibrate my imac 27" using i1 Display2 calibration software. I am trying to set a traget of 6500 using the software but it advises the current is only 5600 and suggests moving the RGB sliders to get this current white point up to my 6

  • AddProvider in a signed applet(cab file)

    Hi, I have been trying to sign an applet such that I can use the JCA from within an applet. My goal is to encrypt a file and then ftp it to a server. I am currently able to "read" the file from the client's system and then ftp it. I have created a te

  • Imp full=y issue.

    Dear All, Database: 10.2.0.1 OS: AIX 5L i am exporting a full db dump from Server A to Server B. for this purpose i created a user dbadmin on both source and target database and granted him (EXP_FULL_DATABASE & IMP_FULL_DATABASE) privlegs. Server B i