NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
cwilliams0336
Posts: 10
0 Kudos

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.

Active Participant
CJ_Butler__DASYLab_Pro
Posts: 737
0 Kudos

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

Sure.

 

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

 

- cj
Member
cwilliams0336
Posts: 10
0 Kudos

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

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

Active Participant
CJ_Butler__DASYLab_Pro
Posts: 737
0 Kudos

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

Do you have V12?

 

Here's a worksheet.

 

 

- cj
Member
cwilliams0336
Posts: 10
0 Kudos

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

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.

Active Participant
CJ_Butler__DASYLab_Pro
Posts: 737
0 Kudos

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

How's this explanation? 

 

PrintScreen-0010.jpg

- cj
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page