The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 Eporting a graph (.png) to web
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

fitobass

3 Posts

Posted - 01/18/2012 :  3:40:15 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Is it possible to have origin to auto refresh and export a graph in png format to a website every 30 minutes?
Any Scripts to complete this?
Thanks
FB

Hideo Fujii

USA
1582 Posts

Posted - 01/18/2012 :  4:37:47 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi fitobass,

Origin has x-functions for the FTP file transmission, so you can export your Origin graph to a PNG file, then upload it to your web server - all controlled by your script. Please look at:
http://wiki.originlab.com/~originla/wiki2/index.php?title=X-Function:Oftp

Hope this helps you to achieve your project.

--Hideo Fujii
OriginLab




Edited by - Hideo Fujii on 01/18/2012 4:54:10 PM
Go to Top of Page

fitobass

3 Posts

Posted - 01/19/2012 :  08:49:10 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
expGraph;

What is the script to repeat exporting the graph every (time frame)(xx) minutes?
Go to Top of Page

Hideo Fujii

USA
1582 Posts

Posted - 01/19/2012 :  09:56:25 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi fitobass,

Timer command lets a script run every xx seconds: 
  http://wiki.originlab.com/~originla/ltwiki/index.php?title=LabTalk:Timer_%28command%29

Also, Second command can pause the execution of script running for xx seconds: 
  http://wiki.originlab.com/~originla/ltwiki/index.php?title=LabTalk:Second_%28command%29

Please try.

--Hideo Fujii
OriginLab
Go to Top of Page

fitobass

3 Posts

Posted - 01/19/2012 :  10:51:49 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
expGraph; working perfect thanks

unable to complete the script to export the graph every 6 minutes ?
Go to Top of Page

Hideo Fujii

USA
1582 Posts

Posted - 01/19/2012 :  2:39:13 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

Here is a snippet.

def TimerProc {
  impASC fname:=D:\Temp\test.dat options.FileStruct.NumericSeparator:=0;
  window -a test; //activate worksheet
  plotxy iy:=(1,2); //plot (x, y)
  expGraph type:=png filename:=myGraph path:=D:\Temp\ overwrite:=replace;
}
timer 360; //seconds

--Hideo Fujii
OriginLab
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000