03-24-2016 05:19 PM
Hello, i want to ask something.
I have screen (111). I want to do program. there are steps how it need working :
1.First step when i run Program is to show Layout in full screen. meaurement start but not save data to a file. (no write),
2. When I push the button Start then data will by written. also that there will be message about that ( data actally started note)
3. When i push button stop then data will be stop write and program stopped. (include message about stop writte data),
How to do that button start/Stop? I try do it but it doesn't work.
Have enyone example how it look like?
03-25-2016 07:25 AM
Put a relay before the Write Data module. If this is my example worksheet, make it an Action controlled Relay.
Create a new Switch module to control the Relay. Connect it to an Action module. The Action on Rising Edge is to tell the Relay to Transmit data. On Falling Edge it is to Block data and stop the measurement. (three total actions).
03-25-2016 08:40 AM - edited 03-25-2016 08:44 AM
Ok, thanks for answer.
I put relay before write data. (screen 3).
i do new switch for it with action (1).
i do modul message and put in on action 2.
and when i press buton to write (dasylab program is running) it save and finish saving data. but i want to when i press button to write it start saving data to file and message will apear about start savin data , and when i again pres button to write it stop saving data and will show message about stop savin data to file.
03-25-2016 08:41 AM
ACtion window
03-25-2016 08:53 AM
On action 3, add an action to stop the Measurement, if that's what you want to do.
03-25-2016 09:26 AM - edited 03-25-2016 09:36 AM
Actually i have this. But when i press button On then data save, and when i press button off then see to message in te same time.
This need look like that, i start program ok, it;s working. I take ex. tab GPS, program still working but nothing save to file. When i want save to file i press button On then data will be started "record to file" (ASCII) (and in the same time appear the message about "saving file start"), when i want to stop "record data to file" then i press button OFF and "data recording to file is stoped", and it it save to file (and in the same time when i press button off will saw message about "finish savind data").
It imposible to do in DasyLab?
03-25-2016 09:41 AM
I don't think that it's impossible.
Can you share the worksheet?
03-25-2016 10:27 AM
Looking at the worksheet:
- use the Rising Edge action for Transmit Data, Display Start Message
- use the Falling Edge action for Block Data, Display Stop Message
You can also (!!) use the Rising and Falling Edge to tell the Recorder module to "Mark Data" with the Start and Stop messages.
See the attached image.
You're on the right track!
03-25-2016 10:40 AM - edited 03-25-2016 11:01 AM
OK, i have this, thanks for you. Byt still when i pres button ON this finish save mi data to file.