24小时热门版块排行榜    

查看: 329  |  回复: 0

newscat1993

木虫 (小有名气)

[求助] vb.net调用gnuplot并且load参数文件

用vb.net调用gnuplot这个软件并且能够让它load ‘.\experiment-3\Rjhplot.plt’文件。
在gnuplot中load ‘.\experiment-3\Rjhplot.plt’没有问题,但是如果从vb.net中调用就不能够进行,我可以单独打开gnuplot这个应用程序但是不能够调用任何配置文件,提供代码如下:
CODE:
Dim gnu As New ProcessStartInfo(Application.StartupPath & ".\gnuplot\bin\gnuplot.exe")
With gnu
    gnu.Verb = "load"
    gnu.Arguments = ".\experiment-3\Rjhplot.plt"
    gnu.FileName = ".\experiment-3\Rjhplot.plt"
    gnu.RedirectStandardError = True
    gnu.RedirectStandardOutput = True
    gnu.UseShellExecute = False
    gnu.CreateNoWindow = False
End With
Dim g As Process = Process.Start(gnu)
Dim gOutput As String = g.StandardOutput.ReadToEnd()
Dim gError As String = g.StandardError.ReadToEnd()
g.WaitForExit()
配置文件内容如下:
set key off
  set xlabel "t (min)" offset 0,1 font 'Times,11'
  set ylabel "T (K)" offset 3,0 font 'Times,11'
  set title "T-t Graph for Renald Correction" offset 0,-0.5 font 'Times,14'
  set decimalsign "."
  set format x "%.2f"
  set format y "%.2f"
  set xtics offset 0,0.5   
  plot "Rjhdata.txt" using 1:2 with linespoints linetype -1

[ Last edited by jjdg on 2012-11-11 at 01:09 ]
回复此楼
Rex.soul
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 newscat1993 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 085600材料与化工 +3 安全上岸! 2026-03-16 3/150 2026-03-17 13:44 by houyaoxu
[考研] 293求调剂 +5 世界首富 2026-03-11 5/250 2026-03-17 10:16 by Sammy2
[考研] 材料专硕274一志愿陕西师范大学求调剂 +5 薛云鹏 2026-03-13 5/250 2026-03-17 10:15 by Sammy2
[考研] 梁成伟老师课题组欢迎你的加入 +8 一鸭鸭哟 2026-03-14 9/450 2026-03-16 17:35 by 沐霖12138
[考研] 304求调剂 +5 素年祭语 2026-03-15 5/250 2026-03-16 17:00 by 我的船我的海
[考研] 318求调剂 +3 Yanyali 2026-03-15 3/150 2026-03-16 16:41 by houyaoxu
[考研] 070303一志愿西北大学学硕310找调剂 +5 d如愿上岸 2026-03-12 8/400 2026-03-16 15:19 by peike
[考研] 085600材料与化工 求调剂 +13 enenenhui 2026-03-13 14/700 2026-03-16 15:19 by 了了了了。。
[考研] 0856求调剂 +3 刘梦微 2026-03-15 3/150 2026-03-16 10:00 by houyaoxu
[考研] 311求调剂 +6 冬十三 2026-03-15 6/300 2026-03-16 08:00 by wang_dand
[考研] 26考研一志愿中国石油大学(华东)305分求调剂 +3 嘉年新程 2026-03-15 3/150 2026-03-15 13:58 by 哈哈哈哈嘿嘿嘿
[考研] 080500,材料学硕302分求调剂学校 +4 初识可乐 2026-03-14 5/250 2026-03-14 21:08 by peike
[考研] 材料工程327求调剂 +3 xiaohe12w 2026-03-11 3/150 2026-03-14 20:20 by ms629
[考研] 308 085701 四六级已过求调剂 +7 温乔乔乔乔 2026-03-12 14/700 2026-03-14 10:49 by JourneyLucky
[考研] 0703化学调剂 +4 快乐的香蕉 2026-03-11 4/200 2026-03-13 22:41 by JourneyLucky
[考研] 274求调剂 +3 S.H1 2026-03-12 3/150 2026-03-13 15:15 by JourneyLucky
[考研] 308求调剂 +3 是Lupa啊 2026-03-12 3/150 2026-03-13 14:30 by 求调剂zz
[考研] 296求调剂 +3 大口吃饭 身体健 2026-03-13 3/150 2026-03-13 10:31 by 学员8dgXkO
[考研] 283求调剂,材料、化工皆可 +8 苏打水7777 2026-03-11 10/500 2026-03-13 09:06 by Linda Hu
[考研] 大连大学化学专业研究生调剂 +3 琪久. 2026-03-10 8/400 2026-03-11 10:02 by 琪久.
信息提示
请填处理意见