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!

Tags: NI Software

Similar Questions

  • 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.

  • Reduce the period of sampling of the digital inputs of NOR-USB-6009

    Hello

    I need to read a line of digital input in the NI USB-6009 using NOR Express 2013 Signal box. I selected 1 sample (upon request) as acquisition mode. I need to define a smaller sampling period as 1 MS, but it gives error too short sampling period: "the current sampling period is too short.  Please specify a longer sampling period. ».
    I do not understand the reason for it and a way to slove this.

    Any help would be greatly appreciated!

    Thank you!!

    The 6009 doesn't have a clock that you can set for a sampling period. According to the specifications, the digital I/o is software programmed - sample on request you use now. I'm not at all familiar with SignalExpress but I don't think that you can find near a reliable khz sampling frequency on Windows or any other os non-deterministic.

  • Configuration of the digital output in the USB-6009

    I have a card for the acquisition of data USB 6009. It seems that him when DAQ card is turned on, it is always default to digital output of 'High' or 'floating '. I want to default to 'low '. Is there some setting I want to 'program' the hardware DAQ to have all the outputs low when it is powered on the value? Right now I have manually enter MAX and adjust the level 'low '. Thank you very much for your help.

    Sid05,

    Yes, it's low of 820 ohms. Unfortunately, the way in which the system is built, it is the only choice you have without having to build external circuits such as SnowMule suggested.

    AK2DM,

    Thanks for pointing the USB-6000. Finally a real, if limited, the DAQ hardware.  Nevermind, he was only 4 DIO lines.

    Lynn

  • Default settings for digital lines? USB-6009

    Hi all

    I use the digital lines on my USB-6009 to control normally open SSRs.  When I turn on the system, I would like to have the digital lines on the USB-6009 case to automatically configure themselves to be output digital lines put in position "Low", so I don't spend on my SSRs until I gave the command.  Is there a way to do this?

    Thank you.

    Cannot set default on 600 x Renault States, unfortunately.

    Do a genius on the hardware side, knowing the lines are pulled high on the acquisition of data is initialized. and if certain combinations of outputs produced a dangerous situation, you must stop to happen in hardware.  Good practice to do so anyway.

    Another option is to use an analog output, those can pump a little more power than otherwise to 1V, and do what is usually not sufficient to turn of SSRs.

  • Typical values for the external resistance of pull-up on a line of output digital NI USB 6009?

    Hi all

    I use a digital line on a USB-6009 to control a SSR by the attached diagram (in the manual USB 6009).  I don't have access to a variable resistor or box of 10 years, so I'm hoping to get a good approximate estimate for the value of Re.  When I connect the CRDD at a 5V supply, it shoots 8.2mADC when closed.

    Any suggestions?  Is there any other information I can post for help with the guestimations?

    Thank you!

    I have found an old box of decade Heathkit and understand the degree of correct resistance 100 ohms.

  • Line of two-way digital for data asynchronous series using USB-6009?

    Hello

    I'm rather new to the LabVIEW environment, so I'm a little confused about this.

    I have a signal conditioner chip (MAX1452), which I am trying to communicate with via the digital line.

    The line is a bidirectional asynchronous, half-duplex serial.

    I am currently trying to put up with a USB6009, and basically what I try to do is to write digital data (1 start bit, 8 bits, 1 stop bit, no parity, TTL logic) the smart and read the answer back. Is it possible to reconfigure a digital port on the USB-6009 case between an input and an output?

    Or is there a better way for me to implement this?

    Thank you.

    Hi Gabriel,

    It is not possible to simultaneously have a digital line on a product OR be out and a digital input.  It is possible using the DAQmx controls, you can create a virtual channel that is a digital output, write data and disable the task.  After that, you can try to create a new virtual channel which is a digital input, read the data and disable the task.  However, the USB-6009 is a simple device, so it can not support this feature.

    Hope this help to get you started,

  • OR USB-6009 can produce the constant current source/sink?

    Hi all

    I have a card NI USB DAQ to 6009. I need a battery for constant (charge/discharge current<1mA) and="" simultaneously="" monitor="" its="">

    I was wondering if I can use USB-6009 of output constant source/sink of charge/discharge current the battery? I've seen a few threads that says 6009 impossible to output constant son of currents, but other says we can use the digital output to provide the current, but it was not only described how.

    Thank you.

    All the outputs of the USB-6009 case are sources of tension and all have current limits low. There is no way to generate outputs current controlled directly from this device.

    What I would do (and have done) is to build circuits of external current source/sink with an op amp or a transistor and allows you to enable or disable a digital output of the USB-6009. If the current must be adjustable, use an op amp circuit that takes an input of the analog output of the USB-6009 voltage to set the current.  Use an analog input channel to monitor the battery voltage.

    Lynn

  • Current output digital USB-6009

    Hi, I'm trying to increase the voltage output digital device USB-6009. I read a few topics on the use of a relay, but I couldn't get it.

    I was thinking of using power 5V on the map because there current 200mA on it, but when I use it with open-collector output, it cannot change the relay. When I measure the current between

    5V and ground: 200 ma,

    5V output, I read a value around 30-40 my.

    Why can I not use this 200mA with output? It is the Relay that I use.

    If this is not possible, can I use an external power supply 5V (with more current) and a digital output to pass the baton without damage the 6009?

    Outputs digital of the USB-6009 confined to 8.5 my. Your relay coli requires much more than that. Even if the power source can provide enough current for the relay, digital output can not put.

    The solution is to use a buffer of extermal. The ULN2003 can switch currents up to 500 my and voltage up to 50 V while being controlled by digital output.

    Lynn

  • 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.

  • Implementation of multiple digital outputs with a box USB-6009

    Hi all

    I write the code to implement a USB-6009 multiple digital channels, digital outputs independent.  I have configured the function of "DAQmx create Channel" to create 'a channel for each line', but I can't understand how to access and control these channels separately.  Pointers would be greatly appreciated.

    Thank you!

    I thought about it.  Never mind.

  • inputs and outputs analog digital usb 6009

    I'm having a problem with my USB 6009 in labview programming.  I try to read continuously from the analog inputs while having an event focused on digital output within the same program/vi.  Basically, I need to taste all the time the analog inputs while having an event defined by the user (button control) to signal the digital inputs to turn on then after awhile.  The event of digital output must be independent of the analog sampling system.  I was throwing the "error already allocated resource" in most of the vi, I wrote to try to achieve.  What is programmatically possible with usb 6009?  I am at my wits end trying to do this and any help would be greatly appreciated (by myself and my boss).  Thanks in advance for your answers.

    RJ


  • NI USB-6009 digital outputs are active when connected to a PC - I'm not that

    I have a small problem:

    All outputs digital NI USB-6009 module become active when the module is connected to a PC when no VI is running.

    As soon as I start my VI, which controls the module, all the outputs are disabled (now inactive).

    How can I achieve this, outputs are inactive if the module is connected to a PC with no program running?

    johanneshoer wrote:

    I have a small problem:

    All outputs digital NI USB-6009 module become active when the module is connected to a PC when no VI is running.

    As soon as I start my VI, which controls the module, all the outputs are disabled (now inactive).

    How can I achieve this, outputs are inactive if the module is connected to a PC with no program running?

    The USB-6008/6009 case has a pull-up internal (4.7 kOhm) resistance. This causes the outputs digital on the device to have a startup logic high State. t is not recommended to use some sort of resistance of menu drop-down. However, what you can do is add octal buffer like the 74HC541 stamp and a digital output to control the sorting of the 74hc541 state mode. Connect the OAS and CEO input signal. A Summit on the pins of the latter will be sorting the output of the buffer State. Therefore, no output signal will be present until you pull the stems of low control. The USB-6008/6009 case have a 5 volt output (200mA max), you can use the buffer.

  • Digital and analog inputs simultaneously - NI USB-6009 and NI USB-6212 - ANSI C

    Hello

    I'm reading at all times and at the same time analog and digital inputs. Digital and analog samples must be sampled at the same clock and acquisition should be started (triggered?) at the same time (I don't want, after some time, analog reception more digital samples - the opposite is also true).

    I found an example (in C source code) "National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Synchronization\Multi-Function\ContAI-Read dig Chan" and tried to run with two USB cards: NI USB-6009 and NI USB-6212. Unfortunately, the two results by mistake, as described below:

    DAQmx error: the requested value is not supported for this property value.
    Property: DAQmx_SampTimingType
    You asked: DAQmx_Val_SampClk
    You can select: DAQmx_Val_OnDemand

    Task name: _unnamedTask<1>

    State code:-200077
    End of the program, press the Enter key to exit

    -Is it possible sync analog and digital acquisition in the paintings?

    -If so, how?

    Thank you

    Hello tcbusatta,

    Two of these modules, USB = 6008 and USB-6212, support only timed software inputs and digital outputs.  This means that you cannot define material timing (like finished sampling or continuous) for these modules.  Digital lines can be retrieved or written once to each call DAQmx read.

    This means that you will not be able to get any type of synchronization tight between the analogue and digital channels.  You will need a Board such as the NI USB-6341 in order to synchronize the AI and DI closely.

  • How to measure the digital output of the linear actuator on USB-6009?

    Hello

    I am a new user of Labview and need help to measure a digital input signal.

    I have an actuator Bimba Original line electric with a motor continuous integrated with encoder, drive and the controller. The drive has a programmable digital output that I put as a tachometer output that emits pulses of square wave 100 per turn of the engine. I put the engine to make a total of 56 rev in 22 dry. I want to measure the speed of motor rotation labview real-time and synchronize it with a few other analog input signals. I wired the actuator for the USB-6009 case as shown below.

    I opened the test i/o digital USB-6009 Panel and fix all the lines of port 0 as inputs. However, when I click on start and run the actuator, p0.0 led flashes, as indicated below.

    Shouldn't the led blink in response to revolutions of engines?

    I want basically to collect the drive pulse signals and convert them in rpm on labview.

    ahsan2 wrote:

    I have it wired correctly?

    It would help if you do not attach the HIGH signal.  Remove the + 5V in the circuit.

Maybe you are looking for

  • OEM product key is invalid for activation.

    My Dell Inspiron 1545 is dead. I installed the original ultimate OEM vista on a HP desktop pc. During activation. Now key OEM product not invalid for activation. The original OEM product key is on a single computer only. What I would do.

  • adjust the touchpad Inspiron1525

    I have problems with my touchpad is so sensative than just waving a finger on it moves the cursor.  A disappointment when you're tyring to type.  I can't find a way to join the touchpad adjustment program. Thanks for the help Duane

  • 3 Dell Equallogic PS6010

    Hello I have 3 Dell Equallogic PS6010 Raid 6 accelerated what is the optimal configuration for performance and reliability. Should I put all members in the same pool with some volumes? using this configuration what happens if one of the members die i

  • Change of language from English to German for Photoshop CS 5

    I tried to put the German language before you install the program from a DVD, but English seems to be the only option.After installation, I can't change it for German or (via the 'edit' button - menu).Is there a way to change this?

  • [HEART] [JSK - Jump Start Kit]

    HelloAvailable versions of JSK Jump Start Kit?Any idea or a link?Thks.