ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

scan from string

Solved!
Go to solution

I want to change some strings such as:

a

ab

abc

to enum type, but can't succeed, why?

I found that scan from string can transfer some strings to enum control, or constant, indicator?

Feeling confused.

Thanks.

0 Kudos
Message 1 of 17
(5,229 Views)

Hi ZHH,

 

Please post your code and we can show you where you went wrong. Consider posting a LabVIEW snippet or upload for an older version (Like LV 2012) so that more people can see it.

0 Kudos
Message 2 of 17
(5,214 Views)

Hi Gregoryj

Problem just solved, it is the input type match…

Thanks for your reply.

0 Kudos
Message 3 of 17
(5,197 Views)

Hi GregoryJ

Sorry, I don't know why it seemed solved, but again not working....

0 Kudos
Message 4 of 17
(5,175 Views)

Hi ZHH,

 

The VI is from LV 2016, please attach for an earlier version like LV 2012.

0 Kudos
Message 5 of 17
(5,166 Views)

Hi,

I installed labview 2016, any difference between 2016 and 2012? 

0 Kudos
Message 6 of 17
(5,162 Views)

No, but I don't have the most recent version, so I cannot view your VI. If you save for a previous version and select 2012 I will be able to view it.

0 Kudos
Message 7 of 17
(5,159 Views)

Hi ZHH,

 

any difference between 2016 and 2012?

Yes!

In LV2016 you can open VIs from older LV versions (like LV2012) - but in LV2012 you cannot open VIs from more recent LV versions like LV2016!

(The most prominent change in LV2016 were the new channel wires! Other versions "just" changed icons… :D)

When people ask for uploading your VI in an older LV version you should do so (Edit menu -> Save for previous)!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 8 of 17
(5,154 Views)

I see, thanks.

0 Kudos
Message 9 of 17
(5,152 Views)

I saved it as of 2012, does it works now?Thanks.

0 Kudos
Message 10 of 17
(5,147 Views)