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
 All Forums
 Origin Forum
 Origin Forum
 Eporting a graph (.png) to web

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
fitobass Posted - 01/18/2012 : 3:40:15 PM
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
5   L A T E S T    R E P L I E S    (Newest First)
Hideo Fujii Posted - 01/19/2012 : 2:39:13 PM
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
fitobass Posted - 01/19/2012 : 10:51:49 AM
expGraph; working perfect thanks

unable to complete the script to export the graph every 6 minutes ?
Hideo Fujii Posted - 01/19/2012 : 09:56:25 AM
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
fitobass Posted - 01/19/2012 : 08:49:10 AM
expGraph;

What is the script to repeat exporting the graph every (time frame)(xx) minutes?
Hideo Fujii Posted - 01/18/2012 : 4:37:47 PM
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




The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000