Frequency sweeps using HP33120A

Hi,
i am new to Labview 
I am trying to set up a frequency sweep in LabVIEW by programming a HP33120A Function Generator.with device Driver have i implemented Sweep with same Step in my posted Code,now i want to improve Sweep function durch varied step in different frequency range,for example,from 10 Hz to 1000Hz :10Hz to100Hz with 10Hz step sweep, from 100Hz to 1000Hz with 100Hz step sweep.  Would appreciate if someone who has worked on it suggest a method appropriately. Thanks!
note:Labview 2009 SP1
Attachments:
fast frequency measurement program.vi ‏248 KB

Dennis_Knutson wrote:
It seems overly complicated to me, especially with that silly sequence structure. All that you have to do is use the Ramp Pattern to create an array of frequencies. Use two of them with different a different delta and combine the arrays. Pass the combined array to a for loop with the function to set the frequency and let the magic of autoindexing do its thing.
thanks for your suggestion,i try it later

Similar Messages

  • 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

  • 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

  • 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

  • Reading and frequency sweep on agilent 4980a

    Hi all.
    I newbie on Labview myself but always using this forum to answer all the problem that i had.
    Currently I work at compression measurement and do the measurement of load cell and impedance at the same time. I use labview command that included when installing driver.
    My problem is that I need to utilize agilent 4980a to read the impedance value on 1K and force value on load cell while probe is moving to compress the spesimen (I reach this step) but I need to add program to stop the probe and execute frequency sweep (and store it in additional file) without terminating the program it self to continue on each point I desire. When i see example program on agilent 4980a, Program to start frequency sweep is different and it's quite confuse me.
    Is that any way to inserting frequency command on loop in labview?
    I upload my flowchart.
    THANK YOU SO MUCH
    Ananta
    Attachments:
    2014-06-26 15_00_15-_Diagram1.dia (D__portable apps_DiaPortable_Data) - diaw.exe.png ‏39 KB

    Ananta,
    For most instrument control applications, you can replicate commands as you would enter them on the instrument. So if you can perform this frequency sweep in the middle of a test on the instrument itself, you should be able to send serial commands from LabVIEW to mimic this behavior. Once it has been established this task is possible, I would recommend combining parts of the instrument driver examples to try to attain this functionality.
    Karl G.
    Applications Engineer
    ni.com/support

  • 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

  • Frequency measurement using Labview 8 and Fieldpoint FP-CTR-502 - wind speed measure

    All the information regarding this kind of application seems to be outdated, I did not find no solution or example to construct frequency measurement VIs using Labview 8
    The examples at "NI Discussion Forums :
    Most Active Hardware Boards :
    FieldPoint Family :
    Low-Frequency measurements using counter/timer" is very strange and so far the steps given seems to be usefull only do old Fieldpoint Explorer.
    I was trying to find a way to learn how to make an anemometer send its signal to a FP-CTR-502 but I have no sucess.
    I am realy very new on this Labview stuff, any help would be welcome.

    (similar thread here)
    Message Edité par Mathieu R. le 12-23-2005 02:28 PM
    .mrLeft{float:left} .mrInfo{border-left:solid 1px #989898;font-size:x-small;color:#989898}
    Mathieu R.  
      CTD - Certified TestStand Developer / Développeur TestStand Certifié  
      CLAD - Certified LabVIEW Associate Developer  

  • Frequency of use for an ABAP object  ?

    Hi all,
    i need in ABAP to get the frequency of use for an ABAP object like a program or function module. For example, for a program i would like if it's used often (by week, by month, day) or not.
    Cheers.

    Hi,
    You can use transaction STAT or STAD for finding the statistics of usage regarding report or transaction.
    You can also use the Function module <b>SAPWL_WORKLOAD_GET_STATISTIC</b> for getting the statistics of reports executed.
    You need to get the dir from Function module <b>SAPWL_WORKLOAD_GET_DIRECTORY</b> and loop through the dir returned by the and pass the dir(internal table ) fields to the Function module SAPWL_WORKLOAD_GET_STATISTIC for getting the details
    Hope this helps.

  • Can I produce a frequency sweep a PXI-5652 from 1GHz to 2GHz and back down to 1GHz at a rate of 1KHz with RT?

    I need to produce a triangular frequency sweep over a range of at least 1GHz.  This sweep will start at 1GHz go up to 2GHz and back down to 1GHz and repeat the cycle.  I need this cycle to repeat at a rate of 1KHz.  The sweep must be as smooth as possible with the frequency steps being no more than say 1MHz.  I have a RT controller chassis that I can install the PXI-5652 into.  If I dedicate one of the processor cores to this function and reserve the second core for my data acquisition and processing do I have and chance or am I just dreaming?
    Thanks,
    Bruce Barnes

    Hi Bruce,
    If I interpret this correctly that you need to go from 1 GHz to 2 GHz and back to 1 GHz in 1 ms (you want to repeat this at a rate of 1 kHz) then this isn't possible with the PXI-565x series of RF Signal Generators. These have a tuning time of around 1-5 ms for one frequency step, and tuning from 1 G to 2 G in steps no greater than 1 MHz would mean at least 1000 steps.
    Regards,
    Andy Hinde
    National Instruments

  • Low-Frequency measurements using counter/timer

    I am trying to measure speed, and am using the FP-502 counter timer module to count the pulses from my sensor. The field point example that uses a fixed width gate pulse will not work for my appliation because I need a gate pulse so big that it updates way to slow.
    Does anybody have any sugestions on how to measure a low frequency signal using a counter/timer?
    Thanks
    Dan

    Hello guys
    Thanks for all your sugestions I have the final results. I got it to work but I would like to add some comments for anybody who is trying to attempt this.
    Triggeing on the gate is a must for low frequency measurements. I used the divide by sugestion however using a factor of 3 only gets you about 60 Hz after that you can't sample fast enough. My application required me to measure from 0 to 150 Hz. I added a "gear shifter" routine where the terminal count was set to 3 on frequencies lower then 45 Hz and 15 for frequiencies greater than 45 Hz. Using a terminal count of 15 for all measurements made the udate rate on really low frequencies way to slow i.e. .5 seconds for 20Hz (check the math on this).
    I a
    lso needed to cascade the counters. At low frequencies the count went higher than 6550. Using the previos channel function of the fieldpoint module enable me to get 32 bit worth of terminal count data.
    Finally I needed to add a timeout condition for 0 Hz. If there are no pulses coming from the senser the program displays the last value read. That won't be 0. So I added a time out routine that if I didn't see a pule in a certian amout of time, output 0 and reset the gate count.
    Thank you for you help you relly saved me. I hope my comments made sense.
    Dan

  • HP4284A Frequency Sweep with frequency points read from a tab delimited excel or lvm file

    Hello,
    I am using a HP4284A, and have downloaded the file here. However, I cannot figure out what format of file it takes as input: I understand this should be a .lvm tab delineated value file, but in what order is the data? If someone could provide an explanation, or an example data file, I'd greatly appreciate that.
    Thanks.
    Ps. I know the linked article says that 'The frequency points are as defined for the oscillator in the HP4284A user manual.', bit I have been through the manual from end to end, and I can't find anything of the sort. The closest I've been able to find is the codgin for remote access, but that isn't very relevant as Labview and the coding (C++, I believe) used are very different.
    Solved!
    Go to Solution.

    Sure. I wound up adding some additional features to it, though, badly. It's perfectly functional but badly coded (veteran users please don't laugh); I could probably optimize it now, having learned more, but I'm too lazy to. There's a writeup, too.
    Attachments:
    HP4284A Frequency and voltage sweep.vi ‏288 KB
    Program writeup.docx ‏12 KB

  • PXI-4461 frequency sweep.

    Hi,
    I'm writing a sweep function for PXI-4461 to measure frequency response. I fixed the number of samples of sine wave as 100 and the sampling frequency is varied by ten times the output frequency. The Input and Output channels clock rates are changed on the fly according to the output frequency. However, I found that the PXI-4461 is needed to stop the task before changing the clock rate, am I right? Therefore, the output signal from 4461 become on and off repeatedly due to the task start/stop. I want the signal generated continuously, any suggestions?
    Bill

    If you are using LabVIEW, you could try the swept sine in the Sound and Vibration Toolkit. It uses a constant sample rate and update rate and changes the generated frequency on the fly. There are no glitches in the output.
    Doug
    NI Sound and Vibration

  • How to use a photogate for frequency measurement using a NI USB-6211

    Hello, I am extremely new to LabView and am having trouble using the counter feature (or if this is even what I should be doing). I am trying to use a photogate as a frequency counter when a voltage spike is created by blocking the sensor. This will then be put into RPM and used to evaluate a small motor dyno I am creating. If anyone has any help or previous vi's they dont mind sharing it would be greatly appreciated. The photogate specifications are for an optek opb930l55. Thanks 

    Configuring a counter input task will be a little different depending on the type of DAQ card that you are using to read the digital pulses.  You just need to wire the voltage from the photogate to one of the counter pins on the card.  Then follow one of the many examples for measuring the frequency of pulses.  If your card allows it, I would suggest choosing the Counter Input >> Frequency measurement from the DAQmx Create Channel VI.  If you have questions about how to do this with your specific DAQ device, please provide more information
    Zach C.
    Field Engineer
    Greater Los Angeles

  • Good FM Frequencies to use when travelling with iPod

    I've got a few trips coming up and I was wondering where I may find a listing of good frequesncies for my DLO iPod transmitter while driving. I need frequencies for:
    Scranton, Binghampton, Syracuse and Chicago
    Thanks

    I read from somewhere that it's best to search for a station with a strong signal, then go 2 frequencies down. So, if your radio picks up 100.7 very strongly, then set your DLO to 100.3 (100.7 -> 100.5 -> 100.3)
    Or basically, just use your radio to scan for a frequency that's not being used, and set your DLO accordingly.

  • Frequency sweep with DAQmx

    The following is the setup :
    LV7.1 + PCI_6229 + WIN_XP
    For controlling the drive rpm of a servo motor, I need to generate a range of frequencies from 60 to 2500 at 10 Hz intervals.
    With the DAQmx polymorphic VI,  "CO Pulse Freq" , I can generate  a particular frequency.
    But if I have to change it on the fly how do I do it ? Like ideally if
    there was a property node for the polymorphic VI (!) , I could easily
    do it. But it does not have one such node for frequency and hence the
    query.
    Having started the frequency generation at a default value, I would
    like to alter it programmatically without having to stop the VI and
    reload the fresh frequency.
    Any suggestions welcome.
    Thanks
    Raghunathan
    Raghunathan
    LV2012 to Automate Hydraulic Test rigs.

    Hello SG_ENGINEER,
    So that is possible, but it is a completely different approach than that mentioned above.  You would have to use a continuous analog output program and change the output waveform.  Check out the attached example.  I modified a shipping example to do an analog output and increment the frequency of the output waveform. 
    -Alan A.
    Attachments:
    Continuous_Analog_Out_Update_Sinewave.vi ‏100 KB

Maybe you are looking for