LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do i change the data type of Waveform Graphs control from DBL TO SGL

Solved!
Go to solution

Labview version is 2017

The default data type of Waveform Graphs control is DBL

I cant find a way to change it 

0 Kudos
Message 1 of 6
(2,247 Views)
Solution
Accepted by topic author Bat-Freak

You just need to wire a SGL array to the graph...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(2,243 Views)

But it wont help the memory man'agement🤔

0 Kudos
Message 3 of 6
(2,235 Views)

@Bat-Freak wrote:

But it wont help the memory man'agement🤔


Why not? The graph is polymorphic and will therefore choose the implementation based upon the connected input. If you connect the SGL you will see that it does not create a coercion dot - it changes to SGL instead.

0 Kudos
Message 4 of 6
(2,182 Views)

Hi Freak,

 


@Bat-Freak wrote:

But it wont help the memory man'agement🤔


Which "memory management" are you talking about?

What is the goal behind your question about using SGL with graphs?

 

(You might run into other "memory management" troubles as many math functions only support DBL and no SGL, resulting in coercion dots in other places in your code…)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 6
(2,167 Views)

A waveform graph accepts a very rich collection of different input and will adapt whenever a suitable type is wired to it (See below).

 

(When you say "control", I assume you actually mean "indicator". A graph as control makes little sense!)

 

Before you wire anything to it, it contains no data, and consumes no data memory! 

 

A waveform graph accepts many datatypes without coercion. Here's a (incomplete) list.

 

  • 1D numeric array (all integer (I8..U64) and floating point types (SGL..EXT) except FXP and complex)
  • 2D numeric arrays of these types
  • A cluster of three elements (offset, multiplier, and 1D or 2D data as above)
  • A 1D array of such clusters
  • A waveform
  • An array of waveforms
  • dynamic data
  • ...
0 Kudos
Message 6 of 6
(2,156 Views)