08-18-2011 02:15 PM
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
08-18-2011 02:54 PM
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.
08-18-2011 03:34 PM
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
08-18-2011 04:25 PM
I don't have V6 to work with... I can only make examples in more current versions.
08-18-2011 04:37 PM
Attached is your worksheet updated. I included the *.DSB for V12, and the *.DSA and *.DMX that might let you read it in V6.
08-18-2011 04:53 PM
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
08-18-2011 08:03 PM
Many thanks...downloaded V12 and works a treat. Thanks again for being such a star!