DPlot Forum Index DPlot
http://www.dplot.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Macro line skipped in command line mode

 
Post new topic   Reply to topic    DPlot Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
HaJo



Joined: 02 Feb 2010
Posts: 2

PostPosted: Tue Feb 02, 2010 10:54 am    Post subject: Macro line skipped in command line mode Reply with quote

Can you confirm that always the first line / action (like Title1) of a macro will be skipped if the macro was called via command line ?
The next line below will be executed, so repeating the first line works as a workaround.
I just encountered this while opening a Labview LVM file with the header lines shown as title 1-3. The macro intends to change title1-3 but only changes title2 and title3...

Calling the same macro inside DPLOT (via menu) works fine.

Best regards,
HaJo
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Tue Feb 02, 2010 3:07 pm    Post subject: Reply with quote

No I can't, sorry. I tried the command line

[path]\dplot.exe filename.csv /m hajo

where the HaJo macro contains

Title1("Title1")
Title2("Title2")
Title3("Title3")

and I got those 3 title lines. If you're opening a file on the command line it is possible that during the interpretation of that file the first title line is overridden. You're of course welcome to send me a file and let me know exactly what you're doing on the command line.
_________________
Visualize Your Data
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Wed Feb 03, 2010 8:36 am    Post subject: Reply with quote

Thanks for the example.

The title lines in your macro are being overridden by the processing of your Labview file. If you switch the command line order from

%ProgramFiles%\dplot\dplot.exe /m SetTitle /X1Y2,3,4,6,14,15,16,19 "Test Dplot.lvm"

to

%ProgramFiles%\dplot\dplot.exe /X1Y2,3,4,6,14,15,16,19 "Test Dplot.lvm" /m SetTitle

(so that the macro is processed after the file has been read) then it will work as expected.
_________________
Visualize Your Data
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    DPlot Forum Index -> Bug Reports All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group