Hello Brian, is one of the little that your PRG like universal uses interface. From two years !!! I have of the problems like sai.I use GENIDAQ (Adwantech made) that it takes marks I make them rows datain38.ini in WD directory.OK. Hour use version 10.12.k. the problem is that it reads only the first line of datain38.ini and is not brought up to date.
I think it expects datain38.ini to be a one line file that gets refreshed (rewritten) each time with the new data. I have used Universal and so far as I know it does not work the way you are expecting it to.
The instructions are in the universal.txt file in your wdisplay directory:
Description of the universal file input weather station type
Create a file with the followind format, called datain38.ini (just 1 line of current data)
6.02 8.77 16.1 38 1010.2 0.0 215 15.8 21.5 58
i.e
6.02 Windspeed (kts)
8.77 Gust speed (kts)
16.1 Temperature (oC)
38 Humidity
1010.2 Barometer (hPa)
0.0 Daily rain
215 Wind direction
15.8 Soil temperature
21.5 indoor temperature (oC)
58 Indoor humidity
Hi,Windy
Thanks for you continue help and interest for my problems…
I search replay in clear mode.
does your ouput program keep adding lines?
---------yes my out program (LOG file saved in WD directory and named datain38.ini) have two options : owerwrite and appende mode
what if i got WD to delete the file after reading it?
(as an option)
---------- sorry no understend !
Hi.
repeat my problem.
THE DATA FORMAT its OK
(6.02 8.77 16.1 38 1010.2 0.0 215 15.8 21.5 58 )
I use one Program named Visidaq wich save data of # 8 differente sensors in to file DATAIN38.INI (…WD directory !!!).This savage its possible in mode overwrite or append,but is non problem for this enquire.(Note: this program suggest only 1 ext in format .LOG .I try saved with .ini.I find ,in WDISPLAY one good file in TXT format.
Good .
I START Visidaq (RUN) but not have the update data in WD.I read data in WD only STOP RUN Visidaq ???
hi
i just created a file called datain38.ini
and then had your data in it, i.e
6.02 8.77 16.1 38 1010.2 0.0 215 15.8 21.5 58
then save that file
then in the weather station type setup, i selected universal, and set the directory where that file was located
then the data was OK in weather display
i then changed some of the data in that file, saved it, and straight away the data in weather display was updated and showed that change
so it works here for me…
one thing, make sure the station type is not set to stationless in the weather station type setup…the universal station type should be ticked instead
Can you go to a specified position (byte) in a file in D? If so then you could maybe get the size of the file = n bytes, go to (n - x) bytes, and only read the last x bytes instead of the whole file.
Hi,
for me,really exist one problem,follow my condition of work and my comments:
in WD i set with mark (black point) UNIVERSAL INTERFACE and save this i c:\weatherdisplay
i created one output file from Visidaq program,named datain38.in and storage in c:\weatherdisplay. This file its right in accord with request your DATA FORMAT
3)i just created a file test called datain38.ini
the data was OK in weather display
i then changed some of the data in that file, saved it, and straight away the data in weather display was updated and showed that change
so it works here for me…
OK OK
but this one ONLY MANUAL test itsnot RETRIEVED data in automatic mode !!! This ISNOT POSSIBLE !!!
Its possible only only only with RUN STOP Visidaq program.In this event WD refresch data as last string saved in datain38.ini.
Note: this result only if saved data in out program (Visidaq) mode OVERWRITE,in mode APPEND donot register.
I think donot possible read data during the RUN…
Maybe possible with use one program who make STOP and GO alternate ??.
no, its not clear
weather display does automaticlu update the data if the data in that univeral file changes.
if you are saying that your program is updating the data, but weather display does not see that update, until you stop then start your program, then that means your program must be locking the file in between so it can not be used by any other program
one solution is I get weather display to copy that file , then read that copy
hi
i tested using that append function, and WD was using the last row of data in the ini file…I tested…is that not happening for you?
also, try the latest beta versiion, as i had made a little mistake in the one i first told you about
so then it might be that your program is locking the file, so no other program can use it
the solution might be for me get weather display to make a copy of that file (using windows api copy), and then read that file