LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can typecast create error?

Solved!
Go to solution

Must be Friday afternoon...

 

To come back the title of your question, I'd say: no, a typecast cannot create an error.

 

All values of 4 bytes will cast to a double. The doubles might not make sense, but the cast will always succeed and therefor cannot return an error.

0 Kudos
Message 11 of 12
(965 Views)

wiebe@CARYA wrote:

To come back the title of your question, I'd say: no, a typecast cannot create an error.


Yes, as we all can see, typecast only has one output, there is no "error out". This also means that you can literally feed it anything at run time and the GIGO rule applies.

 

(*The LabVIEW compiler has some protection and creates a broken wire with some combinations of inputs. e.g. you cannot cast 2D arrays, of course. Flatten/unflatten is more versatile)

 

0 Kudos
Message 12 of 12
(949 Views)