Powders dosing machine? Direct control of motors?

Hi Everyone,
I hope this was not posted below but I begin my worki with nxt and labviev and have some problem.
I want to build a powder doser which consists of two powder feeders (driven by motors) and laboratory weight controlled by RS232.
The aim is to be able to make precise mixtures in a way that weigh weights empty box, make tare, then one feeder adds some powder (A) weight checks how much was given- if not enough adds some more etc..etc.. then proceeds with powder 2 and make mixture ..
The problem is that I know that I can write NXT program on labview to run NXT brick, but this would be quite complicated to use - the best way would be to take direct control over motor via NXT- so when I want motor to move few degrees it doesnt have to start program in nxt brick, just do it from LAbview program level... IS it possible ? Can I use NXT brick as a motor controller itself?
Thanks
Marek
Solved!
Go to Solution.

Marek,
This is possible both in the NXT Module 2009 and earlier NXT toolkits.  In 2009 you simply need to write your NXT code in a VI that is not target to the NXT (e.g. it is targeted to My Computer/Main Application Instance).  The NXT VI's know when they are targeted to the computer and automatically send Direct Commands to the NXT brick via USB or Bluetooth.  
In earlier versions of the NXT toolkit you will have to use the NXT Direct VIs to accomplish the same task, which isn't as seamless as the new method but works just the same.  Please let us know if you have questions as to how to implement this.
Cheers,  
Mark
LabVIEW R&D

Similar Messages

  • Motor direction control with proximity switches

    I have two prox switches and two relays that I can control in labview manually, however I have been unable to generate the code need to "latch" either of the relays depending on which prox was activated.  The application is very simple, I have a linear actuator that I am running to the end of the stroke until it activates the "extended" prox switch.  At that point I want to activate the second relay to reverse the direction of the motor until it activates the "retracted" prox switch. 
    I know this will take someone about two seconds to bust out the code but I have been failing for about 2 days on it.  Any help would be much appreciated.
    Thanks.
    Solved!
    Go to Solution.

    This application is for a test fixture that I am using to do life cycle testing with and will just run the actuator back and forth continuoulsy.  I will need to put a timer delay in there in order to not viloate the duty cycle of the motor but I beleive I can handle that part if I can just figure out how to program the relays.  One relay will be for reverse, one for forward and both on is invalid.  I have been playing around shift registers but have been unable to figure out the right logic. My latest attempt is shown below, dont be confused by all the stuff around the prox outputs and relay inputs, those are just the associated logic from communicating with my LabJack hardware.  My idea on how this should work is the VI starts, the motor starts driving (I dont care which way) as soon as it hits a prox it would switch the motor relays and the motor would reverse direction.  I am not worried about which prox initiates which direction just as long as the relay stays on until it hits the next prox. 

  • Using BNC2110 DAQ In Order to Control Stepper Motor

    So basically my goal here is to use LabView to control the direction and the steps of the stepper motor.
    I have BNC 2110 (connected to PC), Lin Engineering's 4218M-54P-04 Stepper Motor, and Lin Engineering's R701 Stepper Motor Driver.
    The specification documentations are attached.
    I know that the driver and the stepper motor are compatible.
    Is it possible to control the motor through Labview(PC) < - -> BNC2110 < - -> R701 Driver < - -> Stepper Motor, without the motor's own controller?
    An example of a controller for this particular motor would be on this website.
    I would much appreciate your support.
    Thank you.
    Attachments:
    4LeadBipolarSteppingDriver-linengineering--4218m-54p-04.pdf ‏652 KB
    DriverR701.pdf ‏379 KB

    Hi jhprks,
    It would appear that the stepper motor controller that you list communicates via RS-232 or RS-485.  You can make serial calls in LabVIEW using the Serial or VISA commands.  It could be something to look into.
    Further, we do have a multitude of ways to accomplish this with our hardware; here are a few resources to take a look at, with the first being an example of how to do this with a multifunction DAQ device:
    Using Software Timed Digital IO to control a stepper motor with DAQmx:
    http://decibel.ni.com/content/docs/DOC-6385
    Stepper motor control via Parallel port:
    http://zone.ni.com/devzone/cda/epd/p/id/3611
    High Performance Stepper/Servo control:
    http://sine.ni.com/nips/cds/view/p/lang/en/nid/10026
    Stepper Motor Theory of Operation:
    http://zone.ni.com/devzone/cda/ph/p/id/248
    Stepper motor Drives:
    http://sine.ni.com/nips/cds/view/p/lang/en/nid/3308
    Adam
    Academic Product Manager
    National Intruments

  • Controlling Stepper Motor

    Hi All.
    I am pretty new to Labview, and am looking for some advice in controlling a set of two stepper motors.  I have some experience with controlling stepper motors, but previously I used Matlab to create a binary script that was read into Labview to create a motion that I desired for the two motors.  Now I am hoping to control the motors using coordinates read in from another system (not an encoder, but a completely different system).  I basically just want the motors to follow the X and Y coordinates as they are read into Labview from the other system.  Any ideas are appreciated.
    Thanks!
    Jacob

    By LabVIEW driver I'm ssuming you mean the DAQ drivers and I'm also assuming since you're using a DAQ to control the motors you don't have an actual motor controller which means you will have to write the code to perform the function of a physical motor controller.
    Since it sounds like you're starting with a pretty low-level interface, I would say the next step is to write a wrapper that lets you input a) Step Direction and b) No of Steps to make in the direction
    Then you could use that function within what will ultimately be your "motor controller" which will keep track of where the motor currently is based on previous steps, and use that to enable the use of an absolute position your high level input.

  • How do you control the motor in the continuous mode ?

    I use the NI 7334, I would like to create the program to control the motor in the continuous mode. please help me.
    Thank you very mich.

    Hellow water2006,
    Thank you for using our discussion forums.  In regards to continuous mode, are you referring to a constant velocity motion?  There are several examples on our website which will give you a good start on setting this up.  In particular the "Constant Velocity Move" example which is found at http://zone.ni.com/devzone/cda/epd/p/id/1206
    I hope this helps.
    Regards,
    Vu D
    Applications Engineer

  • How to use sinewave to controll my motor run automatically.

    Hello
    I am now tring to use a waveform(sinwave ) to control my motor run automatically .I am using  labview2010 and EPOS50/5. Is there anyone can give me your suggestion? Thanks in advance.The attachment is the program for my epos.
    Attachments:
    epos and sinewaveform.vi ‏34 KB

    PS: My program for epos can work, but I don not know how to combine the sinewave program with the epos program to make motor run automatically.
    Thanks your suggestion in advance.

  • How do I control the motors in a third party usb toy with LabVIEW?

    Any suggestions?

    Hi, if you are only wanting to control motors than you have a lot of options. Use the parallel port with a current driver, use the serial port and a micro to control the motor. If you want to interface the USB device than this is where to get started.
    http://digital.ni.com/public.nsf/allkb/42B604435E3F9604862565E20043CD30
    http://zone.ni.com/devzone/cda/tut/p/id/4478
    LabVIEW 8.2,8.6,2009...still learning

  • Assigning digital port to control stepping motor

    Hi
    I want to control optical encoder, DC motor, Digital camera, Stepping motor, Electric lamp using LabVIEW and Data aquisition card. I am
    facing problem in interfacing stepping motor to DAQ device and configuring the digital output port using measurement and automation explorer.
    I am attaching the document showing configuration of measurment and automation explorer. I want to assign four line digital port for controling
    stepping motor. I want to assign DIO0,DIO1,DIO2,DIO3 for stepping motor. But the signal is going to other ports as well. Please somebody help me
    out of this problem.
    Jayaprakash.
    Attachments:
    Measurment and automation explorer.doc ‏99 KB

    Answered on your other post.

  • How to control DC motor in a simulation loop??

    Hi,
    I am Xiaofei, a beginner of LV. We plan to use feedback control on 2 DC motors using Simulation loop. Now the question is: i am not quite sure if the simulation loop is only a virtual simulation of the system, or it can be used to control the real system. We will use 2 encoders to detect the actual postion of the motor shafts, and the decoding code works well in a while loop, as the attached VI. But we don't know how to make it work in a simulation loop. Whenever we put it in a simulation loop and click "run", there's no response  no matter what we do on the system. So if you know, could you tell me if the simulation loop is suitable for our application and what we can do to run the encoders in it? Thanks a million!! 
    Xiaofei

    Hi Xiaofei,
    Thanks for posting on the NI forums!  Can you tell me a little more about your setup?  What do you mean by Simulation loop?  Do you mean Simulation Module or Simulation Interface Toolkit?  What hardware are you using to control the motors and read the encoder feedback?  What kind of motors do you have?  Can you read the encoder inputs in LabVIEW when you turn the motors by hand?
    Thanks,
    Maclean G.
    National Instruments
    Applications Engineer

  • How to Direct control to application's window after closing the popup?

    Hi,
    I am using 10.1.3. In my application I am unable to direct control to application's window after closing the popup, if I open any other window at the same time.
    For more info see the below step:-
    -> Open any popup in my application.
    -> Open any new window (lets say Google.com).
    -> Now restore popup on Google window.
    -> Now close popup
              - control goes to Google window but not the parent application window.
    How to direct control to the parent window?
    Can anybody help me regarding this?
    Thanx...Abhijit

    Hi Abhijit,
    You can do this using Javascript alone. Below are the two sample files I created.
    main.html_
    <html>
    <head>
      <title>Testing popup</title>
      <script type="text/javascript">
      function openPopup() {
        window.open("popup.html");
      </script>
    </head>
    <body>
      <a hr_ef="javascript:openPopup()">Open popup</a>
      <input id="something" name="something" type="text" value="something">
    </body>
    </html>
    Note: hr_ef should be href. The code tags are messing with the link.
    popup.html_
    <html>
    <head>
      <title>This is the popup window</title>
      <script type="text/javascript">
      function goToMain() {
        window.opener.something.focus();
      </script>
    </head>
    <body onunload="goToMain()">
      This is the popup window. Close this window to return to main window.
    </body>
    </html>The idea is to call a javascript function in the popup window that tries to focus on an object (eg. InputText) in the main html.
    Although, one point to take note is the naming of html objects by by these ADF UI Components. If you named your form id as "*form1*" and input text id as "*something*", your input text id will end up as "*form1:something*".
    Therefore, you will have to tweak the code above to the following:
    <script type="text/javascript">
    function goToMain() {
      window.opener.form1['form1:something'].focus();
    </script>Regards,
    Chan Kelwin

  • Control DC motor position

    Dear member
    I dont know how to control the position of motor, if inputing the Motor Driver Voltage into PWMA, I can only control the velocity of the motor, what should I do?

    Could you please provide some information on your hardware setup? Make, model number, required inputs etc.
    Also, could you please expland on what you mean by inputting driver voltage to PWMA? If you're having trouble controlling the motor, I recommend viewing the manufacturer's datasheet to understand the specifications of the drive/motor's input signals.
    Finally, could you please post the VI itself rather than screenshots.
    -Mike
    Applications Engineer
    National Instuments

  • How to use waveform to control the motor(EPOS2)

    Hello
    I am now tring to use a waveform(sinwave ) to control my motor in labview2010, I am using the EPOS50/5. Is there anyone can give me your suggeation? Thanks in advance.

    need more detail on the hardware (motor and data card) you are using. also What do you mean by using sine wave to control motor? 
    Kudos are (always) welcome for the good post. :-)

  • Motor direction controlled by Dial control

    how to control the direction of motor by using Dial control,for example, if the pointer locates the negative area, the motor would reverse.  Generally the direction of motor is determined by the values of AIN2 and AIN1 in micro chip, if the value of AIN1 is bigger than that of AIN2, the motor would turn in certain direction, if not, the motor would reverse. However, I want to use only Dial control to control the direction. What should I do?
    Solved!
    Go to Solution.

    Use the comparison function >0.

  • Write a Labview program to control both speed and direction of stepper motors

    Hello,
    I am currently undertaking a project in University. As part of it I have to run two stepper motors at varying speeds, and one of them in forward/reverse. The motor I have for the project is a RS 191-8334 (V9728) and the controller is a RS 240-7920 (v10900). I have no experience of using Labview, and the version I have on my laptop is Labview 10. Any help would be greatly appreciated.
    Ideally I would want a program to do both full/half steps, forward/reverse, have speed control and be able to control the number of steps.

    Hi Wef,
    I would need to know more information about the devices in order to assist you.
    What inputs does the stepper motor controller require and what hardware are you using to supply the required signals to the motor.
    Best regards,
    Stephen C
    Applications Engineer

  • Two controllers controlling single motor

    I have a problem in connecting two controllers with a single motor
    I am using two sbRIOs from which I get a  pid output varying from 0volts to 5volts(between AO & AOGND of same board)
    I want to give this output to a fan whose speed is under control through a BNC  cable
    how can I switch the output from one controller to the other in order  to drive my motor without manually changing the terminals....

    Hi Stephen,
    Thanks ever so much for getting back to me about this. Sorry that it's taken me a little while to reply.
    Basically the idea of my project is to produce a particle detector capable of detecting the direction of a radiation source.  The aim is to mount a 'scintillator crystal' within a PVC container so that it can be rotated by the motor.  The scintillator is a material that produces light particles when exposed to radiation.  The theory is that as the crystal rotates the depth of the crystal, relative to the radiation source, will change.  This, in turn, will alter the quantity of light photons produced and this will be measured by a photomultiplier tube which will detect and count the light photons and convert them to a current.  My intention is to convert this signal to a digital output that can be returned to the computer and logged, ideally within Labview. 
    The data should be quick to recover so I don't need to leave a long delay between movements, neither do I need the crystal to move quickly.  I just need to  know it's position at any particular time.  I was hoping to initially reach a situation where the motor can be controlled.  This would allow me to complete the project and log the data manually if necessary, and then alter the program later to provide a data logging function. 
    Thanks again for all of your help
    George

Maybe you are looking for

  • Oracle reports calling problem from FORMS

    Hies Guys I've a problem in oracle report calling from Oracle FORMS. I am using reports and forms 6i. When the report name length is more than 30 characters the report engine runs first time correctly but on the second call of report the system gives

  • X48 platinum LGA 775 mboard will only post in safe mode

    I recently had a problem with my power supply (helped out by members of this forum) and have since changed it. Then the stock cpu cooler seemed to be playing up as the system would only post every tenth (or so) attempt. I therefore went out and purch

  • Table or Function Module to get Condition Values of Quotation

    Hi MM Gurus I created RFQ. Then I maintained Quotation for few Vendors. In the Quotation, I used tax code relevant to taxes in India (TAXINN procedure). I am asked to develop a Z report with the help of ABAPer to compare the quotations with Gross pri

  • Deploy JavaFX application to JSP

    A lot people saying it's possible just by using the snippet below, <script src="http://dl.javafx.com/dtfx.js"></script> <script>     javafx(               archive: "Foo.jar",               draggable: true,               width: 200,               heig

  • Using a different icon

    Hi everyone, I have just created 3 captivate movies & a menu for a client & I have just been aske if it would be possible to use there own icon rather than the standard captivate image that is used when the exe file is created. I did not notice any o