EnviroMon and Windows 7

Having problems ? let us know the details here
Post Reply
1b3rt0
Newbie
Posts: 0
Joined: Tue Nov 13, 2012 12:21 pm

EnviroMon and Windows 7

Post by 1b3rt0 »

Hi all,
I installed and tested successfully EnviroMon on a Vista 32bit machine: reading temperature data and extracting them using both emagnt32.exe and enviromon.bat has been simple

Installing the same software on Windows 7 system has been a pain.
The data logger is read intermittently, I can't found the enviromon.ini file in the EnviroMon installation directory and the data extracton doesn't works nor with emagnt32 nor with enviromon.bat
Could you give me some hint?
thank you
Umberto

ziko
Advanced User
Advanced User
Posts: 1705
Joined: Fri Dec 01, 2006 10:03 am
Location: St Neots

Re: EnviroMon and Windows 7

Post by ziko »

Hi Umberto,

This is due to the way windows 7 works and user account control level, due to the level of security settings set hight it changes the location of settings files now in

"C:\users\xxxx\AppData\Local\VirtualStore\Program Files\Pico Technology\EnviroMon"

where xxxxxx is your user log in.

If you go into control panel and go user accounts and drop the security slider down it will put it back in the normal location.

Hope this helps.

Regards
Ziko

Technical Specialist

1b3rt0
Newbie
Posts: 0
Joined: Tue Nov 13, 2012 12:21 pm

Re: EnviroMon and Windows 7

Post by 1b3rt0 »

ziko,
thank you very much.

It works now with emw32, with the enviromon.bat I still have problem it hang and don't produce any output but *.rdg file
umberto

ziko
Advanced User
Advanced User
Posts: 1705
Joined: Fri Dec 01, 2006 10:03 am
Location: St Neots

Re: EnviroMon and Windows 7

Post by ziko »

Hi can you copy and paste the info on the bat file on the post so I can see what its doing?
Ziko

Technical Specialist

1b3rt0
Newbie
Posts: 0
Joined: Tue Nov 13, 2012 12:21 pm

Re: EnviroMon and Windows 7

Post by 1b3rt0 »

Thank you Ziko,
the '.bat' content is very simple, I massage a little bit the Pico model

**************
emw32 -d
set s=%date:~6,4%%date:~3,2%%date:~0,2%
emw32 -j\reports\jpg\%s%-temperature.jpg,600,400,75 -rtoday@00:00-1month,today@00:00
emw32 -c\reports\csv\%s%-temperature.csv -rtoday@00:00-1month,today@00:00
ftp -n -s:upload.ftp
************

The problem is not the 's' variable, nor the ftp line (I commented both). The folder 'reports\jpg|csv' are both subfolders of installation dir with full control

ziko
Advanced User
Advanced User
Posts: 1705
Joined: Fri Dec 01, 2006 10:03 am
Location: St Neots

Re: EnviroMon and Windows 7

Post by ziko »

Actually the formatting has gone wrong, could you attach the file but rename it to .txt instead of .bat

Cheers
Ziko

Technical Specialist

1b3rt0
Newbie
Posts: 0
Joined: Tue Nov 13, 2012 12:21 pm

Re: EnviroMon and Windows 7

Post by 1b3rt0 »

Hi Ziko,
here's the batch.
In the previous posts I wrote emw32.exe but I meant write' EmDataGen' (emw32 is not in discussion, here)
There is a way to call EmDataGen via command line with parameters? I need to schedule data extraction in Windows 7
regards
umberto
Attachments
enviromon.txt
(634 Bytes) Downloaded 676 times

ziko
Advanced User
Advanced User
Posts: 1705
Joined: Fri Dec 01, 2006 10:03 am
Location: St Neots

Re: EnviroMon and Windows 7

Post by ziko »

I realised it was nothing to do with the formatting, I just was not familiar with some of the dos commands! In any case I would try the following:

**************
emw32 -d
set s=%date:~6,4%%date:~3,2%%date:~0,2%
emw32 -j"reports\jpg\%s%-temperature.jpg",600,400,75 -rtoday@00:00-1month,today@00:00
emw32 -c"reports\csv\%s%-temperature.csv" -rtoday@00:00-1month,today@00:00
ftp -n -s:upload.ftp
************

Do you mean this EmDataGen?

http://labs.picotech.com/#emw

If so then all EmDataGen does is put a GUI on a command line. I wrote it to make things easy, its written in C#
Ziko

Technical Specialist

1b3rt0
Newbie
Posts: 0
Joined: Tue Nov 13, 2012 12:21 pm

Re: EnviroMon and Windows 7

Post by 1b3rt0 »

yes, it is this: http://labs.picotech.com/#emw

I need to schedule calls to data extraction, for administrative pourpose. I tried first with the batch (which fails in Windows 7) but I ask also if it is possibile schedule with EmDataGen (which instead works)

ziko
Advanced User
Advanced User
Posts: 1705
Joined: Fri Dec 01, 2006 10:03 am
Location: St Neots

Re: EnviroMon and Windows 7

Post by ziko »

Where have you placed the bat file? Try putting it in your EnviroMon folder if you haven't already.
Ziko

Technical Specialist

1b3rt0
Newbie
Posts: 0
Joined: Tue Nov 13, 2012 12:21 pm

Re: EnviroMon and Windows 7

Post by 1b3rt0 »

Hi Ziko, the '.bat' file is there, in the installation directory.
It seems that, for you, there is not an error in '.bat' file (it is so simple...) and it should be working.
I think that the there is, in some way, a permissions problem but... the unaswered question is:
why the '.bat' file produces correctly the '*.rdg' file and don't proceeds with the human readable output ('*.csv', and '*.jpg')?

Thank you for your attention
umberto

ziko
Advanced User
Advanced User
Posts: 1705
Joined: Fri Dec 01, 2006 10:03 am
Location: St Neots

Re: EnviroMon and Windows 7

Post by ziko »

You will probably find that your files are saved in:

"C:\Users\xxxxx\AppData\Local\VirtualStore\Program Files\Pico Technology\EnviroMon\reports "

where xxxxx is your user log in.

Regards
Ziko

Technical Specialist

1b3rt0
Newbie
Posts: 0
Joined: Tue Nov 13, 2012 12:21 pm

Re: EnviroMon and Windows 7

Post by 1b3rt0 »

OK,
I will check this when I go to my customer.
Thank you very much Ziko
umberto

1b3rt0
Newbie
Posts: 0
Joined: Tue Nov 13, 2012 12:21 pm

Re: EnviroMon and Windows 7

Post by 1b3rt0 »

Hi Ziko, today I have been by my customer and I tried to address the issue following your suggestions. Well, the data were nor in the "C:\Users\xxxxx\AppData\Local\VirtualStore\Program Files\Pico Technology\EnviroMon\reports" folder, nor anywhere else. I tried simplify my batch to reduce possible error sources and finally I found the solutions: write the full path to the output file within double quote, also if the path doesn't contains white spaces.
emw32 -j"d:\usr\bin\pico\temperature.jpg",600,400,75 rtoday@00:00-1month,today@00:00"; before Windows 7 the double quote were unnecessary
Everything works fine, now
Thank you again for your attention
umberto

ziko
Advanced User
Advanced User
Posts: 1705
Joined: Fri Dec 01, 2006 10:03 am
Location: St Neots

Re: EnviroMon and Windows 7

Post by ziko »

Hi yeah I did notice you did not have the double quotes and that's what I put on the post. What I put worked on my computer providing I created the folders you include. So it should still work.

Regards
Ziko

Technical Specialist

Post Reply