Demmo

Members
  • Content Count

    4
  • Joined

  • Last visited

About Demmo

  • Rank
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hi @attila thank you veeery much I have missed the "Value to text" tab. Now it's super-clear
  2. Hello @attila, thank you for your answer. I am glad that my case is possible to solve by script. Please correct me if I am wrong - I will try to understand what is going on in your example. There is a script on the screenshot.Is it executed at every trigger? Does it automatically start and stop acquisition by Logic1.run() and Logic1.stop()? Or are that only entry end exit points for script? At first I thought that while() loop will just execute its code to count samples between triggers, like "there is no trigger -> add 1 to distance", "logic triggered -> print distance / generate event" but it doesn't work like that. I suppose that such kind of logic is under the hood and we are processing its result stored in Logic.Channels.Quad.data[0]... OK, I have just noticed, this is what is actually done in Quad decoder And this part is clear, I think. Mentioned new decoder should be added by "Add custom" on signal list, right? And where should be Value2Text() added? In script? And what is it mentioned for? It will generate events with -1 or +1 values that could be processed later or what?
  3. Hello, ok, I will re-schedule my workflow and wait for answer. Best regards, Demmo
  4. Hello, I have found this topic with script for counting edges of digital signals and I wonder if it's possible to modify it somehow (or use completely different approach) to read quadrature encoder signals with Analog Discovery? Most important thing, I think, is that I have to compare signals state at current event (i.e. I have "1" on signal A and need to know what is the state of B signal in that particular moment) and be able to compare it with previous state (event) to decide if I should increment or decrement my counter. And it should be triggered with both edges but I assume that trigger options on DIO line decides when events are generated. Is it possible to capture and count edges without sample count limit? I mean something like hardware triggering on digital inputs instead of starting on first trigger and sampling defined number of samples with defined frequency (Stream mode). At the moment it looks more like signals recording and post-processing (offline) and I wonder if it is possible online to execute encoder script live on each trigger? It's not a must but would be nice And one more thing - I have downgraded my WaveForms to version from mentioned topic because in newer version there is no Stream mode. Was it renamed or replaced by something better?