LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to deal with Type Descriptor when using Ctrl Val.Set in Invoke node

Solved!
Go to solution

Hello, I am weiwei and currently a beginner of LabVIEW.

 

I am now dealing with a sample program provided by IWATSU to apply on IWATSU DS-5624 oscilloscope.

 

However, the sample program itself I think is created by version 7.1 of LabVIEW. I face a problem that the invoke method "Ctrl Val.Set[Flattened]" is shown to be deprecated and it told me to switch to "Control Value:Set" instead.

  When I switched to "Control Value:Set", the options of "Type descriptor" and "Flatten data" disappeared and "Value" appeared. I don't know how to deal with the type descriptor if I connect the flat data(string) to the option of "Value".

 

  I will attach the screenshot and the whole file in this article. Please check it if you need.

The file is the Viewgo_Remote_Sample(Visa)(Ver3.02).vi inside the zip file. I apologize if some program written in Japanese cannot be shown properly since the manufacturer only provided this sample program in Japanese.

0 Kudos
Message 1 of 3
(595 Views)
Solution
Accepted by topic author wuweiwei

Hi,

 

Try using "Flattened String To Variant" to convert Type String and Data String to a Variant:

raphschru_0-1687246418204.png

Regards,

Raphaël.

 

Message 2 of 3
(572 Views)

Hi Raphaël,

 

Thank you for your advice. I will try to apply that later.

 

Best,

weiwei

0 Kudos
Message 3 of 3
(526 Views)