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
Macro line skipped in command line mode
Moderator: DPlotAdmin
- DPlotAdmin
- Posts: 2312
- Joined: Tue Jun 24, 2003 9:34 pm
- Location: Vicksburg, Mississippi
- Contact:
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.
[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
support@dplot.com
- DPlotAdmin
- Posts: 2312
- Joined: Tue Jun 24, 2003 9:34 pm
- Location: Vicksburg, Mississippi
- Contact:
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.
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
support@dplot.com