Live Plotting with Python Script

176 views
Skip to first unread message

John

unread,
Jul 7, 2021, 1:26:41 PM7/7/21
to IADS
Hello,

I'm wondering how to execute a python script while in TM to essentially take live data and output a curve of best fit for the data with respect to time.
During a flight, we have a number of thermocouples (TC's) that will heat up from ambient temperature to some stable temperature. I have a python script that will take TC data which has not yet reached its stable temperature, and output a plot of the data with an extrapolated best-fit curve overlaid which predicts when the TC will reach a stable temperature and what the stable temperature is.
Currently, this is just a post-processing tool, but I would like it to be a real-time tool where the FTE can run the code once we're flying and the plot will continuously update as it receives more TC data.

Thanks in advance,
John

Jones, Michael

unread,
Jul 7, 2021, 1:34:54 PM7/7/21
to IADS

Hi John,

 

Presuming that you are currently using the IadsDataInterfaces COM object to retrieve data from IADS, you will only need to change one thing. Effectively, you will specify a system and port in your iadsread calls instead of a path to IADS data files.

 

See the HowTo.py in the IADS\Common directory for details…here’s a snip:

iadsread( "D:\\PostFlightData\\Demo", "318:17:40:53.393" …

instead use:

iadsread("IADS-CDS$58000", "", …

where IADS-CDS is the name or IP address of your IADS real time server.

 

Please note that the server will need to have an appropriate license which allows ‘external clients’

 

Regards,

Mike

 

 

Michael Jones

Principal Software Engineer, IADS

 

Defense Solutions Division

Curtiss-Wright

Palmdale, CA

T: +1 661-273-7003 x501

 

From: ia...@googlegroups.com <ia...@googlegroups.com> On Behalf Of John
Sent: Wednesday, July 7, 2021 10:27 AM
To: IADS <ia...@googlegroups.com>
Subject: [IADS] Live Plotting with Python Script [EXTERNAL]

 

WARNING: This message came from an external source. Please exercise caution and proper judgment when opening any attachments, clicking links or responding to this message.


 

--
You received this message because you are subscribed to the Google Groups "IADS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iads+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/iads/44031c53-723d-4e41-ae7f-2ecf8a38a707n%40googlegroups.com.


This e-mail and any files transmitted with it are proprietary and intended solely for the use of the individual or entity to whom they are addressed. If you have reason to believe that you have received this e-mail in error, please notify the sender and destroy this e-mail and any attached files. Please note that any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the Curtiss-Wright Corporation or any of its subsidiaries. Documents attached hereto may contain technology subject to government export regulations. Recipient is solely responsible for ensuring that any re-export, transfer or disclosure of this information is in accordance with applicable government export regulations. The recipient should check this e-mail and any attachments for the presence of viruses. Curtiss-Wright Corporation and its subsidiaries accept no liability for any damage caused by any virus transmitted by this e-mail.
Reply all
Reply to author
Forward
0 new messages