Menu

Plot real time data, script and decimate

Anonymous
2020-03-04
2020-03-05
  • Anonymous

    Anonymous - 2020-03-04

    Hi Stephan,

    Please suggest or provide an example of how to plot up to 4 channels in real time from a USB A/D card which automaticaly sends 10 channels of 12 bit data ( (both raw a/d and same but scaled) for each channel every 1/10 second.
    Also please sugest a way of decimating to 1in 10 or 1in 100 sets of readings.

    CH6:2020 1.627V
    CH7:2208 1.778V
    CH8:2019 1.626V
    CH9:2209 1.779V

    CH0:2015 1.623V
    CH1:2202 1.774V
    CH2:2019 1.626V
    CH3:2205 1.777V
    CH4:2022 1.628V
    CH5:2210 1.781V
    CH6:2023 1.630V
    CH7:2214 1.782V
    CH8:2022 1.629V
    CH9:2211 1.781V

    CH0:2027 1.631V
    CH1:2206 1.774V

    I think many others might find this useful.

    Thanks
    MG

     
  • Stefan Zieker

    Stefan Zieker - 2020-03-05

    Hi,

    you can find an example that shows how to receive data with the main interface and plot it in exampleScripts\WorkerScripts\CyclicSendReceive\CyclicReceive.js.

    Regards,
    Stefan

     

    Last edit: Stefan Zieker 2020-03-05
    • martin

      martin - 2020-03-05

      Thanks Stefan,

      1. Is that all in C# ?
        if so as you may guess I'll need to learn/ look up some.

      2. My application is receive only, needs no send can this example be set to allow this?
        .

      Best regards,

      Martin

       On Thursday, 5 March 2020, 05:59:44 GMT, Stefan Zieker <szieke@users.sourceforge.net> wrote:
      

      Hi,

      you can find an example that shows how to receive data with the main interface and plot it in D:\ScriptCommunicator\ScriptCommunicator\exampleScripts\WorkerScripts\CyclicSendReceive\CyclicReceive.js.

      Regards,
      Stefan

      Plot real time data, script and decimate

      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/scriptcommunicator/discussion/featurerequests/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       
  • Stefan Zieker

    Stefan Zieker - 2020-03-05

    Hi Martin,

    1. This script is QtScript and not C#. QtScript is similar to Java Script (the core of both is ECMA Script).
    2. CyclicReceive.js does not send enything. You can test this script with CyclicSend.js (you have to execute CyclicSend.js in a second instance of ScriptCommunicator).

    Regards
    Stefan

     
    • martin

      martin - 2020-03-05

      Hi Stefan,

      Thanks for setting me in the right direction.

      My next step probably = Qtscript tutorials.

      Best regards,
      Martin

       On Thursday, 5 March 2020, 15:14:18 GMT, Stefan Zieker <szieke@users.sourceforge.net> wrote:
      

      Hi Martin,

      • This script is QtScript and not C#. QtScript is similar to Java Script (the core of both is ECMA Script).
      • CyclicReceive.js does not send enything. You can test this script with CyclicSend.js (you have to execute CyclicSend.js in a second instance of ScriptCommunicator).

      Regards
      Stefan

      Plot real time data, script and decimate

      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/scriptcommunicator/discussion/featurerequests/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       
  • Stefan Zieker

    Stefan Zieker - 2020-03-05

    Hi Martin,

    I think Java Script tutorials would be better because you won't find much QtScript tutorials and the only difference is Java Script has a few functions that QtScript does not have and vice versa.

    Regards
    Stefan

     

Anonymous
Anonymous

Add attachments
Cancel