03-27-2019 04:59 AM
Hello every one,
I am working on a project that allows me to configure my graph with some parameters in order to print it later, and thats will happen when configuring :
Large
Width
Number of Miliseconds per cm
My question is how to calculate the instant t of my graph if for example i have 20 cm large and each milliseconds of my X axes represent 3 cm, at the same time my graph should have this configuration mentioned before after printing it
I hope i get some help , thank you
03-27-2019 05:30 AM
So you have some configuration parameters.
Then you do some configuration.
Then you want some information.
Everything would depend on the details that you are leaving out... How are those parameters used to configure the graph, to name just one detail. I'm sure "using Large, Width and Number of Milliseconds per cm to configure a scale" makes perfect sense to you, but please keep in mind that we have no idea what you are trying to do here in the first place...
Posting a screenshot or even the VI (why not?) will probably be useful to provide help.
03-27-2019 08:56 AM
Yes, In fact i display on a graph some time signals and i want to print it but before that i need to configure it, as you can see on the front panel i have some parameters to use ( Hauteur, Nombre de ms pour 1 cm ...etc) My question is :
-How to calculate the time value t on the X axis , so that my graph is going to have the desired large ( defined before on the front panel)
- 2ndly How to scale my X axis in order to have for example (2 miliseconds -> 3cm on the paper once printed)
Thank you for your help
03-29-2019 05:38 AM
If I understand correctly, you want to scale something in LabVIEW, so when printed it has the correct size.
Is this always the same printer? And same paper size? If this is to be installed on arbitrary computers with arbitrary printer, it will be near impossible.
I'd probably make a PDF first, as PDF is pretty deterministic\standardized.
03-29-2019 05:50 AM
Yes that is what i am looking for, printing a graph that it has the correct size.
most of the time would be the same printer and same paper size, and the printer is already installed
and i would like to do that without using pdf :
My problem is in the sub VI (calcul pour impression), if you have some suggestion to calculate the ( large, width, ... etc) i would be gratefull
because actually that sub vi is not working well, and if you enter in it you will find some coeff such as (0.265 i think it was used to pass from pixels into milimeters)
Thanks for helping me. Regards
03-29-2019 06:01 AM - edited 03-29-2019 06:02 AM
Hi virtman,
My problem is in the sub VI (calcul pour impression),
But you failed in attaching that subVI with your message(s)…
Do you really need so many local variables in your VI?
You can also combine many of those property nodes for less clutter in the block diagram…
03-29-2019 06:07 AM
Hi GerdW,
Actually the Sub vi that i mentionned before exist in the Graph_ print.VI block diagram
well i need to save the older dimension once graph printed to remain the older dimensions.
Best regards
Virtman
03-29-2019 07:08 AM
@virtman wrote:
My problem is in the sub VI (calcul pour impression), if you have some suggestion to calculate the ( large, width, ... etc) i would be gratefull
I'm not sure you can... The DPI's on the printer are key here, and might depend on the loaded paper and such.
Then again, if you add a calibration ratio (aka twitch factor) the user can decide... Simply print once, measure the error, correct with a ratio.
03-29-2019 07:50 AM - edited 03-29-2019 07:51 AM
Hi virtman,
Actually the Sub vi that i mentionned before exist in the Graph_ print.VI block diagram
Yes, sure there is an icon in the block diagram - missing for us as the corresponding VI file only exists on your computer!
When you want to learn about the basics of LabVIEW (like handling of VI and projects) you should take the links in the Training section in the header of this LabVIEW board!
i need to save the older dimension once graph printed to remain the older dimensions.
To save data you should use files…
03-29-2019 08:15 AM
yes i 'am sorry i didnt see that,
you will find them right here
Thank you for help