LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

polymorphic write key

This is probably something simple, but I just couldn't figure it out:(

Write Key in config file vi is suppose to be polymorphic, however, I am trying to write a double precision number, but LV keeps complain the different data type, the sink is boolean, the source is double. Do I need to do something special to enable polymorphic?

I am using LV8

Thanks,
0 Kudos
Message 1 of 5
(3,078 Views)
Works fine here. Can you attach a simple example VI that shows the problem?
0 Kudos
Message 2 of 5
(3,073 Views)

Perhaps you dropped the Boolean instance of the poly VI on your diagram instead of the poly VI itself?  Try dropping a new Write Key.vi from the palette and wiring to it.

-D

0 Kudos
Message 3 of 5
(3,063 Views)
Thanks,

Please look at the attached vi. I think it is because the number is not pure DBL, when I looked its properties, it has some kind of unit(?) there. I think I will change it to enum.
0 Kudos
Message 4 of 5
(3,057 Views)

Yes, assigning units to the control will change its datatype, and thus make it an invalid input to the Write Key poly VI.  Another problem is that the units you have assigned are not valid (notice the '?' in the unit label).  If you still want to use a DBL, the best thing to do would be to remove the units from the control by right-clicking, choosing Visible Items > Unit Label, then removing the text from the unit label.

-D

0 Kudos
Message 5 of 5
(3,051 Views)