06-18-2012 11:39 AM
Can you tell me if it's possible to use a Switch or similar in DasyLab to initiate the worksheet to start averaging data in a particular channel for a set time, say 60 seconds, then have the averaged result sent to an Excel file. I have been playing with the DDE module and have been successful in having DasyLab send data to Excel.
I spending lots of time browsing the help files and modules but I could really use a little help.
06-18-2012 12:42 PM
Sure.
I can make you an example -- but I need to know your sample rate and block size.
06-18-2012 02:05 PM
The sampling rate is 0.2 and the block size is 1.
06-18-2012 03:17 PM
Do you have V12?
Here's a worksheet.
06-19-2012 03:40 PM
Hi CJ,
Thanks for the worksheet. I only had 5 minutes at the end of the day today to take a quick glance. I'm not sure what it's supposed to do, maybe I'm too impatient. Should I click the one-shot switch then see averages of generator data listed once a minute. Can you provide a short explanation? I'm fairly new to DasyLab so I have to spend a lot of time reading help screens on modules especially ones I've never seen or used before like Relay, Siwtch and Combi Trigger.
06-19-2012 05:49 PM
How's this explanation?
01-07-2018 08:36 PM
Hi There.
This subject is pretty interesting. I have a little project similar to this but I need to trigger the switch from a parallel ongoing operation (like turn it ON/OFF remotely). For instance, another switch triggering a flow of events and would like without me pressing the other switch as you have it here turn it ON or OFF when needed. Does this require some scripting/programming? If so, how would that be accomplished? An example or sample would help a lot.
01-07-2018 09:23 PM
@BoseEinstein7 wrote:
Hi There.
This subject is pretty interesting. I have a little project similar to this but I need to trigger the switch from a parallel ongoing operation (like turn it ON/OFF remotely). For instance, another switch triggering a flow of events and would like without me pressing the other switch as you have it here turn it ON or OFF when needed. Does this require some scripting/programming? If so, how would that be accomplished? An example or sample would help a lot.
Following my last post. I was thinking along the lines of VB coding that could in parallel acquire data and trigger a module (like the switch I mentioned) when required. Would that work? I just need an example to approach this problem.
01-09-2018 12:29 PM
You can use an Action module in a parallel stream of logic to change the Switch state. You can Turn On, Off, or Toggle. With DASYLab 2016, you can also change the output value of the Switch for the On or Off state, enabling you, for example, to disable a Switch under some conditions.
If the conditions are complex, you can use the DASYLab Full 2016 State Machine module to create the trigger that would tell the Action what to do.
You don't need programming at this point because generally, no module can affect another other than through its data inputs or via the Action module.
01-11-2018 09:25 AM
Much obliged for your detailed response relevant to my question. 🙂