Jump to content
  • 0

Urgent HELP NEEDED! Real time data collection and post python script analysis


mashrurwasek

Question

I am currently collecting data using AD3 pro device and using the waveform software to collect data for 20 seconds for 50 ms and then exporting the CSV files. I need to collect the data in real-time meaning upon data collection I have to run a python script that will let me analyze my data in real time. Please suggest how to take the next step? 

I tried implementing the example but the signal is way too noisy. Please check the attached PDF of the difference in the data collected

ARTMED _ RobotSkin _ Exp#7 - analog and realtime _ Report _ G33963852.pdf

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Hi @marablu

The easier is to use the Script tool of the WaveForms application or the Scope/View/Logging/Script and process the data with JavaScript.
You could also launch external applications with the Script tool, like a Python script to process the earlier saved data, see Tool.exec/start() methods.
Or use the WF SDK to control the device:

image.png

Link to comment
Share on other sites

  • 0

Dear @attila,

Thank you for your prompt reply. 

Firstly, can you tell me more about opening external applications with the Script tool? This method will save me the trouble of getting the data out of AD3 to a microcontroller like Arduino which requires another processing stage [which will save me processing time], since we are aiming for real-time applications. 

Secondly, I attached the script I wrote, but unfortunately it is not even storing the data in the csv at all. I have attached the WaveForms workspace screenshot for your reference. 

Please suggest changes that will help me collect the data and then open an external application with Script Tool so that I can perform my tasks in real-time.

Eagerly waiting for your earliest reply.

Yours Sincerely, 

Mashrur Wasek 

 

Screenshot 2024-09-13 152428.png

default.js

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...