11-21-2016 02:33 PM
I am writing a routine to (a) reduce the amount of data saving to disk, (b) allow the data to be displayed [RUN] without saving until a [RECORD] button is pressed, and (c) save 15 seconds of this data to disk at a pre-set interval . (d) Each 15-sec block of data will be saved to a new file.
In addition, when the data is only being displayed, pressing [RECORD] should start saving data immediately. The data save interval is triggered by a pulse to a combi-trigger. I have attached what I have so far.
Data is reduced through Combi Trig01 and Data Freq
The issues I’m having are this:
Any help would be much appreciated.
Jim
11-21-2016 05:20 PM
I am out of the office this week, but I'll try to look at it tomorrow.
I didn't bring a work computer
11-22-2016 06:22 AM
Thanks cj. Whenever you have the chance.
Happy Thanksgiving!
12-01-2016 08:54 AM
I have changed my worksheet and it is now doing nearly everything I need it to do. Can you help me fix a few details:
Thanks,
Jim
12-02-2016 12:57 PM
Hi Spieler,
Since the DASYLab forum is mostly supported by volunteers with DASYLab knowledge, you may not receive a quick answer on here, so I wanted to also make sure you knew of your other support option, which is to contact Measurement Computing (MCC) technical support directly through their support page here: http://www.mccdaq.com/support.aspx
I hope that you are able to find success with your application!
12-02-2016 01:06 PM
I think that you're using the wrong Action event in Action00.... TTL High and TTL Low are evaluated every sample, and will do an action every sample.
Try Rising Edge and Falling Edge.
Also, in the File module, look at the Multifile settings, and activate the "Chain" setting - just for some security.
I'm going to test it with the Multifile number of blocks setting at 0.
12-02-2016 01:45 PM
Try the attached.
Action00 changed to use Rising and Falling Edge, which fixed the problem, and the Write module "chain" setting was activated, with the number of blocks changed to 0.
Files are now the same size, every two minutes.
Is this the most efficient? Probably not, but it is an effective solution that allows you to change the frequency and interval successfully. I'll continue to think on it, but this works well and cleanly.
12-02-2016 01:54 PM
Thanks CJ, that works very well. I tried it with the "chain" setting and different block sizes, with poor results. I did not think to set block size to zero.
12-02-2016 01:56 PM
Thanks Alex. I will try there as well.
Jim
12-02-2016 02:31 PM
It will just bounce to me. I am paid (not a volunteer) to monitor this site. In addition to everything else, of course.
cj.butler@ni.com