06-22-2017 08:44 AM
Hi butche,
is that anyway to change the axis label for the same control we are using it for plot values in a xy graph i have tried it using axis name label property but i don't know how to synchronously use it for same control.
Thanks in advance
Dineshmeena
06-22-2017 09:45 AM
06-22-2017 10:27 AM
hi butcher,
i need to display a scale label for respective channel if i select channel 1 i would like to change the name of the axis in the graph also for example if i want to display a channel 1 in x axis the name in the x axis should change to channel 1 name, did you get my point?
06-22-2017 10:46 AM
Yes - it's a little clearer now. I'm unsure which part of the earlier solutions provided don't work for this though - you mentioned the appropriate property node and I just told you how you can use format to string to get the text value of an enum if you're instead using a (preferably typedef'd) enum.
If you're using a listbox, you can get the string value from the Item Names array, indexing based on the numeric value.
06-22-2017 01:11 PM
Hi butcher,
I got a solution for that but another thing is how can i programmatically print the graph, i got a set of graph for each tab in a front panel i need to take a print of the graph and save it in a file in any format, would you guide me?
06-22-2017 07:24 PM - edited 06-22-2017 07:25 PM
Right click on your graph and go down to Create > Invoke Node > Export Image / Export Image Color. Then fill in the appropriate fields - file type, target, path and so on.
The file types I see available are BMP, EPS, EMS and PICT. Hopefully that helps you.
If you prefer PDF, you can try this link: https://www.carya.nl/products/pfd-toolkit-labview/ but I have never used it.
06-23-2017 02:36 AM
hi butcher i have created a code here to print a graph evaluate is it correct or wrong? and also i need some modifications that i can't do that, actually i need to get a sample image every time i press save the image should automatically saved with seperate name and image , but in this every time i need to create a file, that part i can't create it. could you guide me, please?
06-23-2017 02:56 AM
To be able to create the new file, right click on the path (when not running) and go to Browse Options. Then select "New or Existing" instead of "Existing".
However, I don't think that's the simplest way to create the image you want. Let me suggest this instead:
This is the Invoke node I described earlier. You can create it by right clicking on the orange Waveform Graph terminal and then going to Create > Invoke Node > Export Image
06-23-2017 04:22 AM
i have created it but when i press save it shows error i gave attached a image file to you.
06-23-2017 05:00 AM
Hi butcher,
i just found more elegant solution to print the exact graph but it should automatically save and it should also automatically rename itself is that anyway i can do like that i have attached a file with this check it out.