DASYLab

cancel
Showing results for 
Search instead for 
Did you mean: 

Enable start measurment only if temperature is under 26°C during 10s

Solved!
Go to solution

Hello,

 

I have a program to do a Viscosity/Temperature measurement using DasyLab 12

 

I'm burning my brain to try to enable the measurment only if the temperature is under 26°C during 10s.

 

Click "start", then control the temperature, if during 10s the temperature stay under 26°C, then authorise to click on the button "start measurment"

If not, restart the controle.

 

Thanks in advance !

 

Ivan

0 Kudos
Message 1 of 7
(6,848 Views)

Ivan,

 

What I would do is to run DASYLab all the time but trigger the data storage when you desire.

 

If you put a relay before the write files, and you select "Remove" as blocked data, DASYLab will allow the write file only to work when you activate the relay.

 

DASYLab, to my knowledge, can not start or stop by even, it can only stop or restart.

Tom Rizzo
InSyS Corp.
www.insyscorp.com
Your DASYLab integrator
Message 2 of 7
(6,840 Views)

Howdy, perhaps this example worksheet is useful for you.

 

The trigger checks if the (simulated) temp data is above/below the threshold.

The counter counts the time the trigger outputs ttl-high ( == temp is below threshold).

The counter resets itself when the trigger changes its state (trigger condition == true/false).

The action toggles a switch, to simulate some kind of allowed/not allowed mechanism.

 

The user_start button is actually the button that starts the measurement by user interaction.

When the permit_state button is in "locked" state, the user can click until his fingers start to bleed - nothing else will happen.

Once the temp is below 26°C for 10s, the permit state switched to "released", and the relay unblocks the data stream, so that the user's clicks can reach the do_something action module.

The set_texts action changes the labels of the user_start button.

 

 

TempTime26.jpg

M.Sc. Holger Wons | measX GmbH&Co. KG, Mönchengladbach, Germany | DASYLab, DIAdem, LabView --- Support, Projects, Training | Platinum NI Alliance Partner | www.measx.com
Message 3 of 7
(6,836 Views)

Thank you TomRizzo and hw70 !

 

hw70, I will test your solution in my program and let you know if it work well.

 

 

Ivan

0 Kudos
Message 4 of 7
(6,819 Views)

Hello hw70,

 

Your program seems to work well !

 

I have just a problem, it's impossible for me to write " TXT_BTN0_USERSTART " at Number in action box " set_text " 

When I click OK, the Number change with " 1 "

 

Do you have a solution ?

0 Kudos
Message 5 of 7
(6,804 Views)
Solution
Accepted by topic author Techivan

Just enter the number of the string. If that string has a name, DASYLab will replace the digit automatically.

M.Sc. Holger Wons | measX GmbH&Co. KG, Mönchengladbach, Germany | DASYLab, DIAdem, LabView --- Support, Projects, Training | Platinum NI Alliance Partner | www.measx.com
0 Kudos
Message 6 of 7
(6,801 Views)

Thanks a lot for your help !

 

 

Ivan,

0 Kudos
Message 7 of 7
(6,793 Views)