01-27-2011 07:44 AM - edited 01-27-2011 07:45 AM
Hello,
attached you find a vi with two waveform-graphs.
When i rightclick them and select "create constant" then it creates the constant.
The difference between the two graphs is, that one creates a double-array inside the constant and the other graph creates an int-array inside
The question is: Where can i change inside of the int-graph that it also creates a double-array in the constant?
(Problem is that all double-waveforms send into this graph are changed to int and rounded in the display)
Thanks for the help
01-27-2011 07:51 AM
All you need to do is right-click on the array, then change the representation
01-27-2011 07:54 AM
Yes, i know how to change the constant, but i want to change the type inside of the graph. So that the next time when i select "create constant" it creates the double-array automatically.
(The constant is only used to check if the graph has the correct type.)
01-27-2011 08:00 AM
You can try deleting your Int Graph.
Then copy & paste your double graph.
Now when you create a constant from the pasted graph, the y-array will be DBL
01-27-2011 08:16 AM
Yes, i know that i can do this. The attached is only an example to explain my question.
But i want to understand WHY it is like it is.
And also HOW i can solve this problem without workarounds.
Thanks for your help
01-28-2011 03:47 AM
Hi OnlyOne,
there is no setting in the properties of a waveform to change the type. There is even no need, a waveform recognizes the data type of the connected wire automatically, It would not be very comfortable to change the data types in every waveform manually each time.
01-28-2011 08:25 AM
The datatype of a chart or graph is determined by the last thing you wired to it. By default, they are simple doubles or arrays of doubles. My guess is that you first wired a waveform with an integer data type to the graph. It should switch automatically to a double waveform graph if you wire a waveform which contains double data to it. If it does not, that is probably a bug. If you have a VI in this state, please post it and I will report it to R&D.
Thanks!
05-13-2011 09:00 AM
I can confirm having this bug. The only workaround I can find is copying and pasting a waveform graph of the correct type...but this is very frusterating when a waveform graph type that is needed is not available in the current VI. Please fix!
05-16-2011 08:31 AM
I cannot reproduce this with the following steps (LabVIEW 2010 SP1):