Using PWM and digital outputs of myDAQ to power multiple solenoids

Hello,
I am attempting to use LabVIEW and myDAQ to power 3 independent solenoids with PWM. I am new to Labview, so I am having trouble grasping the best was to use a digital output to power my solenoids. I have many codes to generate PWM to digital output, but I cannot figure out how to actually power my solenoid from these signals. Any help would be greatly appreciated. 
Zach

Google ULN2003 which is a relay/solenoid driver chip. The digital outputs of your card feed to the inputs of the chip, Review the max current/voltage specs of your solenoids and compare to teh driver chip max ratings to ensure the chip can power them.
How fast do you plan to PWM the solenoids? Can they achieve your PWM rate?
-AK2DM
~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~

Similar Messages

  • Error -200279 with simultaneous analog input (different devices) and digital output.

    Hi guys,
    I am a beginner in Labview and have been dealing with this problem for a couple of weeks now and just can't seem to get it completely right, I have a feeling there are a few small bugs in my code/hardware setup.
    I am running an scxi-1000 chassis with a 1600 module and 1302C along with a 1303 accesory for temperature measurements, this is connected to four thermoucouples. Unfortunately I have a limited number of modules available so I am also using a PCI-6221 DAQ card with an scb-68 breakout box used for a digital output and analog input voltage channel. Attached is my labview program. When I run the code at a 50 Hz sampling rate it runs with no errors but the data file comes out extremely wrong, this is also attached. When I run the code at 100 Hz I get error-200279 after a few loops. I used to have 2 daqmx timing VIs (one for each input), but the same error would eventually happen, I have also tried increasing the buffer size on said timing VI. I am also using an old computer (Pentium IV) could this effect the program?
    I have learned a lot going through forms for similar problems to mine but I just can't get it to for an extended period of time, I have posted my simplest code.
    Thanks in advance,
    Luca
    Attachments:
    tc_2.txt ‏1102 KB
    FinalCombined_2.vi ‏128 KB

    Ok this makes sense. I have made the suggested modifications but still getting the same error with sampling rates of 100 Hz or higher. Could you check that I have implemented the queue VIs properly (new file attached)? Also when running at 50 Hz in debug mode it does not look like the second while loop (with the dequeue element) comes into play until I hit the stop button, once I hit the stop button I get the following error:
    Error 1 occurred at Dequeue Element in FinalCombined_2.vi
    Possible reason(s):
    LabVIEW: An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @.
    =========================
    NI-488: Command requires GPIB Controller to be Controller-In-Charge.
    This leads me to believe I have programmed the queue elements incorrectly.
    Thanks for your help, any suggestions are greatly appreciated.
    Luca
    Attachments:
    FinalCombined_2.vi ‏102 KB

  • Digital input and digital output at the same time

    Hi all
    I have a PCI-6503 board. I have done 2 task that run simultaneously: the first one is port0_16 output and the second one is port2 input.
    I get sometimes (not every times...this is strange...) error-200587 saying:
    'Requested operation could not be performed, because the specified digital lines are either reserved or the device is not present in NI-DAQmx.
    It is possible that these lines are reserved by another task, the device is being used through the Traditional NI-DAQ interface, or the device is being reset. You might also get the error if the specified resource is currently in use by LabVIEW network variables bound to the DAQ Channel, or if the DAQ Channel is being used in any OPC Client software.
    If you are using these lines with another task, wait for the task to complete.  If you are using the device through the Traditional NI-DAQ interface, and you want to use it with NI-DAQmx, reset (initialize) the device using the Traditional NI-DAQ interface. If you are resetting the device, wait for the reset to finish.'
    In the attached VI i have recreated the basic structure of my real VI (the error is present even here of course...).
    How can i do?
    I want to have both digital input and digital output with the same PCI-6503 every single cycle... Is it possible?
    Please help me!!!
    Kind regards.
    I love the smell of napalm in the morning
    Attachments:
    DIO simultaneously error.vi ‏31 KB

    Hello Maverick,
    Did you have any luck with the example Raven sent you?
    In Raven's example, it properly passes the DAQmx task from one SubVI to another to avoid having to open the task again. These errors are likely to occur when you have multiple DAQmx calls in a VI that call the same task again without clearing the previously opened task. If at any given time you try to open a task that already is being used, you might receive an error "resource is reserved"... similar to your original example.
    If you are interested, here is an awesome link that gives a detailed explanation of the LabVIEW dataflow paradigm
    Learn 10 Functions in NI-DAQmx and Handle 80 Percent of Your Data Acquisition Applications
    Thanks and good luck!
    Jordan Randall
    National Instruments Italy

  • HT4061 Hello, I was wondering if you could convert the IMEI # into the serial number using letters and digits?

    Hello, I was wondering if you could convert the IMEI # into the serial number using letters and digits?

    No the imei from what I understand is a randomly given number. to get serial number you must have it. you can try supportprofile.apple.com and login.

  • Need help with waveform and digital output

    Hey everyone,
    I am driving a rotational motor with an example waveform output VI and an example digital output VI. I am able to successfully send a square wave with the desired properties to rotate the motor and I am also able to successfully send a digital output (1 or 0) to change its direction (clockwise/couter-clockwise.
    However I need some advices to write a setup such that after the motor runs as desired, I can return the motor back to its original position. I think the simplest way is timing how long it takes to finish its task, and just change the digital output, keep the same wave properties and run for the same amount of time.
    So how can I time how long the program runs and with some kind of button, change the digital output and run the program again?

    As more of a program architecture tip, this sounds like a great time to be using a State Machine.  I say this because you mention resetting the motor (one state) then running it again (another state) repeatedly.  As a design tip, I would check out this article, along with the Design Pattern Template that comes with LabVIEW.  You can find this by going to File >> New... then expanding the tree to VI >> From Template >> Frameworks >> Design Patterns >> Standard State Machine.
    Cheers, 
    Brian A.
    National Instruments
    Applications Engineer

  • Airtunes - Analog and Digital output at the same time?

    Howdy,
    This may seem strange to ask, but can the Airport Express output audio in digital and analog formats at the same time? Is there a strange splitter cable that could do this for me?
    I recently learned that most AV receivers with digital inputs cannot output digital sources to their analog zone 2 outputs. The usual work-around is to connect their digital sources to the receiver by both analog and digital cables.
    Mikael

    I just learned the same thing. Does connecting the digital and analog connections to your reciever work ? Did you connect them to the same source or assign different sources for each? Thanks,

  • Can I Use HDMI and Thunderbolt Outputs At The Same Time? And Mac App Store Issues

    I have a Mid-2011 Mac Mini. I am currently using the HDMI output with an HDMI to Digital Input for a dell monitor. If I wanted to have a second monitor, can I use the Thunderbolt output with a MiniDisplayport to VGA adapter? I know it may sound a little unclear, so if you need a clarification, pelase let me know.
    Also, on the same macine, I am having trouble connecting to the Mac App Store. My internet connection is working, and I've tried going into the Keychain Access and there isn't anything with a blue plus. When I go to Store --> Sign In , the sign in widnow doesn't appear.
    Thanks
    Joey

    Yes, that is exactly how to use dual monitors.
    Optionally:
    if the second monitor has DVI input, use the MiniDisplay Port to DVI adapter.
    or if it has Display Port input, then all you need is a straight MiniDisplay Port to Display Port cable.
    In Quick Links try Account if Sign In does not work.

  • IPod Classic and digital output to dac

    Hi,
    The topic is not new but I couldn'f find a concrete answer to this very simnple question:
    Is it possible to use the iPod Classic headphone out as a digital out to a dac using a toslink cable?

    No. There is no optical capability in any iPod's headphones jack.
    However, you can also get high-quality audio from the dock connector, and there seems to be a product that outputs a digital signal
    http://www.pure.com/product/i-20-vl-61429/
    There may be other similar products...

  • Internal Speakers and Digital Output

    Hi,
    I plugged in my iPod Nano yesterday to update it, and ever since, can't assign my inbuilt speakers as the audio output. The only option is "DIGITAL OUT", which has no output controls. I've repaired permissions, plugged the iPod in and out, and restarted numerous times.
    Anyone had a similar problem and fixed it? Can't think what it would be.
    Dave.

    sounds like there could a possable hardware fault with the machien speak to apple care or a local service provider to see if they can tell you what the problem is and how to fix it.
    ( Just a side not you are usually better going to an apple autorised repair agent rather than apple care as most service provders can have it back in a week tops includign ordering parts.)
    Stock 2.0GHz MacBook Pro   Mac OS X (10.4.7)  

  • Using ATMI and tuxedo to institue distributed transactions across multiple DBs

    I am creating the framework for a given application that needs to ensure that data
    integrity is maintained spanning multiple databases not necessarily within an
    instance of weblogic. In other words, I need to basically have 2 phase commit
    "internet transactions" between a given coordinator and n participants without
    having any real knowlegde of their internal system.
    Originally I was thinking of using Weblogic but it appears that I may need to
    have all my particular data stores registered with my weblogic instance. This
    cannot be the case as I will not have access to that information for the other
    participating sytems.
    I next thought I would write my own TP...ouch. Everytime I get through another
    iteration I kept hitting the same issue of falling into an infinite loop trying
    to ensure that my coordinator and the set of participants were each able to perform
    the directed action.
    My next attempt has led me to the world of ATMI. Would ATMI be able to help me
    here. Granted I am using JAVA so I am assuming that I would have to use CORBA
    to make the calls but will ATMI enable me to truly manage and create distributed
    transactions across multiple databases. Please, any advice at all would be greatly
    appreciated.
    Thanks
    Chris

    Andy
    I will not have multiple instances of weblogic as I cannot enfore that
    the other participants involved in the transaction have weblogic as
    their application server. That being said, I may not have the choice
    but to use WTC.
    Does this make more sense?
    Andy Piper <[email protected]> wrote in message news:<[email protected]>...
    "Chris" <[email protected]> writes:
    I am creating the framework for a given application that needs to ensure that data
    integrity is maintained spanning multiple databases not necessarily within an
    instance of weblogic. In other words, I need to basically have 2 phase commit
    "internet transactions" between a given coordinator and n participants without
    having any real knowlegde of their internal system.
    Originally I was thinking of using Weblogic but it appears that I may need to
    have all my particular data stores registered with my weblogic instance. This
    cannot be the case as I will not have access to that information for the other
    participating sytems.I don't really understand this. From 6.0 onwards you can do 2PC
    between weblogic instances, so as long as the things you are calling
    are transaction (EJBs for instance) it should all work out fine.
    I next thought I would write my own TP...ouch. Everytime I get through another
    iteration I kept hitting the same issue of falling into an infinite loop trying
    to ensure that my coordinator and the set of participants were each able to perform
    the directed action.
    My next attempt has led me to the world of ATMI. Would ATMI be able to help me
    here. Granted I am using JAVA so I am assuming that I would have to use CORBA
    to make the calls but will ATMI enable me to truly manage and create distributed
    transactions across multiple databases. Please, any advice at all would be greatly
    appreciated.I don't see that ATMI would give you anything different. Transaction
    management Tux is fairly similar to WebLogic (it was written by the
    same people). If you are trying to do interposed transactions
    (i.e. multiple co-ordinators) then WTC would give you this but it is
    only a beta feature in WLS 6.1. Using Tux domain gateways would also
    give you interposed behaviour but would require you write your servers
    in C or C++ ....
    andy

  • Using pwm to power solenoid

    Hello, 
    I am new to electronics and would like to power a solenoid using pwm and digital output from myDAQ. Please help.
    Zach

    See duplicant here:
    http://forums.ni.com/t5/LabVIEW/Using-PWM-and-digital-outputs-of-myDAQ-to-power-multiple/m-p/2615449...
    -AK2DM
    ~~~~~~~~~~~~~~~~~~~~~~~~~~
    "It’s the questions that drive us.”
    ~~~~~~~~~~~~~~~~~~~~~~~~~~

  • Is it possible with cDAQ to output PWM-Signal and Digital lines through same module?

    Hello
     I try to output a digital line and a PWM signal through one 9401 module. I use it for actuator control with PWm = speed and digital hig/low = direction.
    In LV, I set up cDAQ/_ctr1, then use channel property outport to set it to e.g. cDAQ/module9401/PFI0.
    But when I start a second task to use PFI1 as digital output on the same module, the vi fails with timeout error.
    Is simultaneous useage possible or will I have to use 2 modules
    Thanks for your insights.
    Michael

    Hi,
    you can upload your LV VI, because I suspect you make a mistake in you're program.
    Best regards
    Marko

  • PWM output and DIO output on same pin(MultiTasking)

    Hi guys, ive encounter some problem in myrio 1900, which is using PIN31 for digital output and PWM output. while the testing , i cant sending PWM, i only can passing the read value from other Digital input and transfer towards PIN 31. ive tried to change in low level logic but myrio disconnect after 3-5 seconds. By the way ive attached few picture to clarify my current situation, hope can clarify my problem clearly.
    thank you.
    regards
    vincent 
    Attachments:
    1.png ‏51 KB
    2.png ‏49 KB
    3.png ‏49 KB

    http://forums.ni.com/t5/Academic-Hardware-Products-ELVIS/bd-p/10

  • Producer consumer with analog and digital inputs and outputs

    Hi everyone,
    I am working on a control system program for some practical test work. Currently I am working on the data acuisition component of the Labview program. My architecture is produced-consumer loops with a que. My system will have analog inputs, analog outputs, digital inputs and digital outputs. It's not a time critical sytem, but I would like all of the data acquisition to be synchronised. I have attached my program as it is at the moment. I am having trouble getting all of the data into the que since I have two data types. Also, I'm not sure if i've synchronised the four read/write sequences correctly. I would greatly appreciate if somebody could take a look at my program and give me some advice. Thanks in advance.
    Solved!
    Go to Solution.
    Attachments:
    control_v2_DAQ loop.vi ‏46 KB

    Robert, the specific error that I get is:
    Error -200462 occurred at DAQmx Start Task.vi:6
    Possible reason(s):
    Generation cannot be started because the output buffer is empty. 
    Write data before starting a buffered generation. The following actions can empty the buffer: changing the size of the buffer, unreserving a task, setting the Regeneration Mode property, changing the Sample Mode, or configuring retriggering.
    Task Name: Heater testing lab digital outputs
    This error occurs at the 'DAQmx write.vi' function. I just want to sent one sample per second, for each channel. I would like the producer and consumer loops to each run once every second.
    I have attached part of my code with just the data acquisition and writing. Any help would be greatly appreciated.
    Attachments:
    control_v2_ML_simple.vi ‏83 KB

  • Cannot select Digital output for ZS 2 Noteb

    Hi, I just got an Audigy 2 ZS Notebook card today, installed it, seems to work, but I also got these 5. headphones... The headphones can be plugged in either from the 3 Analog outputs from the card's docking station, or a single /8" cord, which I assume would be digital. I tried using the 3 analog outs, but when I tried to calibrate the 'speakers', front and rear sound exactly the same (front left and rear left sound as if they are in the same position, same with right), so I tried using the single /8" cable plugging it into the card's digital out, and it sounds much clearer, but nothing plays when it tries to play from the center channel or rear channels, and "Digital Output" is shaded so it cannot be selected from the THX Setup Console...
    If it helps, I have the Kinyo KY-00 headphones, and they have their own small amp, which may be causing the hissing sound.
    Any help is greatly appreciated.

    guh. I'm retarded. Somebody delete this topic

Maybe you are looking for

  • Lenovo G560 - WLAN Driver

    Hi,   I am looking for the driver on my notebook Lenovo G560. I reinstalled my OS on Windows 7 and everythink is good, but I dont have chance to connect to my Wifi(802.11) I downloaded and installed almost all Wireless LAN drivers on this page: http:

  • How can I fade in/out audio only below a certain frequency?

    I have an MP3 made from a MIDI file in which all instruments are unfortunately in a single track. I want to fade the tom part in because I thought it would be easy considering its obvious separation from the marimba part in the Spectral Pitch Display

  • DVD drive completely dead

    My DVD/CD drive has gone dead ... it no longer takes discs at all. Also, when I open my macbook to wake it up, it used to make a noise and it no longer does that .. nor does it make any noise when I hit the eject button. What do I do to fix it? and i

  • Photoshop Elements 4.0 on Snowleopard

    Hello, I have a question for my Photoshop elments 4.0 I was having difficulty with it on my macbook with snowleopard it kept quitting on me when I was trying to start an drawing an I couldn't figure out what do to do. Is there a way I can fix it so i

  • Authorization-check in company code for GR55 reports

    Hi to all! Created User: ZTESTUSER The scenario is this. We created a report in GR55(Report Painter) and we want users (ex. ZTESTUSER) to access only company codes 7000 to 7999. How will I be able to do that? I am thinking of creating a role or profi