QATrack+ integration with PTW electrometers

157 views
Skip to first unread message

Mohamed Metwaly

unread,
Apr 13, 2021, 5:03:22 AM4/13/21
to QATrack+

Hi , 

I am working in a project to connect Qatrack-plus with the PTW electrometer. I managed to add a new test option in the admin workspace specifically to create a test for this purpose. In the test performance page, I have added a press button to transfer the electrometer reading and fill the value cell, this works very well. My plan is to combine this test in a composite test with the temperature and pressure correction to automatically calculate the output from the transferred reading. But I am not able to get the “autosave” functionally work so the value of the composite test calculation can be performed.

    

Can you help please. I can arrange for a demo of the problem for further clarification if you like.  

Mohamed Metwaly.

Randle Taylor

unread,
Apr 13, 2021, 9:31:55 AM4/13/21
to Mohamed Metwaly, QATrack+
Hello,

Sounds like an interesting project.  I'm not sure exactly what you mean that the autosave isn't working, but the autosave shouldn't impact the calculations.  The composite calculation should be triggered by a change event on one of the inputs.  Maybe you are just missing the trigger event?  I'm not sure if you are using jQuery for your functionality or not but generally you need to explicitly trigger a change event after populating the inputs:

# probably won't work
$("#some-element").val(your_reading);
# trigger the change event to simulate a user entering a value manually
$("#some-element").val(your_reading).trigger("change");

Does that help?

Randy

--
You received this message because you are subscribed to the Google Groups "QATrack+" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qatrack+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qatrack/f7fdb6d1-29bd-4fc9-885f-58fc47732795n%40googlegroups.com.

Mohamed Metwaly

unread,
Apr 14, 2021, 5:49:36 AM4/14/21
to Randle Taylor, QATrack+
Yes. something in this line has made the trick.
thanks Randy

Mohamed Metwaly

unread,
May 6, 2021, 7:57:14 AM5/6/21
to Randle Taylor, QATrack+

Hi Randy,
I am still wortking in this project.
I have created a ne test type called "electrometer reading" - it works in all aspects but the number formatting - please find the screen shot below.
image.png

thansk for help in advance.

Mohamed Metwaly, PhD
Head of Dosimetry & Imaging

Radiotherapy Physics

United Lincolnshire Hospitals NHS Trust,

Greetwell Road, Lincoln, LN2 5QY, UK. www.ulh.nhs.uk

Mohamed Metwaly

unread,
May 6, 2021, 8:07:43 AM5/6/21
to Randle Taylor, QATrack+
in the QA performance page it looks like that
image.png
So the formatting is not acting.

Mohamed Metwaly

unread,
May 6, 2021, 8:19:25 AM5/6/21
to Randle Taylor, QATrack+
i can also see the formatting column in the qa_test table in the database
image.png
thanks again

Randle Taylor

unread,
May 6, 2021, 8:37:28 AM5/6/21
to Mohamed Metwaly, QATrack+
Hi Mohamed,

That format looks correct to me.  %.4E formats to 4 decimal places (%.4) in exponential form (E).  Here's a reference for string formatting: https://python-reference.readthedocs.io/en/latest/docs/str/formatting.html

Randy

Benjamin Bown

unread,
Jun 18, 2021, 4:58:26 AM6/18/21
to QATrack+
Hi Mohamed,

I like the sound of this new button functionality you've added. I think I could find a use for this too. 
Would you happen to be willing to share how you went about doing it?

Kind regards,

Ben

Reply all
Reply to author
Forward
0 new messages