Test and Measurement Forum

EnviroMon and Windows 7

Having problems ? let us know the details here

EnviroMon and Windows 7

Postby 1b3rt0 » Tue Nov 13, 2012 12:31 pm

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
1b3rt0
Newbie
 
Posts: 0
Joined: Tue Nov 13, 2012 12:21 pm

Re: EnviroMon and Windows 7

Postby ziko » Tue Nov 13, 2012 2:10 pm

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
ziko
Zen Master
Zen Master
 
Posts: 1705
Joined: Fri Dec 01, 2006 10:03 am
Location: St Neots

Re: EnviroMon and Windows 7

Postby 1b3rt0 » Tue Nov 13, 2012 3:14 pm

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
1b3rt0
Newbie
 
Posts: 0
Joined: Tue Nov 13, 2012 12:21 pm

Re: EnviroMon and Windows 7

Postby ziko » Tue Nov 13, 2012 4:16 pm

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
ziko
Zen Master
Zen Master
 
Posts: 1705
Joined: Fri Dec 01, 2006 10:03 am
Location: St Neots

Re: EnviroMon and Windows 7

Postby 1b3rt0 » Tue Nov 13, 2012 4:57 pm

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
1b3rt0
Newbie
 
Posts: 0
Joined: Tue Nov 13, 2012 12:21 pm

Re: EnviroMon and Windows 7

Postby ziko » Wed Nov 14, 2012 11:43 am

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

Cheers
Ziko

Technical Specialist
ziko
Zen Master
Zen Master
 
Posts: 1705
Joined: Fri Dec 01, 2006 10:03 am
Location: St Neots

Re: EnviroMon and Windows 7

Postby 1b3rt0 » Wed Nov 14, 2012 12:43 pm

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 109 times
1b3rt0
Newbie
 
Posts: 0
Joined: Tue Nov 13, 2012 12:21 pm

Re: EnviroMon and Windows 7

Postby ziko » Thu Nov 15, 2012 8:02 am

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
ziko
Zen Master
Zen Master
 
Posts: 1705
Joined: Fri Dec 01, 2006 10:03 am
Location: St Neots

Re: EnviroMon and Windows 7

Postby 1b3rt0 » Thu Nov 15, 2012 9:21 pm

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)
1b3rt0
Newbie
 
Posts: 0
Joined: Tue Nov 13, 2012 12:21 pm

Re: EnviroMon and Windows 7

Postby ziko » Fri Nov 16, 2012 10:09 am

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

Technical Specialist
ziko
Zen Master
Zen Master
 
Posts: 1705
Joined: Fri Dec 01, 2006 10:03 am
Location: St Neots

Re: EnviroMon and Windows 7

Postby 1b3rt0 » Mon Nov 19, 2012 6:59 am

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
1b3rt0
Newbie
 
Posts: 0
Joined: Tue Nov 13, 2012 12:21 pm

Re: EnviroMon and Windows 7

Postby ziko » Tue Nov 20, 2012 11:27 am

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
ziko
Zen Master
Zen Master
 
Posts: 1705
Joined: Fri Dec 01, 2006 10:03 am
Location: St Neots

Re: EnviroMon and Windows 7

Postby 1b3rt0 » Tue Nov 20, 2012 11:51 am

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

Postby 1b3rt0 » Fri Nov 30, 2012 6:18 pm

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
1b3rt0
Newbie
 
Posts: 0
Joined: Tue Nov 13, 2012 12:21 pm

Re: EnviroMon and Windows 7

Postby ziko » Fri Dec 07, 2012 10:43 am

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
ziko
Zen Master
Zen Master
 
Posts: 1705
Joined: Fri Dec 01, 2006 10:03 am
Location: St Neots


Return to Getting Started

Who is online

Users browsing this forum: No registered users and 0 guests