MyRIO Analog IO

I'm new to myRIO and LabVIEW. My questions are as follow:
1. I tried a simple program to acquire analog sine wave from a function generator and display it in PC (labVIEW). The sine wave displayed in labVIEW was pretty accurate for approximately 50Hz. When I increased the frequency (sweep the frequency of function generator slowly) the displayed signal was badly distorted. At some frequency, pure sine wave appeared again. The frequency of waveform displayed in PC was different from that has been set in function generator. How to configure the sampling and acquire analog signal accurately?
2. I tried to produce a sine wave at analog output port using signal generated by using 'Simulate Signal' VI. I tried the default frequency which is 10.1Hz but the waveform observed in oscilloscope was around 1 Hz. If I set the frequency to 10Hz, DC line appeared in oscilloscope. 
Can anyone please point out the problems and discuss on how to solve it? I should be grateful if anyone could share some example code.
Many thanks.

trieu wrote:
Hello everybody!
I'm new to myRIO and Labview . can you help me? documents manual myRIO of ''Digital Image Processing with LabView''
thank you very much!
This qurstion seems unrelated to MyRIO analog IO, so why did you append to a seemingly unrelated thread?
Please start a new thread and explain what your question is. It is not clear what you want.
LabVIEW Champion . Do more with less code and in less time .

Similar Messages

  • NI-MyRIO Analog Inputs

    Greetings,
    I'm just getting the myRIO up and running, and I'm sort of disappointed that the +/- analog inputs are differential only. Is there any low level way to use these channels differently, or at least each as single-ended? Pseudo-differential, perhaps? I'm going to have to resort to using the line-level audio inputs to measure single ended inputs and make sure the input level is lower than whatever the max voltage is for that (1.7 volts or something).
    Any users out there care to comment?
    I know the other inputs are single ended, but only 0-5V. Bummer.
    Thanks in advance.
    TR
    ><><><><><><
    Tommy R.
    ><><><><><><

    I grounded the 0- and 1- inputs of the two differential channels and had no problem measuring  single ended voltages going into 0+ and 1+. I was just expecting to be able to configure the four inputs to be four single-ended inputs like I normally can do on all other NI DAQ analog hardware. The project I'm working on needs four measurments (all +/- voltages), so I was hoping the two +/- 10 channels were reconfigurable to four, like I'm used to. I'm just going to have to be creative and use the audio inputs as well.
    ><><><><><><
    Tommy R.
    ><><><><><><

  • MyRIO analog output

    I want to output an analog signal by building the analog output block in my FPGA main? How can I achieve this?
     

    Hi Syntyche,
    Could you give me a little more information about what you are trying to do? Your question is not too clear. In general to do analog output on a myRIO is using the analog output express VI http://zone.ni.com/reference/en-XX/help/373925B-01/myrioreference/myrioref_exp_ao/. Are you wanting to create a custom FPGA instead of using the default personality?

  • MyRIO analog input express Vi (n samples) missing file

    Dear Users, 
    I am trying to read analog data with an express VI in myRIO. This works with Analog input (1 sample), but fails with Analog input (n samples) due a missing file "myRIO v1.1 FPGA Throughput.lvbitx".
    I googled it and searched it on ni.com, but nobody seems to have the same isssue (I suppose because of the myRIO is quite new right now)
    Thank you!
    Solved!
    Go to Solution.

    I would try doing a repair of your installation.  It looks like something didn't get installed properly.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • MyRio analog input

    Greetings,
    I am new to NI and I have a question about the setting the timing on the analog inputs.  I want to set up a clock (DIO output) and in addition, have ever clock rising edge initiate a single A/D conversion.  Is this possible with the MyRio?
    The background is I have a device with a string of sensors that will output a analog value every time I send in a clock, therefore I need to digitize the analog signal synchronized with the clock.
    In addition, if someone has found documentation other than the manual, I would appreciate your sharing.
    Thanks for the help,
    Frank 

    Hi Frank,
    Welcome to the forums! What you want to do is definitely possible with the myRIO. You have a few options available to you:
    If you have the ability to upgrade to LabVIEW 2014, the myRIO 2014 toolkit includes new Interrupt Express VIs. You specify a condition (in your case, a rising digital edge) and a callback VI that executes when this condition is met. The best way to learn about how this works is to take a look at the examples in Example Finder (Help»Find Examples»Toolkits and Modules»myRIO»Interrupt Handling.lvproj.
    If you don't have the ability to upgrade to LabVIEW 2014, you could implement something similar yourself by having a loop wait for a rising edge on a digital line by using the Digital Input Express VI and then doing the analog measurement. This method would introduce some jitter because of the overhead associated with the Express VIs. An example snippet of this is below. If you do have access to the FPGA module, I would recommend implementing this logic on the FPGA instead (further below).
    Using the FPGA module to do the triggering would give you better results because of the tighter timing capabilites of the FPGA as compared to the Express VIs. The logic would be mostly the same on the FPGA as it is on the real-time except for the appropriate VIs swapped around:
    Here, we are waiting for a rising edge on a digital line and then placing the data from the analog channel in a  to provide this data to the host (real-time) application.
    If you want absolute control over the synchronization of the AI to the clock, I would recommend implementing the logic in FPGA (2013 or 2014). If your application has a little leeway in terms of timing, the Express VIs (2013) or Interrupt Express VIs (2014) would work for you.
    Let us know if you have any questions!
    Best Regards,
    Matthew B.
    Applications Engineer
    National Instruments

  • Labview myRIO Analog data sampling rate

    I have been using the myRIO to acquire audio input from a microphone.
    In LabView I'm using the Analog Input Express VI to acquire the data.
    I wanted to know if there was a way to increase the sampling rate of this data from this VI, or any VI at that?
    Solved!
    Go to Solution.

    Hi ykhali,
    Try putting the VI into a timed loop and set the loop rate to your sampling rate.
    Regards,
    Joel I.
    Applications Engineer
    National Instruments

  • How to interface multiple NTC Thermistors to a 8-1 multiplexer and then to myRIO .

     I need to measure the temperature of 8 lithium ion battery cells in series individually for my battery management   system . So I need to see how can I interface the 8 thermistors with 8 to 1 multiplexer and output to myRIO analog input.

    Hey Bakry77,
    To expand on what Jeff said you can use an analog multiplexer like this one:
    http://www.digikey.com/product-detail/en/HEF4051BP,652/568-1689-5-ND/763293
    http://www.nxp.com/documents/data_sheet/HEF4051B.pdf
    The 8 thermistors will need to be connected to Y0-Y7 and the myRIO analog input to Z.  Then you can use 3 digital outputs from myRIO connected to S1-S3 to select the channel (Y) to pass through (Z).
    Let us know if you have more questions about this.  I'd love to see the code and your system when you get it working.
    Thanks!
    -Sam K
    LabVIEW Hacker
    Join / Follow the LabVIEW Hacker Group on google+

  • MyRIO input analog signal measurement

    Hi everyone,
    I want to know that how to measurement the input analog signal from a signal generator to the input pin of myRIO. Is it like using myDAQ to measurement? or need to use other Labview function panel? For example, how to trigger the input signal on Labview?
    If someone know this, please give me an answer.
    Cheers,
    Johnson

    Hi Johnson,
    The minimum software required to program the NI myRIO processor with LabVIEW is the following:
    LabVIEW
    LabVIEW Real-Time Module
    LabVIEW myRIO Toolkit
    All of this software is included in an Academic Site License. Additionally, the full myRIO Software Bundle can be downloaded from ni.com and activated with a valid serial number.
    You can write programs quickly using I/O-specific Express VIs directly from the LabVIEW palette, which includes an "Analog In" function which you can use for your signal generator input:

  • Detect frequency of an analog signal coming in through myRIo AudioIn analog port

    I am working on a fire-fighting robot that runs using myRio. I have a small mic plugged into the 'AudioIn' port of the myRIO and the robot has to detect a certain frequency(2.8 or 3.5 KHz) to start navigation. The AnalogIn express VI gives me raw voltage amplitudes of type 'Double' but the 'Tone Measurment' vi I wanted to use takes in a 'Signal' data type. I tried converting the raw data to dynamic data and feeding it in but did not work. One problem is that I cannot control the sample rate of the AnalogIn express VI (LabView 2013), I appreciate any suggestions on how to go about doing it.
    Solved!
    Go to Solution.
    Attachments:
    Capture.PNG ‏16 KB

    Thank you all for your feedback.
    @Bob_Schor the robot competition is tomorrow. Thanks for the suggestions but the High Throughput Add-on turned out to be what I was looking for.
    @MilanR thank you so much. I installed LabView 2014 and the myRIO 2014 High Throughput Add-on and I now have access to low level VIs that will let me control sampling frequency and number of samples.
    I am now using 'Tone measurments' to measure the frequency of the sound. But the frequency measured is not accurate, but it is atleast consistent. I am sampling at 7 KHz and taking 5000 samples at once. The two frequencies I want to detect are 2.8 KHz and 3.5 KHz. However, the mesaured frequecies I get from Tone Measurment VI are 0.400 Hz and 0.499 Hz, which are always consistent. Picture is attached below.
    Attachments:
    Capture3.PNG ‏10 KB

  • How to writing the data into the file at the same frequency of data acquisition using myRIO

    Hi everyone,
    I have a question regarding data acquisition fequency and data recording frequency of myRIO. Hope you guys can help me out.
    Basically, I want to acquire voltage input at analog input 0 at the frequency of 1kHz and then write the data into a file (tdms format). 
    However, I always found there were only 55 or 56 data points recorded every second in the data file (see the excel sheet). 
    To confirm my data acquisition was performed at the correct frequency, I added a small function in the main loop to indicate the time spent between two acquisition events. 
    To my surprise, the period of data acquistion is correct (1ms or 1kHz) but there are only 55 or 56 data point per second recorded in the data file.
    How can I record every data point acquired by the analog input?
    Thank you!
    P.S. I am very new to myRIO. How can I manually set the system time for myRIO? The default time of my myRIO is wrong. 
    Best,
    Tengyang
    Attachments:
    test result.xlsx ‏16 KB
    Main with timed loop.vi ‏122 KB
    test result.xlsx ‏16 KB

    Have a look at the Jakarta POI project, they have a Java API for creating Word documents.
    http://jakarta.apache.org/poi/hwpf/index.html

  • 2-way audio communication using myRIO

    Hello,
    I'd like to have a 2-way audio communication using myRIO.
    1. I'd like to speak into a microphone on my laptop and hear my voice on a speaker connected to myRIO.
    2. I'd like to speak into a microphone connected to myRIO and hear my voice on my laptop.
    3. Additonally, I need to perform the above using WiFI.
    I've tried the  Analog Input and Ouput functionalities of myRIO in LabVIEW (attached project). I've been able to connect a microhpne to myRIO and a headphone to myRIO and speak into the microphone and hear from the headphone connected to myRIO. But I need to be able to speak into microhpne connected to myRIO and hear my voice on speakers connected to laptop.
    Thank you for your helps and support.
    Attachments:
    Microphone Demo.zip ‏71 KB

    Coren wrote:
    Since I'm new and not very familiar with myRIO, I've 3 questions:
    1. How can I build a Real Time application at myRIO?
    2. How to send the waveform of the audio input by network stream to second application, which runs on Windows?
    3. What is the difference between an application running on Windows and Real Time?
    Thank you.
    ad.1.
    myRIO is RealTime target: that means code will be executed by real time operating system on the target.
    In project you will use two targets: My Computer : this is Windows target and myRIO that is real time target.
    ad.2.
    Check Menu>> Help>> Examples and at Search write 'Network Stream'
    my second thought is it could be easier to use Shared Variables.
    ad.3.
    At this point important thing is target and its operating system that execute the code. For myRIO ths is Real Time Linux,  for you it will be transparent, cos you will work using LabVIEW Project.
    Did you start with NI myRIO Project Essentials Guide ?
    Last and not least: check this path:
    Rn LabVIEW: select Create Project: select Sample Projects: select Voice Recorder myRIO
    Regards
    Mikrobi (Zbigniew St. Sobków)____________________________________________________________
    "You can lead a horse to water, but if you can get him to float on his back you've got something."

  • Generate sine waveform (myRio)

    What is the best way to generate a 1khz sine signal on one of the analog outputs of the myRio device? I tried a timed loop and the Point by Point Sine Generation VI similar to the Electret Microphone demo or this post: http://forums.ni.com/t5/Academic-Hardware-Products-ELVIS/frequency-matching-problem-with-myrio/m-p/2... by Sammy_K. But the resolution is a problem. The frequency is not very accurate and with a dt of 100 uS and a 1Mhz Clock I only get 10 samples per period. A dt of 10 is too much load for the processor (the deivce does not respond anymore and needs to be restarted). Is there a better way of generating a 1khz sine output or do I need to do this within the FPGA somehow?
    Solved!
    Go to Solution.

    Hey JulianR,
    The thing to keep in mind is that each time you call the Analog Write express VI you write one data point to the analog output on the myRIO.  The rate at which data is output is determined by the rate at which you loop runs.  You can use a timed loop in LabVIEW to write analog output values at a relativly fixed loop rate and vary the value to generate a sine wave output.
    I put together an example of doing just this (but using the value to set a PWM duty cycle rather than analog output) in this thread.  You'd basically need to replace the PWM express VI with the Analog Output Express VI.
    Finally as Marc67 mentioned you could implement the sine wave output in LabVIEW FPGA which would give you more control and let you use faster output frequencies.  I'd start with the timed loop method and move to FPGA if you need faster output rates.
    Let us know if you have more questions for us.
    -Sam K
    LabVIEW Hacker
    Join / Follow the LabVIEW Hacker Group on google+

  • RTD Temperature Measurements using LabView 2013 and MyRio

    Hey everyone.  I am VERY new to LabView programming and working with a MyRio.  I need to figure out how to measure the resistance of a 2 wire RTD to find a temperature utalizing the MyRio and LabView.  I am pretty lost on how to do this.  Does anyone know some good resources for making the LabView program off of the tops of their heads?  I've figured out how to measure from specific pins, but I am not sure how to get it to constantly output a voltage from the output pins.
    Eventually, I would like to have it display the temperature as well as have it turn on or off a heater depending on that temperature, but that will come far later in this process. First things first, how do I take temperature measurements utalizing LabView 2013 and a MyRio with a 2 Wire RTD. 
    Thanks so much!

    Hi JoshEpstein87,
    The myRIO can't acquire a change in resistance directly, so you'll need to somehow convert the change in resistance to a change in voltage. There are multiple ways to do this, but you'll need to build an external circuit and then read the voltage output with the myRIO. One example of a circuit that allows you to do this can be found here. To output a voltage on the analog output pins, you should just need to set the output voltage and then it will remain at that voltage until you change it or power cycle the myRIO.
    To get started with LabVIEW and myRIO programming, see the following page:
    http://www.ni.com/myrio/setup/getting-started/
    There are some links to LabVIEW training as well as resources about RIO programming. I also highly recommend you check out the myRIO Community as there are example programs on there that you can take a look at to see how they are designed.
    Best Regards,
    Matthew B.
    Applications Engineer
    National Instruments

  • Myrio & DAQmx

    Hello,
    I am new to the MyRIO system, and have a quick question about analog data acquisition.  Can the DAQmx VIs be used with the MyRIO?  In my experience, when I use the DAQassitant to try to select an input device, the MyRIO does not show up.
    Thank you very much,
    Sean

    Hi seanmw,
    DAQmx VIs will not work for myRIO because it runs off the NI-RIO Driver.  There is a myRIO Module that comes with myRIO.  Here are pages to the module and the VIs that you will be able to utilize:
    http://zone.ni.com/reference/en-XX/help/373925A-01/myriohelp/myriohelp/
    http://zone.ni.com/reference/en-XX/help/373925A-01/myrioreference/myrioreference/
    Peter T
    Applications Engineer
    National Instruments

  • MyRIO generate/a​cquire by samples

    Hello,
    I have problem with using MyRIO. I want to acquire package of lest say 10000 samples from aquisition loop and then pass that data to next loop to analyse that data.
    But with using myrio functions I can only acquire/generate one sample.  Do I need to create for loop inside my while loop to acquire 100 samples? Or there is more elegant way like in Daq-mx??
    I need to generate signal on analog out, acquire something from analog in and then calculate correlation and delay between these 2 signals. With Daq-mx it was easy. With MyRIO I am not so sure.
    Thanks for clearing that for me

    Hey pawahan11,
    As you mentioned myRIO currently only supports 'single point' analog IO.  This means that each time the AI VI or Express VI executes it acquires a single point of data.  If you want to collect chunks of 10,000 samples and then process the set you'll probably want to use a producer consumer architecture.  There is some good info on producer consumer archiectures here.
    The basic idea is that you'll have 2 loops.  The producer loop produces data that will be processed by the consuer loop.  In your example your producer loop will run and gather data points which will be buffered up until you get 10,000 or them.  At that point the data will be processed by the consumer loop while the producer loop starts collecting a new data set (if necissary).
    You can use RT FIFOs to pipe data between the two loops and buffer up the 10,000 samples.
    Let us know if you have questions about this.
    Thanks!
    -Sam K
    LabVIEW Hacker
    Join / Follow the LabVIEW Hacker Group on google+

Maybe you are looking for

  • Delete tree nodes from Table

    I have created a tree table create table subforums ( id          NUMBER(5) primary key, parent_id     references subforums, name          varchar2(100) And now i dont know how to delete a tree with a specified id and all of his children. I tried to f

  • Is there a way to sync multiple photo locations with an iPad.

    I have an iPad that I share with my girlfried. I would like to sync both of our 'My Pictures' folders on our Windows 7 PC with the iPad. I tired creating a new Windows user account for the iPad, then in the 'My Pictures' folder for that accout, I cre

  • Can anyone say why this basic PB crashes AE?

    Hi, I wrote a basic light wrap filter - it works in PB but crashes AE immidiately when I apply the filter to a layer. <languageVersion : 1.0;> kernel efx_lightwrap <   namespace : "efx LightWrap";     vendor : "EFX Filip Kaczorek";     version : 1;  

  • The left side of My iPod Touch 4th Generation doesn't work

    Th eleft side of my ipod touch stopped working

  • I need help with ammount of Artic Silver Paste

    Hello I am new to you all and came from a link that was posted on the EVGA website forum of theres any ways I was hoping some could tell me how much paste do I put on the Pentium chip do I only use a small amount or do I cover the entire silver area