11-01-2007 05:49 PM
11-02-2007 12:51 AM
If you right-click on the Table control reference and choose Create > Constant, you'll get a "Table (strict)" reference constant, which, when used with To More Specific Class (instead of the "Table" reference constant), causes the code to work ok. If you're looking to create a control reference control that you can use in a subVI to pass in the control reference, check out this nugget, where I show how to create one on the front panel that uses the correct datatype for the control.
Good luck,
-D
11-02-2007 07:51 AM
Did someone leave the door to ivory tower open again?
Thanks for visiting stanger.
Ben
11-02-2007 09:08 AM
Notice the time stamp on my response...I had spent so long last night playing Guitar Hero III, I needed something to bring me back to reality before going to bed. So I picked LabVIEW... 😉
-D
11-02-2007 10:38 AM
Darren,
@Darren wrote:
If you right-click on the Table control reference and choose Create > Constant, you'll get a "Table (strict)" reference constant, which, when used with To More Specific Class (instead of the "Table" reference constant), causes the code to work ok. If you're looking to create a control reference control that you can use in a subVI to pass in the control reference, check out this nugget, where I show how to create one on the front panel that uses the correct datatype for the control.
Good luck,
-D
11-02-2007 11:06 AM
Ok, I verified that the behavior doesn't happen in LabVIEW 7.1. It does happen in 8.0 and later, though. I have filed CAR 4F1A1BF2 regarding this issue. For now, the workaround of using a strict control reference should be sufficient.
-D