Frequency sweep input output

Hi
Using Labview 7.1 and PCI 6071 DAQmx card i want to design a frequency sweep application. I mean  that i need my analogue output channel to give a sine wave with incremental frequency of 100 Hz step, starting from 10000 Hz untli  100000 Hz (10000 Hz, 10100 Hz...100000 Hz). This wave is applied on a kind of a transformer, and each time the frequency changes, i need an input channel to acquire another also sinus wave coming from this transformer and measure its amplitude, in order to examine its frequency response. So, i came up with the attached vi.
The problem is, that when "sweeping" takes place ,i get amplitude values between 2 and 6 or even 7 volts something that  can't be happening. I know that the amplitude values i should get are around 2 volts  (+/- 500 mV maximum).
I think, that the problem should be in some kind of "non-synchronization" of the input-output channels when the vi enters the loop to start changing the frequency.
Just to be more clear, i need my vi to do these steps in order:1. constantly output the 10000 Hz wave 2. acquire the input wave 3. measure its amplitude 4.transform the frequency into 10100 Hz 5. acquire the input wave 6. measure amplitude  etc... 
The odd thing is that when i physically connected the output channel with the input one to see if the frequency sweep is done, it worked fine. I mean that i did get in the input channel almost exactly the signal i generated.
Thanks in advance, and i hope i was not tiringly analytical..
Attachments:
sweep3.vi ‏140 KB

Hi
Please take a glance at the two attached vi's.
The first is the one i use in order to generate a steady frequency sinus wave,feed it to my transformer and acquire the also sinus output of the transformer  through my input channel. Using two channels of an external oscilloscope i check and notice that for many frequency values, both sinus waves are steady and noiseless, with the expected amplitude voltages.
Now, using the second vi, in order to "sweep" the wave and check my transformers amplitude response, then these impossible amplitude "up's and down's" again came up.Again by looking at the oscilloscope's screen i can see the noisy waves tha "confuse" and the oscilloscope and my input channel, and so result in wrong amplitudes.
Based on the above, i have to assume, that the problem lies in the sweep mechanism design i use. Also, after trying several different ways to sweep, i came to the conclusion, that the problem comes up whenever i use the second Basic Function Generator.vi inside the loop. Could it be that it needs triggering again?
I'd really use some help, or maybe even ideas for different design approaches for the frequency sweep.
Thanks in advance
Attachments:
Multi-Function-Synch AI-AO3.vi ‏164 KB
sweep4.vi ‏142 KB

Similar Messages

  • Frequency problem in input-output control loop, LabviewRT

    Hello,
    I want to write a cotrol loop in LabView real-time. My target is to acquire a data from 5 channel in frequncy about 100 kHz, integrate the data and send them to the output in frequency about 10 kHz (every 10th sample). I made twou time-loops. One for acquiring and integrating, second for sending them to output. This loops are connected throug the rt fifo. 
    My problem is with a speed of acquisition. When I use "Hardware-timed single point" for acquiring, the result frequency is about 50 kHz. Continous sample and finite samples give me the desired frequency, but the output is not in in the same time as input (output waits until the input collects all data). Is there any problem with communication with the input and output channels in the same time?
    My Hardware: 
    Computer: NI PXIe-8108 in NI PXIe-1062Q
    card: NI PXIe-6358
    My vi is attached
    Attachments:
    rt_headless_v1.2.vi ‏133 KB

    Dear Kocman,
    thanks for including your VI, it is useful to understand better your application.
    However, the detailed requirements are still not entirely clear for me.
    I think, starting with the right architecture and proper timing and synchronization schemes could save you a lot of effort while they ensure proper operation.
    First, it should be defined what kind of timing your application requires. More specifically, if it needs to be hardware or software timed.
    From your description it sounds like you would need hardware timed aquisition synchronized with generation, although your code tries to implement it using timed loops, which are inherently software timed.
    You can find some useful additional information about the two methods and a nice white paper about synchronization techniques here:
    http://zone.ni.com/reference/en-XX/help/370466V-01/TOC11.htm
    http://www.ni.com/white-paper/4322/en
    Probably it helps to review them or even try to test some of the methods to get a better feeling about it.
    I hope this helps you to get to the proper solution.
    Best Regards,
    Adam Cseh
    Applications/Systems Engineer
    National Instruments

  • Plotting frequency response of sweep input

    I am trying to find the frequency response of an input at a given frequency and then plot the frequency response for the entire frequency sweep. How can I do it in S&V assistant?

    Hi popcorn,
    Open Sound and Vibration Assistant
    Add Step
    Click "Add Step" >> "Acquire Signal" >> "Analog Input" >> "Voltage"
    Choose device and channel analog input voltage
    Create Signal
    Right click under DAQmx Acquire step and select "Create Signal" >> "Create Signal"
    Create Frequency Response step
    Right click under Create Signal Step and select "Analysis" >> "Frequency-Domain Measurements" >> "Frequency Response"
    Choose the two signals you would like to use
    Create the Frequency Sweep step
    Right click under the Frequency Response step and select "Execution Control" >> "Sweep"
    Add all other steps (DAQmx Acquire, Create signal and Frequency response) into the Sweep step box
    Take a look at the project that I have attached as an example.  I hope this helps!
    Regards,
    Ima
    Applications Engineer
    National Instruments
    LabVIEW Introduction Course - Six Hours
    Getting Started with NI-DAQmx
    Attachments:
    Freq Sweep.seproj ‏66 KB

  • Frequency sweep with peak frequency

    Hi guys, I need some help here. I´m using a NI 9215 to do a frequency sweep from 30 to 90 Hz.
    So far so good. Now I need a resulting resonance frequency at highest voltage.
    I tried a max peak frequency VI but couldn´t get it to work.
    Any idea what to do?
    mfg, Andi
    ok, here is my sweep.vi for better understanding
    Message Edited by andinew on 08-11-2009 04:14 AM
    Attachments:
    sweep.vi ‏216 KB
    create_log_frequencies.vi ‏15 KB

    Hi Andi,
    one thought first off: looking at your "create_log_frequencies.vi", I realized that it generates linear frequency hops, not logarithmic ones...
    But on to your question: to find the frequency with the highest amplitude (this will be your resonace, I guess), you will have to look at the entire signal - your "sweep.vi" code iterates the measurement and interpretation five times per second, independantly of the speed of the sine sweep.
    My advice would be to generate one waveform containing the whole sweep run, and writing this sweep block for block with a constant sample rate onto the output. You could then read back the response with blocks of the same size as your output, do the single tone measurement on this block and store the resulting frequency and amplitude in an array preserved trough a shift register or simply into two auto-indexing tunnels. The latter is okay as you don't need a "while loop" in the measurement loop (you know how long the analog output loop runs - why not use this information to configure a "for loop").
    After your analog input "for loop" has finished, search your amplitude array for the maximum - then use the found element's index to index the frequencies array and return the corresponding resonance frequency.
    A good starting point could be the example I wrote a couple of month ago: it runs continuously the same "sweep" (you'd have to adjust the waveform, I know) and reads back the stimulus and the response (wire the output to your probe and parallely to ai0, your response signal will be connected to ai1). You can then insert tone measurements etc.  at the marked section...
    When trying to open the example, you will be prompted to find a VI called "_Get Terminal Name....vi" - you can find this VI at the following location: C:\Programme\National Instruments\LabVIEW 8.5\examples\DAQmx\_Utility\_Utility.llb
    As an afterthought: the "phase difference" you are calculating between every other sample of the analog measurement array is a bit confusing: if oyu need the phase difference between the original signal and the stimulus response, you will need to wire the stimulus to a second input and compare the phases of the two separate signals...
    Best regards,
    Sebastian
    Message Edited by SFK on 08-12-2009 04:12 PM
    Attachments:
    Multi-Function-Synch AI-AO mit Signalgeneration.vi ‏91 KB

  • When using the LabVIEW Simulation Module, how can I start a frequency sweep with the Simulation Chirp signal generation VI at an arbitrary time after the simulation initial time?

    I'm using the Simulation Loop on LV RT when interacting with some hardware (i.e. all I/O is happening in the Sim loop). I'm going to conduct a frequency sweep test on the hardware and want to use the Simulation Chirp function. However, there is no way (that I can see) to trigger the Chirp to start at some event (i.e. I click a boolean on the front panel and enter a case statement). The Chirp is tied to the global time of the Simulation loop and so are it's input parameters. Is there a way to make it relative to some time at which an event happens?

    Craig,
    Your solution will 'cut' the beginning of the signal and only show the signal afterwards.
    To control when the chirp should start, the best option is to use the Chirp Pattern.vi ( in the Signal Generation palette) and use a Lookup table to control when to feed the time. The shipping example (in LabVIEW 2013) shows how to code using a lookup table.
    C:\Program Files (x86)\National Instruments\LabVIEW 2013\examples\Control and Simulation\Simulation\Signal Generation\SimEx Chirp.vi
    Then, to start from a toggled boolean, look at the example:
    C:\Program Files (x86)\National Instruments\LabVIEW 2013\examples\Control and Simulation\Simulation\Signal Generation\SimEx Step.vi
    and Here is the example in 2013 (in attachment):
    Barp - Control and Simulation Group - LabVIEW R&D - National Instruments
    Attachments:
    SimEx Chirp with Delay.vi ‏241 KB

  • Error inserting acpi_cpufreq: Input/output error?

    Hi,
    I'm trying to set up frequency scaling on my Intel i5 760 as per the wiki.
    The only problem is I can't seem to load the acpi_cpufreq module!
    # modprobe acpi_cpufreq
    FATAL: Error inserting acpi_cpufreq (/lib/modules/2.6.39-ARCH/kernel/arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.ko.gz): Input/output error
    There is no additional output in dmesg from this error.
    I'm running x86_64 btw, and I notice that it's trying to load an x86 module, could this have anything to do with it?
    Thanks!

    Hi
    Did you find a solution? I'm having exactly the same problem with acpi-cpufreq. (eeepc 900). I tried modprobing the p4_clockmod as well, which some older posts say is required for my machine, but I got the same error.
    Both modules appear to be available -
    ls /lib/modules/$(uname -r)/kernel/arch/x86/kernel/cpu/cpufreq/
    acpi-cpufreq.ko.gz     gx-suspmod.ko.gz  mperf.ko.gz        powernow-k6.ko.gz  speedstep-ich.ko.gz
    cpufreq-nforce2.ko.gz  longhaul.ko.gz    p4-clockmod.ko.gz  powernow-k7.ko.gz  speedstep-lib.ko.gz
    e_powersaver.ko.gz     longrun.ko.gz     pcc-cpufreq.ko.gz  powernow-k8.ko.gz  speedstep-smi.ko.gz
    Last edited by belbo (2011-06-11 11:07:50)

  • Setting up frequency sweeps using HP33120A

    I am trying to set up a frequency sweep in LabVIEW by programming a HP33120A Function Generator. Would appreciate if someone who has worked on it suggest a method appropriately. Thanks!

    By manually, do you mean from the front panel? If you really mean programtically, then use ag33xxx - Config Waveform like I said inside a loop. A shift register would be initialized to your starting value. Inside the while loop, wire the shift register to the frequency input of the ag33xxx - Config Waveform function. Also inside the loop, increment the shift register by another control that you specify a value for. Add another control for a stop value and terminate the while loop when the current value of the shift register is equal to/greater than the stop value. I've attached a picture that I did just a couple of days ago for an almost identical question (just a different instrument). The picture has a constant for the start and stop value so if you want to use different values at times, replace them with controls.
    If you want an uneven step value, you can place an array of values outside a for loop and auto-index the array.
    Attachments:
    Increment 370A.JPG ‏8 KB

  • External Hard Drive Input/Output error

    I recently started having problems with an external hard drive setup that I did not have problems with prior to upgrading to 10.5.5 and trying to setup the drive to be compatible with Time Machine.
    The hard drive enclosure that I have has 2 bays for two SATA drives. I have used this enclosure without any problems until I tried to get 1 drive to act as the backup drive for Time Machine and the other to be storage. I formatted them using Drive Genius. I used the option for GUILD or GUIL which it said was the better format for using with Time Machine.
    The first problem I ran into since upgrading and reformatting the drives is I got an "input/output" error the first couple times I connected the drive via USB to my Mac. I could still use the drives but I got weird errors every once in a while like "input/output error" or "device was not ejected properly" even though the device had not been unplugged.
    Now the drives will not mount using OS 10.5.5. The drives show up when I open Disk Utility, but I cannot get them to mount. I have ran Disk Utility First Aid, and it says the drives are fine. There is one error that shows up when I run the "Repair Disk" feature. It reads "Invalid content in Journal". But Disk Utility also says "The volume was repaired successfully".
    I have seen some posts when I do a search in google about this issue and it seems this is a known issue. Every suggestion I see says to insert your Tiger DVD and reformat the drive using that and the problem will be solved. The only problem with that is I have a lot of important files on the drive that I cannot lose. I had the files backed up until I moved them to the new drive a while back. Now I do not have a backup because I was in the process of switching to bigger drives and erased the old drives after doing so because everything was working fine.
    I am hoping someone out there may have some suggestions (other than erasing the drive) to get my dives to mount so I can transfer the data off to another drive and reformat after.
    Thanks,
    Paul Rugg

    Thanks for the suggestion.
    Do you think that would work better than Drive Genius? I bought Drive Genius 2 and it does not even see the drives when they are plugged in unlike Disc Utility which can see the drives but cannot mount either one.
    Maybe this following post I made to a different questions may help. The data on the drive is other buying another program for if it will work. I think my next step may be to go over to a friends place and try to mount the drives on his computer and transfer stuff off if they connect.
    text below posted to other question relating to external hard drive problem.
    I have recently had the same mounting issue with my new external hard drive. I just purchased a new 750Gb Western Digital Sata drive and got everything transfered over to it. Immediately, I got an error saying that the drive had been ejected incorrectly even though it was still plugged in. I was a little curious. I restarted the computer (hard drive still plugged in via USB 2.0) and the drive showed up just fine. I plugged another 250Gb drive into the same case (2 bays) and the 250GB drive showed up just fine.
    Well, I then noticed there was an OS upgrade available when I ran Software update so i ran it and when I rebooted the drives were gone. I can see the drives in Disc Utility, but they will not mount. Drive Genius cannot see either disc. Disc Utility says I need to repair the drives, but when I do it says they are fixed but they don not mount.
    The problem really seems to be related to mounting USB external drives. I got ahold of 2 seperate external firewire hard drives and one shows up just fine while the other has the same problem (both work on other systems. I would try wiping the drives and reformatting but ALL MY stuff is on them and not everything has been backed up. Yuck! I have not tried connecting my hard drive to another Mac yet.
    The drives being used are #1 Maxtor Maxline Plus II 250GB SATA/150 HDD 1.5b/s 7Y250m00654ra
    and #2 Western Digital WD7500AACS WD Caviar GP Green Power drive.
    I have another post similar to this and I have not received any feedback, but I have been doing my own searching and have found similar posts on the net.
    Anybody have any clue what might be going on here? It really seems to be related to my upgrade.

  • Text Input/Output

    I have downloaded the text input/output widget found here:
    http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&loc=en_us&extid=1253 021
    I inserted the input animation on one slide and the output
    animation on another.
    When I preview, the input box doesn't show up. What am I
    doing wrong?
    Thanks in advance for help or advice!

    Hi there
    Likely you are using Captivate 3 and you have upgraded your
    Flash Player to version 10.
    Click
    here to read a thread where I believe one of he Adobe Captivate
    team sheds a bit of light on the issue
    Click here for an Article
    and link for uninstalling Flash Player/Plug In:
    Click here for an Article
    and link for installing and older version of the Flash Player/Plug
    In:
    Version 9 should allow things to work okay with Captivate 3
    Cheers... Rick

  • I am in mavericks disk utility recovery mode as my mac book will not boot up & stays only on the grey apple screen. When I verify the disk I get open error5 :input /output error on Syst stuck on 1 minute pouring out over 50 error messages & still counting

    I am in Mavericks disk utility recovery mode as my mac book pro will not boot up & stays on the Apple grey screen . When I verify disk permissions I get
    Open error 5:"input/ output error" on syst with over 50 of this messages & still counting . Disk Utility says 1 minute
    But this has been going on for over 10 mins .
    I can not verify disk or repair disk .
    I have tried to reinstall mavericks operating system but it says my hard drive is locked which is very strange .
    Does anyone know what is going on here ?
    My system looks like it has been totally corrupted . Thanks Andrew

    Could be. The "lock" isn't actually looking for a password.
    WARNING: This will completely erase the ENTIRE hard drive.
    What you would need to do is boot to recovery > disk utility > select the MAIN drive on the left side > partition > change partition layout from CURRENT to 1 PARTITION > ensure on the right side it says Format : Mac OSX Extended (Journaled) then push APPLY.
    Then if it will allow us, close the windows until you see the 4 options popup again and select "Reinstall Mac OS X" select the Mac HD and you should be good to go!

  • I am trying to run my electric guitar in garageband 11 but there is no options to modify the inputs/outputs to built

    There is no option to modify the sound input/output to built-in input or built-in output.  I'm guessing the electric guitar is not being registered.  I am using a 1/8" mono -1/4" mono cable to go directly from the output jack on my electric to the headphone jack on a macbook pro.  How can I get this to work?

    When you use an external device for input, GB often automatically selects that same device for output. It's an ease-of-use feature for most external devices. If your device doesn't give you the option to output to speakers/headphones, you don't want GB to do that.
    Within GB, go to GB>Preferences, Select the Audio/Midi tab. In the Drop-down under output, choose "Built-in Output" and connect your external speakers/headphones to the Mac's headphone port (Alternately, you could use system preferences to direct your Mac's audio-output to your speakers and select "System Setting" in GB Prefs. The Mac's own speakers aren't going to be nearly as much fun as running it to your big speakers/headphones).
    Hope that makes sense...

  • How to get center alignment of Input/Output field in Module Pool

    Hi Friends,
    I am using Input/Output field in my Module pool program. Dynamically i am submitting the text to Input/Output field. What i want is i want to display the submitted text as center. By default It is displaying left aligned.
    Thank U in advance.
    Mahender.

    Hi,
    Use syntax "Centered".
    take one variable push into the field
    write w_variable1 to w_variable2 centered.
    next push the varaible to Destination screen input/output Field .
    Make sure the Field the Character Type.
    Prabhud@s

  • How to check current input/output rate on router subintenterface via SNMP?

    How to check current input/output rate on router (2821, etc..) subintenterface via SNMP, like cacti monitoring system.
    I cant find OID to make this with snmpwalk.
    Or there is no way to check current load by this way? Only polling?
    P.S. Ethernet subinterface, of course.
    With great respect, S.A.

    Hi,
    Try to use:
    1.3.6.1.4.1.9.2.2.1.1.6 - InBitRate
    1.3.6.1.4.1.9.2.2.1.1.8 - OutBitRate
    1.3.6.1.4.1.9.2.2.1.1.28 - ifDescription

  • Disc image input/output error

    When burning a disc image using disc utility, I get the ever so popular input/output error message. I cannot find anywhere on these posts a solution to this problem. It is not dirty discs, etc. It happens when I try to copy dvd's... which are not licensed, etc.

    Could be so many things, Input/Output errors are generally loosing contact with a device for a variety of reasons, do you get any error # with that?
    Open Console in Utilities & watch for more info whn you try to burn, or open the Disk Utility Log if there.

  • "input/output error' when making disc image from DVD

    I've had problems installing Logic, and a Pro Apps Genius at Applecare suggested I try making an image of the problematic DVD (Audio Content 1) and then trying an install that way.
    While I can make an image of the Install disc to my desktop fine, the Audio Content 1 disc reports an "input/output error".
    This means I'm unable to copy the disc and then successfully install my Logic Studio.
    Any ideas?

    Thanks for your answer.
    Yes, I thought that might be the case - but I'd taken my Mac and Logic disks to a Genius bar, and the 'Genius' had said he'd fixed the issue. I just wish he'd explained what he did and why he didn't replace the faulty disk(s)!
    But is there any way around having the claim a disk, now I'm living abroad and my 'warrantee' has run out? It's going to be a pain in the fundament trying to claim a replacement set.

Maybe you are looking for

  • Unicode conversion - Import phase problem. (Preparing target system)

    In the System copy phase, the  ABAP export is complete. In the setting up target system phase, while the ABAP import starts the sapinst gives out the below error message : File name : test_migration.log START---- D:\usr\sap\XYZ\SYS\exe\nuc\NTI386\R3l

  • GL/AP End user scenarios

    Hi All, Can anyone please provide me with some end-user scenarios for training. I am looking for some in AP-MM and GL. Thanks alot in advance. --SJ

  • Whether Item Level release is possible in PO [Purchase Order] ?

    Hai SAP Gurus,                          Whether Item Level release is possible in PO [Purchase Order] ?                           Guide me..

  • Moving objects incrementally based on page number

    Hey all, Trying to automate a group of objects moving down a page, driven by the page location in a book. New to scripting, just need some pointers on best practise, gotchas etc. Any thoughts?

  • Create guides

    Hi, i'm new to Illustrator CS4 and i need to used it at work. I was wondering with i'm not able to create new Guides with keyboard shortcut. in settings it is set for CTRL+5... but in the menu View > Guides > Make Guides it is disabled (grayed). any