DASYLab

cancel
Showing results for 
Search instead for 
Did you mean: 

Timer for file writing

Hi all, not very experienced in Dasylabs as you can tell. Basically i have a fairly complex worksheet (not done by me!) that records horses pulses and number crunches them, averaging etc and does a lot of error checking for erroneous pulses. That is all fine and can obviously output to a file as ASCII.

What i want though is to send one value per second to a file and overwrite the file each time so there is only one value ever in that file. It is so it can be taken into a VB routine for more number crunching. But cant work out how to do it every sec

 

Any help greatly appreciated and can of course send worksheet if needed

0 Kudos
Message 1 of 7
(6,495 Views)

Try this.

 

the Write module is configured for multifile, start at file 1, go to file 1, change files when 1 block is received. Use a Time Base module to generate a pulse every second/minute/hour, wire that to a Latch that releases one value on TTL high at the control input. File will be constantly rewritten. 

 

 

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 7
(6,494 Views)

Hi

many thanks for your swift reply....assumed it was something to do with timebase, just problems linking it into the readings we are getting so it basically sends the reading at a seconds interval each time.  Sorry to be cheeky, but have attached the file.  You will see on the far right the heart rate display which is giving the perfect results, so ideally i think linking to the middle connector on that (1) is what we need. The other 2 are min and max that display as well but 1 is the actual reading we take.

Thanks again for your help

0 Kudos
Message 3 of 7
(6,492 Views)

I don't have V6 to work with... I can only make examples in more current versions. 

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 7
(6,488 Views)

Attached is your worksheet updated. I included the *.DSB for V12, and the *.DSA and *.DMX that might let you read it in V6.

 

DASYLab Example

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 5 of 7
(6,486 Views)

Many thanks again...its actually V11, the v6 was on the file name.  But can probably see on the image.  Many thanks again, will let you know

0 Kudos
Message 6 of 7
(6,484 Views)

Many thanks...downloaded V12 and works a treat. Thanks again for being such a star!

0 Kudos
Message 7 of 7
(6,483 Views)