2 inputs and 1 output.

Hi all,
This is my first post.
I use an arduino 1 board to read 2 (x & y) analog signals.
I would like to command 1 pwm output on the bases of the 2 analog signals.
The idea is create a table 3x3 in wich x and y axes are based on the values of the analog signals and the output is the pwm output.
I have tried in several modes but no succes.
Can someone help me?
Thanks a lot in advance

thanks for the reply.
I woul like to realize a simple PWM controller. I made the same writing the SW in C and it was working, but no flexible and without a graphical interface.
Well...
inputs:
Two analog signals; range  0-5V f(t).It could vary very fast in the time. I use two simple potentiometers to simulate the voltage variations.
output:
PWM: range 0 - 255. connected to a led.
I woul like to have the possibility to change the PWM with a table m X n where m is related to input 1 and n is related to input 2.
I will post the the SW tried by me as soon as possible. Now... dinner!
thanks all and best regards!

Similar Messages

  • Simultaneously read more than one input and generate output

    Is it possible To simultaneously read more than one input and generate outputs depending on these inputs? If this isn't possible what is the best way to go about making some sort of timed loop that will read an input, read the next input, decide whether or not to output and so on. Hope someone can help. Thanks.Message Edited by Esmith13 on 05-25-2005 01:36 PM

    Hi,
    You should look at the synchronized examples for analog input and output that can be found in the example finder under:
    Help>>Find Examples>>Hardware Input and Output>>DAQmx>>Synchronization>>Multi-Function
    These will get you started to being able to handle multiple tasks at the same time.
    I hope this helps. Have a Great Day!
    George

  • Xbox digital audio input and then output through MacBook digital audio port

    Hi,
    Sorry if this has been asked before but I'm trying to output a Dolby Digital (I think AC3) signal from my Xbox 360 into the MacBook's digital audio input and then output it through the digital audio output. I can output 5.1 sound from the MacBook itself but I can't get the Xbox audio to pass through. I don't know if the audio is at a sample rate not supported or needs decoding or what!
    Any help would be appreciated!

    If that doesn't work, I'm not quite sure.
    A combination of the Audio MIDI Utility (in Applications/Utilities), SoundSource, LineIn, and Soundflower (http://cycling74.com/products/soundflower/) might work, otherwise I'm stumped. Your best bet is probably a dedicated external USB or FireWire audio interface.

  • 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

  • Synchronization of analogue input and analogue output?

    Hi there,
    I have a signal synchronization problem:
    I am sending two waveforms (i.e choice between sinus square triangle etc see attached VI) to a mechanical system and then I'm reading the acquired signal from this same system (and it should be similar).
    The signal I am reading is indeed similar, however, the synchronization is not perfect. Whenever I changes the frequency of the signal the phase of the aquired signal is shiffting...
    Does anyone have an idea how I should synchronize both send and aqcuired signal?
    Many thanks,
    Best,
    Renaud
    PS: I attached the VI in question 
    Attachments:
    Galvo_Monitor_3.vi ‏43 KB

    Hi,
    As you stated, there is mechanical system inbetween, it is obvious to have delay in response. If you try the same code by direct wiring Analog Input and Output, you will observe no delay in them.
    Regards,
    DCKAN

  • Difference in analog input and analog output values

    i am using 6014 DAQ card for providing motor speed reference voltage to Driver and reading back speed
    feedback voltage using LabVIEW 6.0. For this i have used AO Single Update and AI Single scan. Both are in the same while
    loop.The loop has a Wait timer of 50ms. When i take a plot of Analog o/p and input, i get a shift
    between input and output. Why is the shift or the time not synchrnised..please help..When the while loop wait timer is 200ms instead of 50ms, the shift is not there.

    I believe the problem is 2 fold. First if you are using traditional DAQ, or DAQ 6.9.3 or before, the driver is single threaded. Therefore the 2 VIs will not run simultaneous. Try DAQmx and you may be more successful.
    The other is that you are using higher level 1 point VIs. In general they are not the best to use in a time sensitive loop. You are better off using hardware timing, rather than software timing. With hardware timing you have more control over the synchronization of the 2.

  • Two counter inputs and counter output NI 9401

    I am trying to configure two counter inputs and one counter output on one NI 9401. I have looked and found how to configure digital lines in booth directions but it seems like I can only do two counters in all on one module. Can someone verify this for me or let me know how to get all three on to one module?
    Thank you

    Hi mschoenwald,
    The counters are actually located on the backplane of whatever chassis you are using--I'll assume you are using cDAQ and not cRIO.
    If you have the older <link no longer exists>, then there are only 2 counters available in general.  You can access both from a single parallel (8 lines or less) digital module in slot 5 or 6 of the chassis.
    The 2nd generation Compact DAQ chassis (including 9174, 9178, 9181, 9188, etc.) includes 4 counters.  You may access them from any slot with a parallel module.  There is no restriction preventing you from accessing all 4 simultaneously from a single module.
    The 9401 is bi-directional and configurable by nibble (line0:3 may be configured one direction, and line4:7 another).  However, it is quirky in that it requires the line direction to be configured before any of the tasks are started.  This is because the data lines themselves are used to set the line direction behind the scenes.  The best way to work around the behavior is to use DAQmx Control Task to explicitly reserve your tasks before any of them are started (see here).  Keep in mind that the counter output should use the opposite nibble from the two counter input tasks.
    Best Regards,
    John Passiak

  • External mic inputs and speaker outputs for CP-7937G Conf Phone

    Has any tried to connect the Polycom® SoundStation IP Multi-Interface to the Cisco Conference Station CP-7937G Phone, it appears to be the only way to get eextra mic inputs and line level outputs for enhancing conference call?  See attached Quick Start Guide.

    Here's where I am on interfacing external mikes, PCs, speakers, etc. with the Cisco 7937. It seems this I/O port is quite a mystery to both Cisco and the manufacturer (Polycom). There are virtually no technical specs for it anywhere on line. So, I bought a variety of cables and connectors and tried exploring. I could never get anything but input into the 7937 to work. I could never get any output from it despite the output symbol next to the port. Here are the input test results:
    3 pole 2.5mm to dual stereo 3.5mm breakout cable didn't work at all
    4 pole 2.5mm to stereo 3.5mm for input worked only on one pole (red connection). Half volume?
    3 pole 2.5mm to stereo 3.5mm for input works only on white connector (louder?)
    3 pole 2.5mm to mono 3.5mm for input, works (louder?)
    2 pole 2.5mm to stereo 3.5mm for input, works
    2 pole 2.5mm to mono 3.5mm for input ,works, and is simplest.
    So, if you want to feed an external audio source into the Cisco 7937, almost any type of 2.5mm male connector cable at the 7937 will work
    I could never find any mention of successful use online, and could not find an output signal myself, so I suspect the 7937 was just mislabeled.

  • Creating seperate audio input and audio output tracks?

    I need a bit of advice on how to do this. I'm using a simple Lightsnake USB cable to hook my guitar directly into my computer, now i can record into the program but need to switch between the Unknown USB input and the built-in inputs to get sound. This has made monitoring tracks impossible and is pretty frustrating, any help would be appreciated.

    Hi Dennis
    Logic Express seems to like a single source in and out, however you can get around this by going into Audio Midi Setup (Applications -> Utilities -> Audio Midi Setup) and creating an aggregate device with which you can choose separate input and output devices. Then, simply choose the aggregate device as your audio driver when you're back in Logic.
    P.S. I assume this is still valid for LE8 as I havent got my copy yet
    Good luck and may the force be with you
    Sam

  • Multitone generator with more inputs and with output to computer speakers

    I want to add several (perhaps 10)  harmonically related sinewave tones and output to the computer speakers or line out. Ideally would like to use the full audio range so 44100 Hz sample rate. I've managed to combine a couple of VIs and get something that works at lower sample rates but doesn't dynamically update if I change frequency or phases. And at higher sample rates it isn't a continuous sound. It just beeps, then waits, beeps then waits. I'm sure oters have tried to tackle this in the past but don't find much info. Currently using a Mac but could switch to a pc if needed. Guidance will be most graciously accepted.
    Solved!
    Go to Solution.
    Attachments:
    Dans Multitone Generator with amplitude and phase.vi ‏59 KB

    I found several things which together keep your VI from working the way you want. The VI attached works fine on my Mac.
    1. I configured the sound and the tone generator to use the same sampling info. Any other combination creates complications.
    2. I found out the hard way that the tone generator wants the frequncy to be an integer multiple of (sampling rate)/(# samples). This does not appear in the documentation (help file) but other combinations throw errors.
    3. Set the amplitude input (not Tone Amplitudes) on the Multitone Generator.vi to 1.00. This makes its output compatible with the Sound VIs. This is documented in the help but you have to read several places and put thepieces together.
    4. The reset input to Multitone Generator.vi must be true for it to respond to changes in the tone frequencies, amplitudes, or phases inputs. I just wired a true constant for now. Later this might be better handled by an event structure.
    5. Consider making the frequency, amplitude, and phase controls into arrays or one 2D array so that an arbitrary number of tones cna be used without modifying the program.
    6. Some kind of Wait may be required. Without it I occasionally received a Timeout error. Several options are in different cases of the Diagram Disable Structure. The Sound Output Wait will guarantee that the timeout does not occur but it also produces small gaps in the sound. The Wait (ms) works fairly well but it is a guess as to the optimum value for the Wait.  After all the changes I have madevene the no wait case seems to work.
    Lynn
    Attachments:
    Dans Multitone Generator with amplitude and phase.2.vi ‏38 KB

  • I have made a prg in your fuzzylogic toloolkit but not able to give input and getting output through DAQ.

    I AM WORKING WITH LABVIEW 6.1.MY PROJECT IS "WATER LEVEL CONTROL"USING "PID"AND FUZZY CONTROLLER. MY PID CONTROLLER IS WORKIN.BUT FOR THE FUUZY CONTROLLER I AM USING YOUR "FUZZY LOGIC TOOLKIT"I HAVE MADE A PROGRAM IN IT. BUT I AM NOT ABLE TO GIVE MY INPUT THROGH DATA ACQUISTION.AND ALSO NOT ABLE TO GET THE OUTPUT(CONTROL SIGNAL).
    WHERE I CAN SEE THE ANSWER.

    Are you using NI's PID control VIs for your PID controller? Are you able to acquire any signals through your data acquisition? What I would suggest is that you try to run one of the shipping examples that comes with the Control Toolkit (perhaps the one titled, "Tank - fuzzy DAQ.vi"). Hope that helps.

  • How to combine the analog input and analog output vi's

    Hi !
    I have a perfectly running triggered analog input acquisition vi. I have a seperate vi for analog output that's running perfectly too. Can someone tell me how to combine these two operations so that I could get a vi that does simulataneous AI and AO without missing triggers. I have tried all the different kinds of configurations suggested by NI support but nothing seems to work. Can someone help ?
    thanks,
    Shiva
    Attachments:
    dac_good.vi ‏77 KB
    adc_good_fw.vi ‏124 KB

    Shiva;
    I'm attaching a good Application Notes that shows how to synchronize multiple DAQ tasks, in Labview.
    Hope this helps.
    Filipe
    Attachments:
    Advanced_Sync_Techniques_for_DAQ.zip ‏166 KB

  • When using the analog inputs and analog outputs of the PCI-7344, what is the conversion between the voltage entering the card to counts? Similarly, what is the conversion between counts to voltage at the output of the card?

    I am using the PCI-7344 to control my system. The analog inputs are connected to the output of my system while the analog outputs serve as feedback to the system. The system is a servo. I want to know what is the conversion between the voltage read at the input, to card counts, and finally to the voltage output to the system.

    Carole,
    If you are trying to do analog feedback with a servo motor, Chapter 14 of the manual talks about how to set up the torque feedback. Also linked below is a LabVIEW example of analog feedback.
    Chapter 14
    NI-Motion User Manual
    Automatic Analog Feedback with FlexMotion example
    A. Talley
    National Instruments

  • Get input and display output on same screen for report

    Hi frnds,
    two params
    that is mat.no,desc.
    enter the mat.no and also display the description of that mat.no in same input screen for the report.
    How can i archieve .
    Thanks in advance.

    Hi,
    It is not possible in Dialog Programming too. But there is an alternative. You can make the material number field as drop down. Assign a function code to that. Now in PAI you can code accordingly to display the description.
    In TOP.
    TABLES: mara, makt.
    DATA  gv_maktx TYPE makt-maktx.
    In PAI.
    CASE sy-ucomm.
    WHEN 'F_MATNO'        "function code assigned to the material number drop down field
         SELECT SINGLE maktx
          FROM makt
          INTO gv_maktx
          WHERE matnr = mara-matnr. " mara-matnr is the dictionary reference to the material number drop down field in the screen.
          makt-maktx = gv_maktx.    " makt-maktx is the dictionary reference to the material description field in the screen.
    ENDCASE.
    Thanks,
    Sri.

  • Two inputs and two outputs

    create VI that will acquire temp and pressure every 500ms for 10 seconds.The thermal stress developed and output quantity is given by following:
    stress=100*temp+6*pressure;
    output=500+temp*0.1+pressure*10;
    plot stress and output Vs temperature ; also stress and output Vs pressure.
    For the above question...I tried this attached method...please tell me it is write or not?
    Solved!
    Go to Solution.
    Attachments:
    exam.vi ‏14 KB

    Jathin,
    Since this appears to not only be a school problem but also an exam, I will not be very specific so that I do not do your work for you.
    Your program may meet the specifications required.  It does not indicate much understanding of the power of LabVIEW.  Documentation is non-existent. Style leave a lot to be desired.  
    Depending on what you are supposed to have learned, I would give this a passing but low grade.  It could be imporved a lot with relatively little effort.
    Lynn

Maybe you are looking for

  • HI Gurs, need vendor  / posting / tax table detail

    < MODERATOR:  Message locked.  Please read the [Rules of Engagement|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement] before posting next time. > Anyone know the tables or logical database where I can pick up query vendor / p

  • 7200 rpm vs 5400

    hello, after 5 years of good work, my 100/7200 rpm HD went dead and the store has a 160/5400 HD to offer, while the 100/7200 has to be ordered to apple (1 more day). i do not exactly realize the performance difference between the 2s. i mostly use wor

  • How to connect APEX with MYSQL via Apex's Database link

    How do i connect APEX with MYSQL via Apex's Database link? The OBE doesn't go into specific detail about how to link the two. can someone please elaborate on what these are and where i can find them in mysql: Database Link Name       Connect To Schem

  • Error Correction While Importing CDs

    Just wondered if people generally keep this switched on or off while importing CD's into iTunes?

  • Configuration flash player pour windows8.1 en vue d'un bon fonctionnement,Merci

    j'ai modifié windows8 en windows8.1.J'ai toujours flash player sous son ancienne version,veuillez m'aider svp à configuré flash player pour windows 8.1.Merci beaucoup.