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: 

bug typedef does not connect to expression node

Attached is a simple vi that tries to connect a typedef (in this case a double) to an expression node.
Since LV8 this is not allowed anymore.
We choose LabVIEW because it was possible to use it as a strict typed language. (one of the reasons).
We see that the developers go a long way to make the language so easy that it is too strict to allow typedefinitions to an expression node.
But it can also be a slip of the compiler of course.
 
attached are the example vi and the typedef.
please supply a patch because this makes it impossible for us to switch to LV8
 
greetings from the Netherlands
Albert Geven
greetings from the Netherlands
Download All
Message 1 of 6
(4,051 Views)

A workaround is easy but should not be necessary because the typedef is used to keep it a typedef.

Simply use an explicit type conversion in this case to [DBL], at least that was my guess....

but an explicit conversion already knows there is nothing to do so it does not help.

A typecast helps but sure that is not what I want, see picture below.

greetings from the Netherlands
Message 2 of 6
(4,013 Views)
Sorry for the inconvenience, I have filed a bug report on this issue.
0 Kudos
Message 3 of 6
(3,984 Views)
While waiting for the bug to be fixed, you can do something like I've illustrated in the attached screenshot.  Sure, it's ugly, but it will work.
0 Kudos
Message 4 of 6
(3,961 Views)
Thanks Stephen and Jeff.
I already found out the typecast myself and I also blame myself for not finding it in the beta.
I can use this workaround but sure its ugly and not what you want for a typedef
 
greetings from the Netherlands
Message 5 of 6
(3,945 Views)
 

This was reported to R&D (# 3TU9381W) and was fixed in LabVIEW 8.0.1. 

Thanks!

Travis H.
LabVIEW R&D
National Instruments
Message 6 of 6
(3,796 Views)