Jump to content

silverdiamond

Members
  • Posts

    11
  • Joined

  • Last visited

Reputation Activity

  1. Like
    silverdiamond reacted to attila in Script Execution timing.   
    Hi @silverdiamond
    See the Example menu and Help tab.
    You probably want the following:
    Wavegen.Channel1.run(); Scope.single(); if(!Scope.wait()) throw "Stopped"; var ptp = Scope.Filter1.measure("Peak2Peak");  
  2. Like
    silverdiamond got a reaction from attila in Set a signal generator output to float.   
    So the only way of doing it is using an external relay and a digital output to drive the relay, correct?
  3. Like
    silverdiamond reacted to artvvb in How do you limit number of printed decimal places in print statement in a scripts?   
    Hi @silverdiamond
    The following should work:
    WaveForms' Script Editor is based on JavaScript.
    Thanks,
    Arthur
  4. Like
    silverdiamond reacted to artvvb in Deference between Amplitude and Peak2Peak and between Maximum and High?   
    Hi @silverdiamond
    These measurements are all briefly described in the in-app help's Scope -> Measurements section (5.11): 
    Some can also be seen as example code by "editing" predefined measurements in the app:

    For limiting max/min within a microsecond, careful placement of the acquisition window by setting your trigger, time position, and time base could work, making it so that the acquisition only covers a single period of the input signal is reasonable.
    The 3.20.27 beta's measurement "extent" feature also lets you limit the data measurements are applied to within a larger acquisition: 
     
    Alternatively, filtering out the low-frequency signals could work:

    Thanks,
    Arthur
  5. Like
    silverdiamond reacted to JColvin in How do I send a pulse train of specific length   
    Hi @silverdiamond,
    Presuming you are using the Analog Discovery 3 like in your other post, you can do this within the Wavegen instrument. The key detail would be to change the dropdown from "No Synchronization" to either Independent or Synchronized where you'll then get access to some timing parameters including length of time to wait before starting the defined waveform, how long to run the waveform for, and how many times you want the waveform to repeat.

    Let me know if you have any questions.
    Thanks,
    JColvin
  6. Like
    silverdiamond reacted to JColvin in I am using latest version of WaveForms and it looks like the signal has a 60 HZ wave, how do I filter it out?   
    Hi @silverdiamond,
    The 60 Hz is almost certainly from the ambient environment via the power grid; on my own AD3 with a BNC adapter and probe, I see this most notably when I am holding the probe tip without any load connected, though the amplitude on mine is much smaller (11 mV peak to peak vs your 46 mV and only around 55 dBV). When I am no longer holding the probe (still floating), the 60 Hz portion disappears from the plot view and the magnitude from the FFT drops to ~-70 dBV.
    (me holding the probe at the tip)

    (probe lying on my desk)

    If you wanted to remove this source (presuming you're seeing the frequency when you are holding the probe), I would recommend making sure that your device under test and yourself are properly grounded. The device under test can have a shared ground line through one of the MTE cables, you can ground yourself either by touching one of the ground pins or BNC shields on the BNC adapter, or use a grounding strap to help keep this noise to a minimum.
    The FIR filter on the Analog Discovery 3 can be used to filter out certain frequencies, although it's frequency range you can use is between 500 kHz and 30 MHz.
    Alternatively, you would use the FIR Windowing to eliminate noise and high frequency components from a signal (this would be used in case your system was sensitive to overshoot or ringing). From my testing, this works up to around 2 MHz before you start to experience signal attenuation that can occur with FIR filters. The pink and green traces in the splash screen for the oscilloscope section of the reference manual offer a visual of smoothing out a signal: https://digilent.com/reference/test-and-measurement/analog-discovery-3/reference-manual#oscilloscope.
    Let me know if you have any questions.
    Thanks,
    JColvin
×
×
  • Create New...