I have bought a PSC10 Recorder/Logger for getting Temperature and Pressure dates. It only plays a small part of an huge projekt. But before
buying more produkts of velleman I have to manage my problem of getting informations with the PSC10.
Well it is not the hardware I worry about, it´s the software. I have a little skill of using C++. My c++ compiler (5.5 borland) hasen’t a vcl.h header file. Therefor I can not use the example program for c++ given by velleman, which work with the vcl.h file. Because of that I take the measuredates from the txt-file, which is created by option “Autosave”.
I need to get the measureinformations permanent for over two hours. The “Autosave”-option adds the new measureinformations allways at the end of the txt.file, which means, that the size of the txt.file get bigger and bigger. My desire is, that the Autosave-option overwrite the old measuredates with the new measuredates for having an border of the txt size.
Or is there a better solution for my problem?
Thank you for giving time in my problem and excuse my mistakes in gramma
If I understand right, you like to record the data for several hours but you are interested only the newest data.
When the data is saved to file it normally appends the new data to the end of the file. It is very difficult to remove the start of the file “on the fly”.
In many cases it is possible to use lower sample rate (e.g. one sample/10 sec). This way the size of the file data can be reduced.
If you need high sample rate then you have to open the file to your program or to a text editor and cut away from the beginning of the file the amount of the data you don’t need.
[quote=“VEL255”]If I understand right, you like to record the data for several hours but you are interested only the newest data.
When the data is saved to file it normally appends the new data to the end of the file. It is very difficult to remove the start of the file “on the fly”.
In many cases it is possible to use lower sample rate (e.g. one sample/10 sec). This way the size of the file data can be reduced.
If you need high sample rate then you have to open the file to your program or to a text editor and cut away from the beginning of the file the amount of the data you don’t need.[/quote]
I try to cut away the beginning of the file instead of deleteing the whole file.
I think deleting the whole file while the PSC-programm is working on it can not work. Therefore I delete all lines until the last line again and again and again… .
After learning Visual Basic 2008 i managed it to run the PSC 10 module with my own software under linux.
My next step i want reach is running the PSC 10 module under windows by using my own software. Therefor i use the K8047D.Dll from the velleman homepage. By using the ReadData() funktion of the dll the compiler tells me, that this functions wants to read from the secure memory. That is why my programm doesn’t work.
How can i tell windows, that the funktions of the K8047D.DLL are allowed to read in the secure memory?
Are there other ways of solutions?