Ideas for driver control of motors stepper with USB-6009

I have a stepper motor driver that supports a digital input for the control signal.  Each rising edge on the driver entry corresponds to the movement of a single step.  I have two devices USB-6009.  Is it possible to generate a digital signal with the 6009 faster than 150 Hz?  I need produce variable frequency in the interval from 0 to 1 KHz.

zaphead,

The OID on your 6009 being timed sofware it comes out as fast as your computer all supports.  If a computer faster or less current will help things but you will get not the 1 kHz you need.  The best way to get this is to use another card that supports hardware timing DIO.

Tags: NI Hardware

Similar Questions

  • Control digital I / O on USB-6009-OEM

    Hello.

    I use a USB-6009 OEM in a project I'm working on that.

    And I have a quick question regarding controlling the i / O on the acquisition of data.

    Currently, to be able to control each IO individually, I open a task for each e/s to the beginning of the program and make them go away in a cluster for later use.  But my VI of open task begins to grow significantly in size.  So I'm curious to know if it is really the best way to do it.  Open a task for each e/s, the only way to do it, if you want to be able to write on a PIN without messing with the values on the other pins on the port?

    BR,

    Øystein Johnsen.

    Hey Cath,

    No, you need not read any port values.

    You must keep track of them in your VI in storing the previous values in a shift register!

  • measurement of current with usb-6009

    Hi, my name is hung and I am a student in electrical engineering... I'm doing a thesis that the project using Labview and acquisition of data NOR UBS-6009 to simulate the function generator, Oscilloscope, Digital Microsoft (DMM)... and now I'm simulating DMM. I managed to measure the voltage and resistance which i use voltage divider method, but I encountered a problem with the current measurement. The problem is the USB-6009 to measure use the current, it measures an incorrect value. I tried to use the current CQI 0-20mA Sample.vi example but it always measures an incorrect value. If NI USB-6009 supports for the measuring current? Is there a way to measure the currents using USB-6009? Please, help me. This thesis project is so important for me. Thank you.

    Hung,

    Since you are a student in electrical engineering, I'll show you how to know the answers to your questions.

    1. review the specifications for the USB-6009 case.  In particular look at the specifications of analog input.

    2. How would you measure current if you had only a voltmeter?  Use the same method with the USB-6009 case.  (Tip: apply the Ohm's law).

    General comment: when using any measuring instrument, always consider maximum permitted values at the entrances so that the instrument is not damaged

    and the measure is accurate.

    Let us know how you do.

    Lynn

  • Oscilloscope for the acquisition of data from the usb-6009 or - example of temporal division for 5 seconds, 10 seconds

    Hey Hey everyone

    I was looking for an example for two-channel oscilloscope virtual using e/s all-in-one of the 14 bits of NI DAQ USB 6009. I tried to research for example BOF time division or s/div for 1 second, 5 seconds, 10 seconds.  but was shocked to find that there is no reference for it. The range of oscilloscoper virtual

    Minimum - 10 micro s / div maximum -10milli second div but there is no example for 1 second / div or 5 seconds / div...  If anyone can guide me. I'm new to labview environment.

    This is the oscilloscope two sample obtained from google search. is there material limitations. ?

    I'm working on continuous 4-channel data acquisition data acquisition using niusb 6009

    The sampling frequency is sufficient for any desired s/div. The sample rate is 12 ksamples / s per channel, so if that meets the Nyquist criteria for the input signal, you can capture it. The number of samples has no effect on that with the exception of the amount of the signal you acquire. Your chart is not stable, if you do not trigger the acquisition. Even as real significance, therefore your emulation seems actually successful.

  • Order of Python with USB-6009

    Hello

    I try to use the USB-6009 in Python 2.6 housing environment in Win7 64 bit system and I am facing problems with the following command.

    The following questions, I see the following error command

    1. DLL = windll. LoadLibrary("C:\\Windows\\System32\\nicaiu.dll")
      ...
      ... #command with return value! = 0
      error_str = c_char_p ("")
      b_size = c_uint (2048)
      ret_a = dll. DAQmxGetExtendedErrorInfo (error_str, b_size)

      After the last command python, I get the attached error message
      I'm doing something wrong?

    Thank you for the help,

    Hi Katerina

    You can try to replace "c_char_p" by "create_string_buffer." According to the Python reference library , "you should be careful, however, not not transmit (edit: c_char_p) functions expected of pointers to final memory.» If you need final memory blocks, types has a create_string_buffer() function that creates these in various ways. »

    from ctypes import *
    
    dll = windll.LoadLibrary("c:\\windows\\system32\\nicaiu.dll")
    error_str = create_string_buffer(2048) # try this instead of c_char_p("")
    b_size=c_uint(2048)
    task_handle = c_uint(0)
    error = dll.DAQmxStartTask(task_handle) #this will result in an error
    try:
        dll.DAQmxGetExtendedErrorInfo(error_str, b_size)
        print error_str.value
    except:
        print "oops"
    

    Let me know if it helps.

    Kind regards

    Sunil

  • measure resistance with USB-6009

    I am measuring the resistance of a photocell using the USB-6009 case. There is an option of "resistance" in the DAQ assistant, but it does not display the values on the right. Here's what I do:

    Connections: GND - photocell - ai0

    I'm really not sure if this is right, but I assumed that he could measure the resistance as a multimeter. I have not tried doing a divisor of tension and using the Ohm's law.

    DAQ Assistant settings: I 'add channel' by using the more blue and choose "resistance". Then, I chose ai0 under USB-6009. I set the max and min values and read it all the time. First problem, playback is generally negative and it flickers a lot. I read about - 1.3 k when I do that with a k resistor 10 regular (not a photoresistor)

    Obviously there is something wrong, but I'm very new to all this and cannot figure it out by myself. Any help would be much appreciated.

    Thank you!

    The 6009 cannot measure the resistance as a multimeter unless you can prove that a current as the wizard by default source is set to. In itself, it can measure a voltage. Then, use a voltage divider.

  • Problem with MX DAQ with USB-6009

    Hey guys, I'd be happy if someone of you can help me!

    I want to measure the tension of a place and it was working fine, but now I want to measure the temperature of the room too... and that's my problem.

    When I put 2 virtual channels DAQ, that it won't work, I get an error when I tried to read the voltage and the temperature.

    Error-50103 occurred at DAQmx Read (analog 1-d Wfm NChan NSamp) .vi:1

    Possible reasons:

    The specified resource is reserved. The operation could not be performed as indicated.

    Task name: _unnamedTask<17C>

    If I click on continue, I get the same error again and again and again...

    Can someone help me on this?

    How can I track more than one thing with DAQ MX?

    Because when the measures only one thing it works, but when I try 2 or more, it's crushing.

    I download the vi and an image with the code!

    Thank you

    You should do something like that. I don't really know if the data is sorted by the column or lines when you return a 2D array. This is for temporary data in the last column. If it is sorted by lines, then wire the '7' in the line of the array Index. Or, move the table to Index at before the transposition table.

    You can use the function remove the table to remove temp data before moving on to the loop for. It is up to you. The for loop you have is built also hurt. Make use of the functionality of an Auto-Index loop and you don't need over to Terminal n of the loop and eliminates the Index table inside the loop function for.

    Spend some time and take the LabVIEW tutorials and look at examples of delivery to get an idea of how do the work of loops and options for indexing tables.

  • photodiode of reading with USB-6009

    I'm reading the voltage output of a photodiode using the analog inputs on a USB DAQ 6009 of Labview.  I am able to read the voltage of the batteries using data acquisition, but when the photodiode is connected with the acquisition of data, I get a noisy signal (see photo).  The photodiode works fine when I connect a voltmeter (voltage response IE with light).

    This could be a problem of air conditioning or impedace signals between DAQ and photodiode (attached sheet).

    Any suggestion would be appreciated.

    Thank you

    You can also consider your signal filtering if there are too many 60 Hz noise.  You can put a simple filtering on the input circuit or use one of the many digital filters applied to your data shipped with labview.  This could help depending on the nature of the desired signal (pulse of IE, DC, curves of decomposition...)

  • NI MAX with USB devices access violation

    I found a lot of messages about access violation, but most of them are about LabView and not MAX OR, as is the case here.

    I get an access violation error (0xC0000005 at PPC = 0x106399AE) whenever I try to create a new task of MAX OR by selecting a USB DAQ device. I tried with USB-6009 and USB-6211, same problem. The device is properly recognized (test) but when I try to create a new task I complete all the procedure, and when cliquerai I finish I get the error. This also causes LabView programs that use the tasks of MAX OR crashing.

    First of all, this happened after the NI DAQmx drivers update to a new version, but then I recognized that this version was incompatible with Labview installed on this machine (8.6). I tried to fall back by using a restore point in windows and reinstall the 9.5.1 DAQmx drivers (the latest drivers supported by the version of LabView.

    I tried to 'Reset Configuration data' MAX OR (under the Tools menu) without success. The WindowsXPUSBhotfix is also installed in the system. Any help?

    I also sent a support NC ticket: c82f5b4f-d774-40a2-8341-4dbeee9df876

    Specifications of the PC:

    Windows XP SP3

    LabVIEW 8.6

    NOR-DAQmx 9.5.1

    The error was eventually resolved by uninstalling OR MAX and LabView and then reinstall all the software needed. In particular, the configuration that worked was:

    -NI MAX 5.1 (includes NOT-DAQmx 9.5.1)

    -LabView 8.6

    -2.6 OR-488. 2 (including NI-VISA 4.4.1)

    the last of them was necessary to connect to another device to purchase. With the above configuration, the wizard DAQ worked and generated a task, but when the program was launched, the task was not able to recognize the good device (unit name is an empty string). So I converted it to a NOR-DAQmx task, and now it works. (Don't really know if this quick passage would have been a good work around from the beginning.)

  • temperature sensor with the acquisition of data usb-6009

    Greeting

    I want to use a sensor with usb-6009 to save the variation of body temperature about 15 minutes and then use these data in labview.

    If you please you can advise me with the best low-cost use and the way/circuit sensor connect it to the usb-6009.

    Hi ba7soun,

    If you can use with USB-6009 LM35 depends on the range of output voltage of the sensor. I understand that it requires a 5V supply with respect to the ground, which you can provide to the USB-6009 (more than 200 my should not come from the USB-6009).

    The maximum range of the USB-6009 is - 10V to + 10V, while the minimum range is - 1V to + 1V, also probably the output signal of the LM35 will be in this range. What you need to do is to compare the full range of the output signal with the range of the DAQ divided by 2exp (14) (because it is a 14 bit ADC) and ensure that the first is much more than the latter.

    Kind regards

    Condette Dhruv.

  • Control of Stepper Motor with case NI USB-6009

    Hi all

    I am currently creating a movement control system with a double movement actuator

    http://www.haydonkerk.com/LinearActuatorProducts/StepperMotorLinearActuators/DualMotionLinearActuato...

    and two bipolar chopper drives (see table), which should power the motor. We already have a NI USB 6009 in our lab, so I was wondering if I could use it to send signals to the two pilots to control the speed and direction of each axis on the engine?

    Enclosed driver's manual indicates that input signals should be 0-5 V DC (TTL logic). I have been informed by the engine distributor that the 0-5 V DC TTL drivers required, the signals are analog. The NI USB-6009 manual reading, there are two 0-5 V analog outputs on the acquisition of data usb so I could provide two signals?

    There are often posted however similar problems, it is usually a digital signal NI6009/6009 sends the driver. Looking at the driver's manual, can someone tell if an analogue signals or required as I have said, I was misinformed or 0-5 v DC signal will be enough. I can get more in touch with the dealer if you have any questions you guys think I should ask him.

    Thanks in advance for any help! It is much appreciated.

    I looked in the manual and it doesn't seem to be very clear. I know that the USB-6009 case is capable of AO and DO, then you would be although it is. I could contact the Haydon Kerk support for more concrete details on the gap between what says the manual and what they told you.

  • Qosmio G40 - which driver can be used for remote control?

    Hello

    Which driver should I use for remote control?

    How to configure with the PC?

    Thank you very much.

    I assume that you need remote control manager.
    This tool is preinstalled on your Qosmio laptop?

  • control of DC motor speed with a controllable power

    I'm looking for a way to control a "toudeft PL330P Thurlby" controllable power in labview. My knowledge of labview is very little and I'm sure that's probably not so difficult. I need to be able to vary the tension passes to food so that I can control my motor speed continuous.
    I plugged the power supply via a GPIB interface cable. (OR-488. 2) and I'm using LabView 8.5.

    Dose anyone know how I would go all this? Or could provide useful examples.

    Thank you.

    James.

    Get the driver LabVIEW using ' help > find Instrument drivers... ". "or here: http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=E3B19B3E97F2659CE034080020E748... "

    I didn't load them, but usually there are a few simple screws to send commands to your hardware.  ALWAYS look for drivers of instruments for the new hardware.  It allows you to save a lot of tedious work if they are available.

  • Driver for my HP DeskJet 1280 work with windows 8 pro 64-bit

    I need an updated driver for my HP DeskJet 1280 work with windows 8 pro 64-bit, has issued summer yet?

    No, and it will not be because the 1280 is an abandoned product.

    What you have to do is to go to control panel > devices and printers > add a printer.

    When in the process, you can use Windows Update to search for a driver, take it. The list of compatible printers is growing exponential, and your should now be in the list of printers HP or Hewlett Packard... This may take a few minutes to grow...

  • How to block sites of specific discussion on mozilla firefox with flash player, for parental control

    I need to block sites internet chat specific for parental control, how?

    Thank you

    See block / unblock websites with parental control on Firefox

Maybe you are looking for