Search the Community

Showing results for tags 'wavefoms'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • News
    • New Users Introduction
    • Announcements
  • Digilent Technical Forums
    • FPGA
    • Test and Measurement
    • Measurement Computing (MCC)
    • Add-on Boards
    • Digilent Microcontroller Boards
    • Non-Digilent Microcontrollers
    • LabVIEW
    • FRC
    • Other
  • General Discussion
    • Project Vault
    • Learn
    • Suggestions & Feedback
    • Buy, Sell, Trade
    • Sales Questions
    • Off Topic
    • Educators
    • Technical Based Off-Topic Discussions
    • Archived

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Website URL







Found 18 results

  1. Hi Attila I am now the proud owner 3 Digilent Analog discover devices . ( 2x AD2 & 1x ADP3250 ) I have posted many post on the forum you can just make search for SIB in the forum and you will find all my posts. I would like you help to get this standard driver set up and running using the Java script engine of Waveforms . Below is the script that I want to get working and also is a waveforms work bench file also . This is after all the real power of the waveforms work bench and Analog discovery and professional devices Best wishes Simon --------------------------------------------------- function UART_data_collect() { // ------------------------------------------------------------------------------------------------------------ // // The aim of this script is to collect data from a UART serial stream from a embedded microprocessor board // and process the data from serial stream and display the result on the scope display // // ------------------------------------------------------------------------------------------------------------ // // Status // // 1) Code executes without error // 2) Code does not receive data from the UART serial port // even through the same ports are used manually to recieve data // from MCU using the manual protocol window with the same settings. // Steps to add A) Serial stream Protocol handler B) Scope display script // // ------------------------------------------------------------------------------------------------------------ clear(); // clear Output log if(!('Protocol' in this)) throw "Please open the Protocol instrument"; if(!('Scope' in this)) throw "Please open the Oscilloscope instrument"; Protocol.Mode.text = "UART"; // make sure UART tab is selected Protocol.UART.TX.value = 0; // Set up UART TX pin on Digilent AD2 :: DIO_0 Pin Protocol.UART.RX.value = 1; // Set up UART RX pin on Digilent AD2 :: DIO_1 Pin Protocol.UART.Bits.value=8; // Sets or gets the UART number of bits. Protocol.UART.Parity.text="None" ;// Sets or gets the parity setting: “None”, “Even”, “Odd”, “Mark (High)”, “Space (Low)”. Protocol.UART.Rate.value=234000; // Sets or gets the baud rate setting Protocol.config(); // apply configuration changes now Protocol.UART.Receiver(); // reset receiver - that is too start receiving data print(" UART Serial Bus initialised . Beware this is 3V3 Logic RS232 & Not True +/- 15V Rs232" + "\n\r" ); print(" UART TX line connect to AD2 DIO Port " + Protocol.UART.TX.value + "\n\r" ) ; print(" UART RX line connect to AD2 DIO Port " + Protocol.UART.RX.value + "\n\r" ) ; print("\n\r"+" UART initialisation complete " + "\n\r" ) ; Scope1.Time.Rate.value = 0.2; Scope1.single(); //Scope1.wait(); Scope1.Ref1.Clone(Scope1.Channel1); Scope1.Ref2.Clone(Scope1.Channel2); Scope1.Ref1.enable = true; Scope1.Ref2.enable = true; var rx = [] var rx_process = [] while(wait(0.2)) { // wait 0.2 sec and repeat while not stopped rx = rx.concat(Protocol.UART.ReceiveArray()) // append new words if(rx.shift()!=0x0A) { continue; } else { // read one of text ; rx_process=rx; rx=[]; Print( rx_process ); } // (rx.length>10) // if(rx.shift()==0xAA) continue; // if (rx[1] == 0xB5 && rx[2]== 0x11 && rx[7] == 0x09) // { // find the temperatures for displaying // // // print ("Temp 1: " + (rx[8]/2).toFixed(1) + " °C Temp 2: " + (rx[9]/2).toFixed(1) + " °C"); // // } // decimal data devided by 2 bring °Celsius // // = } // // ref // // // // notes // ===== // // 1. On the AD and AD2 the digital IO pins use LVCMOS 3V3 standard. These are supplied at 3.3V and have 200 Ohm PTC and clamping diodes to GND and to 3.3V for protection. // It will drive the digital wires at 3.3V and connecting 5V signals directly, without series resistor, it will sink about 10mA through the PTC and 3v3 diode. // As for noise, make sure to have ground connection between the two devices. // // 2. The WF/Protocol/UART uses the Stop length option only for transmission, this is not relevant for reception. // // 3. The UART TX filed lets you type in characters, hexadecimal values are not supported here. // Special chars you can copy/paste from other place or send from file. } //************************************************************ // Main program block : Start //************************************************************ clear(); // clear display screen print(" Script Main body start " + "\n\r "); UART_PID_data_collect(); //************************************************************ //************************************************************ // Main program block : Stop End ADP3250_UART_DATA_TO_SCOPE.dwf3work
  2. I just want to read back something besides 0x00 on my raspberry pi. Is it possible to adjust the MISO to be 0xAA for example? This is with respect to the WaveForms program under the Logic sub menu. The Analog discovery is showing me what the Master is writing (DEADBEEF), so I am confident I have hooked things up correctly. I'm not sure if this is even possible, please feel free to correct me either way. Edit: I found the protocol submenu where I can write custom scripts, this will probably achieve what I want. I will add what I find to this topic if I get it working.
  3. Hi folks, I suffer from migraines, and when they are bad, I struggle with light sensitivity. This means I like to avoid user interfaces that have full brightness (or darkness) colors as it tends to cause too much contrast and can be painful for me to look at. I was thrilled to find that I can modify the stylesheets for Qt myself and was able to improve a lot of things. I was also able to change the trace colors to be a little dimmer. But I still can't figure out how to address anything that's not a Qt control, mainly the data display areas in Logic and Scope. I'd like to set the background to #1E1E1E (like Visual Studio Code) and bring the full brightness values (anything with a 255 in it) to something less bright. Is this possible? I've attached my latest version of the stylesheets along with screenshots pointing out the places I'm having problems. This is with 3.17.19 (beta). Thanks! --chris BetterDark.css
  4. Hello, I want to learn compensation values (open resistance, open reactance, short resistance and short reactance) of a compensation action. How can see these values? Trace export contains probe resistance and reactance values. There is no data about compensation values. I need them to verify my design. There is a python script named as "". I reviewed this script. But, This script does calculate resistance and reactance values according to single frequency and single resistor value. How can enhance the script to grab same compensation values like WaveForms does it with multiple frequencies and multiple resistors. Could you guide me? I realized that each application restart reset compensation values. So, it requires a new compensation action. But, I can retrieve same compensation values if I save the workspace. So, saved workspace contains previous compensation values in it. How can reach them? Regards, Resul
  5. Hi All, I am developing a custom application using Analog Discovery 2 and Impedance Analyzer Adapter. I am trying to implement C-V measurements. WaveForms chart is different from my application with the same parameters. I wanted to investigate the difference with writing python scripts which is the same logic with my custom application. Here is the WaveForms screenshot with the same DUT configuration and Python script plot. They have some configurations but the plots are so different. Peaks are similar. But, They look really different. DUT: 1N4007 Diode. What is the reason for the difference between charts? WaveForms charts are smooth. Do WaveForms have extra configuration or techniques under the hood? Please see the charts and the script file. Regards, Resul
  6. Does anyone know how to update the licence to open up waveforms??? Please help
  7. With WaveForms for Windows in docking mode, keyboard shortcuts don't respect focus. Instead of being delivered to the currently focused panel only, the keystrokes are sent to any random panel with a matching shortcut. Consider the following layout: [Supplies | Logic] ------------------ [Protocol | Script] With the Script panel in focus I'd expect Alt+F to open the Script panel's File menu, but it instead goes to Supplies. If I hit Esc and try again it now goes to Protocol, then to Script, then to Logic, and so on. What's more alarming is that if you stack some of the panels, keyboard shortcuts continue to be delivered to all—including the ones that are now hidden in inactive tabs. For example, if you take the above layout and drag Script on top of Protocol (with these two panels now becoming tabbed), select the Scripts tab, and hit Alt+F, the Protocol tab continues receiving this shortcut in spite of being completely invisible—and its File menu appears floating in the top left corner of the WaveForms window, detached from the invisible Protocol tab, so you can't even tell to which panel the menu belongs. This problem doesn't occur in any of the other window modes.
  8. Currently, it seems that: only instruments that are already open in the GUI can be used by a script, there's no way to programmatically open an instrument from a script, and if a script depends on an instrument that's not open, the best it can do is abort. If this is all accurate, it strikes me as a poor design because: scripts cannot be made fully self-sufficient or deterministic without the ability to set up their own dependencies, it doesn't reflect reality (e.g. the Supplies instrument not being open doesn't mean that the actual power supply doesn't exist), and scripts have access to much more trivial things (e.g. animation speed), yet something as important as this is missing. Would you please consider implementing the ability to either (a) open instruments programmatically or (b) access them while not open? While you could argue that scripts are part of a workspace and the user could just keep the right set of instruments open in the workspace where the script is being written, this expectation seems very fragile to me because scripts are ultimately stand-alone files and, as such, they can be opened in other workspaces and shared with people who may not have the necessary instruments open.
  9. As we know, the ability to read data is lost when the Protocol instrument's debug mode (i.e. the "Logic Analyzer" toggle) is turned on. In GUI-initiated read operations (e.g. Protocol > CAN > RX, Protocol > I2C > Spy, Protocol > SPI > Master), this condition is clearly indicated with warning "Not available in Debug mode. See Logic Analyzer." whenever a read is attempted. However, in custom scripts (e.g. Protocol > I2C > Custom, Protocol > SPI > Sensor, Script): no errors are thrown when read operations are attempted, Protocol.*.Read*() functions succeed and silently return healthy all-zero words, and these misleading return values are indistinguishable from actually successful reads. While code can be added to scripts to ensure debug mode is off, the fact that read function calls succeed and return zero values indistinguishable from real-world zeroes seems wrong to me. Would you please consider making Protocol.*.Read*() functions return an error code (e.g. false) when debug mode is on, or otherwise implementing a way of detecting read errors the way it's already possible with Protocol.*.Write*() functions?
  10. Now I am trying to find the script commands to access the Amplitude Modulation in the Analog Discovery 2. Specifically, I want to manipulate the modulation settings screen in the Waveform app with a script.
  11. Hi, I have a question about Waveforms 3 API relevant to the oversampling functionality implemented in Analog Discovery 2. Recently, I am trying to implement the oversampling functionality for my custom-coded software (written in C#) using Waveforms 3 APIs (3.12.2). Based on the reference manual in the SDK, I think that the relevant APIs are “FDwfAnalogInAcquisitionModeSet”, “FDwfAnalogInSamplingDelaySet”, and/or “FDwfAnalogInTriggerPositionSet”. I also found the (seemingly) relevant constants for the first function as follows: “acqmodeOvers = 4” or “acqmodeSingle1 = 5” in “dwf.cs” and “dwf.h”. I am now wondering if acqmodeOvers = 4 should be used for the FDwfAnalogInAcquisitionModeSet function; and the FDwfAnalogInSamplingDelaySet is the function (not FDwfAnalogInTriggerPositionSet). I am afraid that I do not understand what the “sampling source” exactly does in the FDwfAnalogInSamplingDelaySet, DwfAnalogInSamplingSlopeSet, and FDwfAnalogInSamplingSourceSet functions. If anyone can tell me the detail (or indicate some documentation), I appreciate it! Thank you in advance, Yasuo
  12. In previous versions of Waveforms, the comment, Device name, serial number, and time would show up as a gray box in the bottom right corner. I just updated from 3.10 to 3.12.2 and this feature is no longer working. Is there a setting that needs to be changed for this to work in the newest version or is this a bug?
  13. Can Waveforms Pattern Generator import from a VCD (Value Change Dump) file?
  14. Hi I've been using the AD1 for about a year. But now it seems the second scope doesn't function properly. When i run the scope on WaveForms it stays at -29V. Does anyone know if it's an SMD or something i can fix myself? Thanks
  15. Hello, I am working on a project and i am using the digital discovery board. I want to use it to monitor a JTAG interface from another board. My question is, does someone know if there are examples how to do that with the board and with the waveforms software?
  16. Hello! when i save my waveforms project and i have my instrument Windows setting to MDI, then when i close the project and open it again the worspace should be the same ? but it isnt.. i have two instruments windows open in the workspace(1.png) in the middle of the screen, when i save,close and open the project again the instruments windows are not in the same place as i saved them(2.png). 1.png 2.png
  17. Hi, I'm trying to use the UART of my Analog Discovery 2 in python. I've had a look at the example and just ran it. At first, I thought it worked. But then I realized it was okay only for the first frame. After increasing the sleeping before the print (see the pics just under), the values are more often correct, but there's still a lot of unexpected results. (see the pics just under ). The thing is, when I use Waveforms, it works(see the pic just under). Also I thought of a problem with the SDK, even if I don't really think so. Could someone help me? Thanks, Marc
  18. Hello, I have recently purchased the Analog Discovery 2 unit and I would like to easily obtain an accumulated count value in the logic analyzer. Is this something that is available within the software or is a custom script required? If this requires custom setup or script programming, can you point me to the documentation or project that I can view?? I appreciate any help...Thank you