DASYLab

cancel
Showing results for 
Search instead for 
Did you mean: 

use a Switch or similar in DasyLab to initiate the worksheet to start averaging data in a particular channel

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.

0 Kudos
Message 1 of 10
(9,964 Views)

Sure.

 

I can make you an example -- but I need to know your sample rate and block size.

 

Measurement Computing (MCC) has free technical support. Visit www.mccdaq.com and click on the "Support" tab for all support options, including DASYLab.
0 Kudos
Message 2 of 10
(9,963 Views)

The sampling rate is 0.2 and the block size is 1.

0 Kudos
Message 3 of 10
(9,959 Views)

Do you have V12?

 

Here's a worksheet.

 

 

Measurement Computing (MCC) has free technical support. Visit www.mccdaq.com and click on the "Support" tab for all support options, including DASYLab.
0 Kudos
Message 4 of 10
(9,956 Views)

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.

0 Kudos
Message 5 of 10
(9,949 Views)

How's this explanation? 

 

PrintScreen-0010.jpg

Measurement Computing (MCC) has free technical support. Visit www.mccdaq.com and click on the "Support" tab for all support options, including DASYLab.
Message 6 of 10
(9,946 Views)

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. 

0 Kudos
Message 7 of 10
(6,380 Views)

@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.  

0 Kudos
Message 8 of 10
(6,369 Views)

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. 

Measurement Computing (MCC) has free technical support. Visit www.mccdaq.com and click on the "Support" tab for all support options, including DASYLab.
0 Kudos
Message 9 of 10
(6,346 Views)

Much obliged for your detailed response relevant to my question. 🙂

0 Kudos
Message 10 of 10
(6,331 Views)