LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Type cast error at later versions of LabView

I expect LabView to be backward compatable, but recently I found that some of my earlier programs written in LabView 6i will not work in version 6.1 or higher (I'm using version 7.1 now). One of them is the type cast function. Attached is a simplest type cast example VI written in LabView 6i, it runs fine under 6i, but it shows error in 6.1 and higher.

Could anybody explain why? And how to correct the program to make it work in 7.1?

Thanks.
0 Kudos
Message 1 of 2
(2,589 Views)
Hello Pji,

If you wire in the type input to the typecast function first and then choose to create a constant for the x input it does create a numeric constant with a broken wire very similar to what you are seeing. This is an error and a corrective action report has been created for our R&D dept. I apologize for any inconvenience.

As a workaround, you may want to try type casting your numeric to a string before typecasting to an IO type. This should resolve any issue you may be having with the type case function. I hope this helps.

Best Regards,
Chris J
0 Kudos
Message 2 of 2
(2,553 Views)