Ascen Posted October 31, 2007 Report Share Posted October 31, 2007 Even after hours of prowling the forums, etc, I have been unable to find out how to set a cluster reference to Include data type. I need to use strictly typed cluster reference as a input to a subvi - I have managed to get it do just that by creating the subvi with local variables and then going through "Edit>>Create SubVI". However, I would like to know how to create proper references directly, without going through those steps. This here (Lavag - Control References) simply states "by right clicking on the refnum (or its terminal in the block diagram) and selecting "Include Data Type" in order to set a control reference data type. However, when right-clicking the control refnum, the Include Data Type is greyed. I'm using version 8.2.1 Quote Link to comment
JDave Posted October 31, 2007 Report Share Posted October 31, 2007 QUOTE(Ascen @ Oct 30 2007, 10:45 AM) Even after hours of prowling the forums, etc, I have been unable to find outhow to set a cluster reference to Include data type. I need to use strictly typed cluster reference as a input to a subvi - I have managed to get it do just that by creating the subvi with local variables and then going through "Edit>>Create SubVI". However, I would like to know how to create proper references directly, without going through those steps. Just drag the control (typedef or not) onto the generic control ref. Ctrl-drag and drop will keep the original control on the front panel, otherwise it will be swallowed by the ref. Quote Link to comment
Ascen Posted November 1, 2007 Author Report Share Posted November 1, 2007 Thank you for that. Embarrassing to get to stuck to such a trivial issue. Quote Link to comment
LAVA 1.0 Content Posted November 1, 2007 Report Share Posted November 1, 2007 QUOTE(Ascen @ Oct 31 2007, 08:27 AM) Thank you for that. Embarrassing to get to stuck to such a trivial issue. Don't be embarrased. I had forgotten about that tip myself. and BTW, I do love that expresion "otherwise it will be swallowed by the ref. ". It is SO descriptive of what actually happens. Ben Quote Link to comment
ASTDan Posted January 19, 2008 Report Share Posted January 19, 2008 Why is the "Include Data Type" Grayed out? Thanks Dan QUOTE(JDave @ Oct 30 2007, 01:05 PM) Just drag the control (typedef or not) onto the generic control ref. Ctrl-drag and drop will keep the original control on the front panel, otherwise it will be swallowed by the ref. Quote Link to comment
JDave Posted January 19, 2008 Report Share Posted January 19, 2008 QUOTE(ASTDan @ Jan 18 2008, 11:15 AM) Why is the "Include Data Type" Grayed out? I'm not sure. It is grayed out only sometimes. If it is a generic control ref, then there is no data type to include -- thus it is grayed out. If you drag a control onto the ref, then the option becomes checked and not grayed out. Is there a particular situation that you are looking at? David Quote Link to comment
ASTDan Posted January 19, 2008 Report Share Posted January 19, 2008 If I manualy navigate to define the control Ref i.e. Right Click on a generic control ref, Select VI Server Class\Generic\etc.... The option to include the data type is grayed out. In the past I was able to select that (I think I could....). Why is it grayed out? Is this a bug? It seems you should be able to select if you want to include that data type or not. Thanks Dan QUOTE(JDave @ Jan 18 2008, 02:27 PM) I'm not sure. It is grayed out only sometimes. If it is a generic control ref, then there is no data type to include -- thus it is grayed out. If you drag a control onto the ref, then the option becomes checked and not grayed out.Is there a particular situation that you are looking at? David Quote Link to comment
JDave Posted January 19, 2008 Report Share Posted January 19, 2008 QUOTE(ASTDan @ Jan 18 2008, 01:43 PM) If I manualy navigate to define the control Ref i.e. Right Click on a generic control ref, Select VI Server Class\Generic\etc....The option to include the data type is grayed out. In the past I was able to select that (I think I could....). Why is it grayed out? Is this a bug? It seems you should be able to select if you want to include that data type or not. The ref class that you choose by manually navigating is still a "generic" version of that class. If you create a ref control from a control (by right clicking on it or Ctrl+dragging the control onto a ref) then the ref control now has access to the properties of that control (numeric representation, boolean mechanical action, etc.). These properties are what is referred to by this "Include Data Type". David Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.