Can I generate sine and square waves with NI PCI-MIO-16XE-50 card??

Can I generate sine and square waves with NI PCI-MIO-16XE-50 card??
How Do I generate those signals?

Hello;
You certainly can do that. The way to go about that is to use one of the Analog Output channels your board have available.
If you are using Labview to program the board, you can find good examples at Search Examples->I/O Interfaces->Data Acquisition->Analog Output->Multiple Point (buffered) Analog Output.
If you are using other Software language to program the board, you can fing examples at C:\Program Files\National Instruments\NI-DAQ\example\VisualC\AO.
Hope this helps.
Filipe

Similar Messages

  • How to do a single channel DAQ using NI-DAQ driver software with a PCI-MIO-16XE-10 card

    Hi,
    I would like to find out how I could do a simple one channel Data Acquisition from a signal generator using the NI-DAQ driver software with a PCI-MIO-16XE-10 card.
    I have written some test problem but even when the signal generator is turned on/off I get back some weird values.
    Here is my code.
    CString sFunctionName("");
    double volt[OUTPUT_POINTS*2];
    double out[OUTPUT_POINTS*2];
    short timebase, ready, code, stopped;
    unsigned short sampleInterval;
    int i, status, count=0;
    unsigned long update, points;
    short* ai_buffer;
    short output_ch_vector[16];
    int local_ITERATIONS = 2;
    SAFEARRAYBOUND bound[1];
    double dataItem = 9.9;
    long j;
    long k;
    double* pTheValues;
    LPTSTR lpsz_ErrMsg;
    // Initialise device
    status = Init_DA_Brds (deviceNumber, deviceNumberCode)
    Initializes the hardware and software states of a National Instruments
    DAQ device to its default state and returns a numeric device code that
    corresponds to the type of device initialized
    Init_DA_Brds(DEVICE, &code);
    // Check return code from Init_DA_Brds
    Code return should be 204: PCI-MIO-16XE-10.
    if (code < 0)
    CString sError;
    sError.Format("Code error: %d", code);
    if (code == -1)
    sError = sError + ": No device found";
    LPTSTR lpsz = new TCHAR[sError.GetLength()+1];
    _tcscpy(lpsz, sError);
    AfxMessageBox(lpsz);
    delete lpsz;
    return S_FALSE;
    // Allocate memory for analog output and input arrays
    //ao_buffer = new short[OUTPUT_POINTS*2];
    ai_buffer = new short[OUTPUT_POINTS];
    // Set double-buffering
    status = DAQ_DB_Config (deviceNumber, DBmode)
    Enables or disables double-buffered DAQ operations.
    status = DAQ_DB_Config(DEVICE, 1);
    if (status < 0 )
    sFunctionName = "DAQ_DB_Config";
    goto TidyUp;
    // Get the rate parameters
    status = DAQ_Rate (rate, units, timebase, sampleInterval)
    Converts a DAQ rate into the timebase and sample-interval
    values needed to produce the rate you want.
    status = DAQ_Rate(RATE, 0, &timebase, &sampleInterval);
    if (status < 0 )
    sFunctionName = "DAQ_Rate";
    goto TidyUp;
    // Setup scan
    status = SCAN_Setup (deviceNumber, numChans, chanVector, gainVector)
    Initializes circuitry for a scanned data acquisition operation.
    Initialization includes storing a table of the channel sequence
    and gain setting for each channel to be digitized
    status = SCAN_Setup(DEVICE, 1, ai_channels, gain);
    if (status < 0 )
    sFunctionName = "SCAN_Setup";
    goto TidyUp;
    status = SCAN_Start (deviceNumber, buffer, count, sampTimebase,
    sampInterval, scanTimebase, scanInterval)
    Initiates a multiple-channel scanned data acquisition operation,
    with or without interval scanning, and stores its input in an array
    status = SCAN_Start(DEVICE, ai_buffer, OUTPUT_POINTS, timebase, sampleInterval, timebase, 1000);
    if (status < 0 )
    sFunctionName = "SCAN_Start";
    goto TidyUp;
    while(count < local_ITERATIONS)
    // Check whether we are ready to input another half-buffer
    status = DAQ_DB_HalfReady(DEVICE, &ready, &stopped);
    if (status < 0 )
    sFunctionName = "DAQ_DB_HalfReady";
    goto TidyUp;
    if (ready == 1)
    status = DAQ_DB_Transfer(DEVICE, ai_buffer, &points, &stopped);
    if (status < 0 )
    sFunctionName = "DAQ_DB_Transfer";
    goto TidyUp;
    count++;
    // Clear the analog input
    status = DAQ_Clear (deviceNumber)
    Cancels the current DAQ operation
    (both single-channel and multiple-channel scanned) and reinitializes the DAQ circuitry.
    status = DAQ_Clear(DEVICE);
    if (status < 0 )
    sFunctionName = "DAQ_Clear";
    goto TidyUp;
    status = SCAN_Demux (buffer, count, numChans, numMuxBrds)
    Rearranges, or demultiplexes, data acquired by a SCAN operation
    into row-major order, that is, each row of the array holding the
    data corresponds to a scanned channel
    status = SCAN_Demux(ai_buffer, OUTPUT_POINTS * 2, 2, 0);
    if (status < 0 )
    sFunctionName = "SCAN_Demux";
    goto TidyUp;
    //Convert binary values to voltages (Doesn't actually take a reading from board)
    status = DAQ_VScale (deviceNumber, chan, gain, gainAdjust, offset, count, binArray, voltArray)
    Converts the values of an array of acquired binary data and the gain setting for that data
    to actual input voltages measured.
    status = DAQ_VScale (1, 0, 1, 1.0, 0.0, OUTPUT_POINTS , ai_buffer, volt);
    if (status < 0 )
    sFunctionName = "DAQ_VScale";
    goto TidyUp;

    Hello,
    Please take a look at lots of examples available at :
    1. www.ni.com >> NI Developer Zone >> Development Library >> Measurement Hardware
    2. C:\program files\national instruments\ni-daq\examples\visualc
    Sincerely,
    Sastry V.
    Applications Engineer
    National Instruments

  • Configuring executable labview programs originally configured with a PCI-MIO-16XE-10 on a system with a PCI-MIO-16XE-50 card

    I'm hoping someone can help me. I have executable labview programs created in another lab which used a PCI-MIO-16XE-10 card. I need to install these programs in a new lab which has a PCI-MIO-16XE-50 card installed. When downloading the executable files, Measurement and Automation Explorer gave a message that the physical devices could not be located. I presume this is because the executables are configured for the PCI-MIO-16XE-10 but the PCI-MIO-16XE-50 is installed instead. Any suggestions on how to get these programs configured with the PCI-MIO-16XE-50 would be greatly appreciated? Thanks.

    As long as you have the device identifier of the PCI-MIO-16XE-50 set the same as the PCI-MIO-16XE-10 for which the program was written, you shouldn't have a problem doing what you describe.
    One thing that confused me about your posting, however, is the statement When downloading the executable files, Measurement and Automation Explorer gave a message that the physical devices could not be located. This doesn't make sense to me. You're getting an error from MAX when downloading your program? MAX shouldn't be involved at all here, and especially not when just downloading your program. If you can provide more details about exactly what you are doing (maybe post some screenshots) then I'm sure we can help you get your program working.
    Good luck,
    Joe

  • Simultaneous sampling with a PCI-MIO-16XE-10 board

    Hello,
    I am using LabView with a PCI-MIO-16XE-10 board. I would like to make simultaneous sampling in multi channels. How can I do?
    Thank you for your help.

    Your question should be posted under "Measurement Devices >> Multifunction I/O" instead of "Real-Time DAQ" because the PCI-MIO-16XE-10 board is not a real-time device. The category "Real-Time DAQ" is reserved for 7030 real-time devices.
    The PCI-MIO-16XE-10 multiplexes channels across one amp and one A/D converter; therefore, it cannot perform true simultaneous sampling. Consider using the SC-2040 accessory, which has 8 simultaneously sampling differential amplifiers. Alternately, you can purchase a different board like the PCI-6110, which can perform true simultaneous sampling because it has individual A/D converters and amps for each channel.

  • Replacing an AT-MIO-16X with a PCI-MIO-16XE

    Updating an old system we upgrade DAQ card with one we tough was "all" identical, but I found that the DIO port is not. In fact the MIO-16X can be define as an 4 bits port but not the new card PCI-MIO-16XE-10. Unfortunately the Vi we are using was design with the 4 bits capability (4: Input, 4 Output). To minimize the modification of the software any suggestion...

    Hello;
    You didn't mention what Software language is being used to program the board, but, the best way to go about that is to mask the port, so you can have 4 bits working as input or output.
    If you mask the port, you can still use your code as the port was a 4 bit port.
    Hope this helps.
    Filipe

  • I get error code 200324 with my PCI-MIO-16E-1 card

    I use Labview 7 and my A/D card was working until last week. Now I hardly find a PCI slot at my PC that the card doesn't crash my PC, and when I do I get this errod code 20034 from the measurement and automation explorer.
    I have tried mounting the card at other pci slots, it didn't work.
    the services nidevldu and nipxirmu are running - checked.
    Any ideas that could help me?
    Regards
    Christos
    Attachments:
    Error200324.bmp ‏2305 KB

    Christos,
    Aside from the services that you have already checked and they're running, another common cause of this error is needing to reset the DAQ device. After running an example in Traditional NI-DAQ, the board needs to be reset before running an NI-DAQmx example. In MAX, expand Devices and Interfaces. Then right-click on Traditional NI-DAQ Devices and select Reset driver for Traditional NI-DAQ. Hopefully, you will now be able to use the board with NI-DAQmx. Hope this helps. Have a great day!

  • Generating square wave with variable duty cycle

    We like to generate a square wave with variable duty cycle using LabView 6.1 and SCB-68 and this duty cycle comes from some PID controller programmed by LabView by reading a voltage and feeding back this square wave

    the story begins with some one called separately excited DC motor
    this thing sometimes changes its speed
    so we are trying to keep a constant speed
    irrespective of the load no matter how it changes
    this comes by reading the voltage out from
    the tackometer which represents the speed as voltage
    then comparing this with a reference set by the labview program
    the labview program will send a control signal to some chopper circuit
    which is connected to the field of the motor which controls the speed
    we are tending to make the labview program as pid controller
    that will generate our beatiful square wave with some duty cycle
    which will vary to increase or decrease the voltage across the field
    we tried "Real-Time PID Control.vi" example and other examples
    and we are discussing different solutions for this duty cycle thing
    but till now no output
    this is our whole story with this DC motor thing

  • Problem integrating PCI-MIO-16XE-50 and AMUX-64 T multiplexer

    I can test the PCI-MIO-16XE-50 card in MAX but i can not test the virtual channels

    Hey Hiral,
    The AMUX-64T does not support virtual channels. You'll need to acquire the data and then perform the required scaling in software. The following document discusses how to access the appropriate channels.
    How do I Address an AMUX-64T with an MIO Board?
    This next document may also be useful. It discusses how to perform the necessary scaling for a thermocouple channel in LabVIEW.
    Taking Thermocouple Measurements Using the AMUX-64T
    I hope this helps!
    Sarah Miracle
    National Instruments

  • How to apply single sine or square wave

    Now I used NI-FGEN and NI-Scope for bender element test, I want to now how to generate single sine or square wave (normally in NI-FGEN, I saw only continuous wave generation type).thanks you so much

    If I understand your question correctly, it sounds like you would like to output one period of a sine wave or square wave and then just 0V DC. To do this you can use the niFgen_Basic_Arb_Sequence_Example. You will want your first sequence to be a sine (or square) wave and then the second sequence to be DC with an amplitude of 0V. You could replace the while loop in that example with a sequence structure with a wait in the structure to last just a bit longer than your sine wave. This will ensure that your sequence doesn't repeat.
    I hope this helps answer your question.
    Regards,
    Doug K.
    Application Engineering
    National Instruments

  • FFT on triangular and square waves.

    Hi,
    I have been computing FFTs on a some sinusoidal waves and have been doing fine, gett the right Y axis values in the units Vrms^2.  For example a 10V amplitude (20v peak to peak) wave at 100 htz would give a peak at 100 htz and 49Vrms^2 since the RMS value fo 10 is 7 and 7^2 is 49.  Now when I input a Square wave with the same characteristics I no longer get the same scaling instead getting a peak at a higher y value.  With a triangular wave I get peaks at lower values.  Can anyone explain to me why this is happening?
    Thanks.
    Intern NSWCCD Carderock.

    Actually RMS (Root Mean Square) value of periodic signal f(t) is defined as a square root of squared signal averaged over the period T, mathematically:
    f_rms = sqrt ( aver (f^2) ),
    where aver (f^2) = [integral of f^2 over the period T] / T
    It is easy to show that for pure sine wave f(t) = A*sin(2*pi*t / T), f_rms = A / sqrt(2) ~ 0.707*A – this is well-known result anyone can find in almost every textbook. It is not difficult to calculate exact value of f_rms for square and triangular waves. Results are as follows:
    f_rms (square) = A, where square wave f(t) = A, if 0<t<c*T and f(t) = -A, if c*T<t<T (here 0<c<1 and c=0.5 for 50% duty cycle wave)
    and
    f_rms (triangle) = A / srqt(3) ~ 0.577*A, where I assumed triangle wave that raises from 0 to +A over 0 < t <T/4, goes down to –A over T/4 < t < 3T/4 and returns to ZERO in the last quarter of the period T
    Parseval’s theorem (http://en.wikipedia.org/wiki/Parseval's_theorem) of Fourier analysis states that energy of periodic signal (=integral of f^2 over the period T) must equal to energy of its Fourier transform ( sum of squared amplitude of all harmonics for periodic signal). That’s why Fourier analysis in Labview is capable of producing signal’s RMS value in addition to its spectrum.
    Now, main harmonic of square and triangular waves carries majority of signal energy, but not all of it because of presence of other harmonics. That means that amplitude of main harmonic as reported by Labview will be close to but slightly less than signal’s RMS value. This explains the results you reported in your very first post.

  • Can only draw circle and square in Illustrator CS5 and Photoshop CS5

    I am experiencing a strange bug that seems to be affecting both Photoshop CS5 and Illustrator CS5. In Illustrator, when I try to draw a rectangle or ellipse I can only draw circles and squares. Also I can't change the color of selected objects. When I try to change its fill nothing happens. I can also only drag objects on the 0, 45 and 90 degree angles. Also I can no longer select off an object by clicking on the artboard. When I click on the artboard nothing happens.
    Similarly in Photoshop I can only draw straight lines using the brush tool. The  marquee tool is also not functioning properly. When I try to use the marquee tool the marching ants form a square but when I release the mouse it selects a rectangular portion. Strangely if I use the marquee tool and make selection I can press the shift key and add to it but this second selection's marching ants are not square but are properly rectangular.
    Since the problem seems to be affecting both Illustrator and Photoshop I'm thinking it's probably some kind of system conflict or perhaps an application running in the background is affecting it. Also if I restart my mac the problem goes away. Unfortunately the problem eventually returns.
    Anyway I'm pretty sure most of the suggested fixes involve systematically going through all the programs running in the background and trying to determine which if any might be affecting Illustrator and Photoshop but I just thought I'd post something in case someone else had the problem or knew of any fixes.
    I'm running CS5 on a MBP.
    Thanks!

    Ok I figured out the problem. It was another application called teleport which lets you control 2 macs with one mouse. It requires a hot key and in my case that was the shift key. Even though it was running it was still affecting me. Had to quit it and restart. If you're having a similar problem I'd check to see you're not running any other applications that can be activated with a hot key.

  • Does anyone know why I can only get sound and no video with a compatible component cable?

    Does anyone know why I can only get sound and no video with a compatible component cable?

    What apps are you trying?  TV out video only works with apps that support TV out.  If the app does not support TV out you will still get aoudio via the component cable

  • HT1725 Why can I all of a sudden not purchase on Cand Crush and on Words With Friends??  The credit card company has NOT stopped anything. I have no problems with other iTunes purchases!

    Why can I all of a sudden not purchase on Cand Crush and on Words With Friends??  The credit card company has NOT stopped anything. I have no problems with other iTunes purchases!

    Contact iTune Support
    https://ssl.apple.com/emea/support/itunes/contact.html

  • How can I uninstall yosemite and reinstall Loin with out losing all my in formation and programs

    How can I uninstall Yosemite and reinstall Loin with out losing all my in formation and programsThis had been the worst os system apple has come out, too many errors
    too many to list.
    a few
    Losing all mail. and watching them disappear in front of my eyes and could nothing about it
    also when accessing cloud the screen just rolls in when accessing mail, like loading and loading and loading for 1 to 2 minuets.
    I did not up grade my Mac Book Pro, and is working fine,
    Just my iMac, its act kile avid card and it only happens access iCloud mail.
    so I want to and need to go back to Loin

    You can't unless you have a current backup of your old Lion system because the first thing you must do is erase the drive. It 's possible to use Target Disk Mode between your iMac and the MBP in order to clone the MBP to the iMac. However, that will still erase everything on the iMac's drive.
    Or you could see about getting Yosemite to work correctly. If you have IMAP mail, then your mail should be intact.
    Try these in order testing your system after each to see if it's back to normal:
    1. a. Resetting your Mac's PRAM and NVRAM
        b. Intel-based Macs: Resetting the System Management Controller (SMC)
    2. Restart the computer in Safe Mode, then restart again, normally. If this doesn't help, then:
    Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the Utilities menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    3. Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the Utilities menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu. Select Restart from the Apple menu.
    4. Reinstall Yosemite: Reboot from the Recovery HD. Select Reinstall OS X from the Utilities menu, and click on the Continue button.
    Download and install the 10.10.1 update.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible
                because it is three times faster than wireless.
    5. Reinstall Yosemite from Scratch:
    Download and install the 10.10.1 update.
    Be sure you backup your files to an external drive or second internal drive because the following procedure will remove everything from the hard drive.
    How to Clean Install OS X Yosemite
    Note: You will need an active Internet connection. I suggest using Ethernet if possible
                because it is three times faster than wireless.

  • I bought a Apple Care Protection Plan for a Iphone 4, but now i dont need it. Can i keep it and use it with a new model Iphone (iphone 5 when it comes out) or are the protection plans generation specific

    I bought a Apple Care Protection Plan for a Iphone 4, but now i dont need it. Can i keep it and use it with a new model Iphone (iphone 5 when it comes out) or are the protection plans generation specific?

    See Here for
    Transfer coverage of an AppleCare agreement
    http://support.apple.com/kb/HE58

Maybe you are looking for

  • No disk in Drive Message

    When I run Itunes I get the message "There is no disk in the drive. Please insert a disk into drive \device\Harddisk\DR5" . It appears over the itunes screen but it won't let me do anything and I have to exit through Task Manager..  Any Advice how to

  • Is there a way to update the itunes match to reflect changes that i have made on my computer

    Every time i update itunes match it looses my alterations to my playlists and undoes any alterations to any albums i have made. Is there a way to update the itunes match to reflect changes that i have made on my computer?(Only copies new playlists an

  • How to go to EndPoint

    Hi All, Please let me know how to go to display end point in XI from SAP Logon. I have to change old URL with new URL. Not sure for change URLs at EndPoint. Is it correct way or not. Please correct me if am wrong. Thanks, Subbu.

  • Read sensor and move servo

    Hi!, I have a proble. I don´t know how i must do to read sensors and at same time run the servos. I upload the program .VI http://www.gigasize.com/get.php?d=tg1jvvdzssc Thanks Attachments: servoaungulo6.vi ‏28 KB

  • I need to get rid of This Desktop/ Screensaver Urgently removed, any help ?

    Dear Apple Users and Staff, i have this Desktop/ Screensaver http:// Live updated Earth screensaver 1.4 , and i cant Find it, i have looked everywere on my Computer and i cannot Find it too delete it, please can anyone help me ?