LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Question about "To more generic class"

Solved!
Go to solution

Can someone please explain this function and let me know how to create the target class?

 

For example in the example below, a reference to the Waveform chart in the front panel is created and connected to " To more generic class". I don't understand how the green WaveformChart at the top for the target class is created.

 

Thank you!

Niloo_0-1783046071068.png

 

0 Kudos
Message 1 of 5
(1,191 Views)
Solution
Accepted by topic author Niloo

Hi Niloo,

 


@Niloo wrote:

I don't understand how the green WaveformChart at the top for the target class is created.


As usual: you right-click the terminal of the ToMoreGeneric funtion and select "create constant".

You will get a "Generic" reference: left-click that reference to select the needed class!

In your case you should select:

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 5
(1,153 Views)

Thank you so much for your clear and fast response. I really appreciate it!

 

Best regards

0 Kudos
Message 3 of 5
(1,120 Views)

@Niloo  ha scritto:

Thank you so much for your clear and fast response. I really appreciate it!

 

Best regards


I see you are new to the forum. Mark GerdW's post as a solution (you can mark multiple posts as solution and even one of your own, if you found it yourself).

You can also give a Kudo clicking on the yellow small star if you appreciate the answer, even for non-solution posts.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
Message 4 of 5
(1,112 Views)

If you already have a reference, you can right-click it and select "Create Constant". That is useful if you don't where in the tree your desired type is hiding.

To remove the strict qualifier (datatype like double/waveform), first create a control or indicator from the reference, uncheck "include data type" and then convert to constant. (The oher way is to re-select it in Gerds menu).

Message 5 of 5
(1,097 Views)