Etienne

Newcomers
  • Content Count

    9
  • Joined

  • Last visited

  1. Dear Attila, Thank you for your answer. In fact, I'm not using the "Logic Analyzer" embedded in the Protocol tool. I see that when I click on the "Logic Analyzer" on the top right of the Protocol window I got the message that MISO will not work. But I'm using and configuring the Logic Analyzer in the dedicate tool. Does it behave the same? Even if I don't use the bus decoder but put SPI lines like standard bits? Best regards Etienne
  2. Dear Attila, Thank you for your answer. This explain why my "adc" variable is empty, but as mentioned in your image, "the Logic Analyzer can be used to investigate the signals", so I should be able to see the SPI signals in the logic analyzer, isn't it? Didn't I understand correctly? Best regards Etienne
  3. Hi Attila, Thank you again for you quick answer! Does documentation and example exists for all commands of the Digital Discovery? The help in waveforms is a bit unclear. Best regards Etienne
  4. Dear all, I try to debug my SPI bus with the logic analyzer and I have problems configuring it and synchronize it with my script. Firstly, how can I set the "Simple" function (1. in the picture bellow) by script and how can I set the trigger type for a defined IO (2. in the picture bellow) by script? I set the logic analyzer in "normal" mode so it should start recording only when the trig condition happen but nothing happen. I use the "Logic1.single()" command in the script to arm the logic analyzer just before my SPI command. I want to trig on the falling edge of the select line. I also try the "Record" mode, then it works, but the trigger event appear at a non-sens moment (not at 0s) and only show 5ms of recording. I set 5M sample at 1MHz I should have 5 second of recording. I also try a sample rate of 100kHz which is sufficient while my SPI clock is 10kHz, but it doesn't change anything. What is also strange is that when I try to set the time base by script with <<Logic1.Time.Base.text = "10ms/div">>, it simply ignore this line Attached, you'll find my workspace, it will work without anything connected to the device, the ADC will simple read FFFF due to the pull-up in MISO. Thanks in advance Kind regards Etienne DDS_OPD_Test.dwf3work
  5. Dear all, I'm using the "Digital Discovery" by script and I would like to know how to apply this pull up/down scheme by script: see attached picture I try the different "Supplies.Output.DigitalVoltage.DIOPP/DIOPE.value" suggested by Waveform when I put the mouse on the blue knob but it set all my channels to pull-down. Thanks in advance Best regards Etienne
  6. Dear Attila, Thank you again for your quick answer. This will help a lot! Have a nice w-e. Kind regards Etienne
  7. For my application, I also have to change the SPI mode. Referring to the help, I add the line <<"Protocol.SPI.Active.text = "Low">>, but it gives me an error: "Result of expression 'Protocol.SPI.Active' [undefined] is not an object." I didn't find any reference for the spi clock setting in the help. How can I change the chip select active state and the polarity, phase and frequency of the spi clock through script? Thanks in advance, Kind regards Etienne
  8. Dear Attila, Thank you for this quick answers, I'll try this tomorrow. Kind regards Etienne
  9. Hello, I'm a new user of the digital discovery, which already helped my a lot, but now I'm stuck. In my application I first have to configure a DDS by sending few words by SPI to it, and then I have to read an ADC by SPI. These two devices have separate SPI bus. The DDS is connected like this: nCS = DIO34, SCLK = DIO33, MOSI = DIO35 The ADC is connected like this: nCS = DIO31, SCLK = DIO30, MISO = DIO29 Is there a way by script to first write to the DDS, then reconfigure the SPI protocol pins to connect to the ADC and then read it? Thanks in advance. Best regards Etienne