02-06-2007 02:37 PM
02-06-2007 02:44 PM
02-06-2007 02:59 PM
02-06-2007 03:09 PM
A strict typedef enforces the appearance and properties (range, etc.) of the control as well as the type. The help should have more details.
Note - while a regular typedef allow you to change the appearance of each instance, updating the typedef will make all instances look like the new typedef, making you lose your changes.
02-06-2007 03:17 PM
02-06-2007 03:25 PM
02-06-2007 03:28 PM
02-06-2007 03:39 PM
02-06-2007 03:42 PM
It's not so much the "custom control" part as it is the typedef part. A typedef enforces the datatype for all its instances, including constants, so changing it will propogate through your entire code. To create it the easiest way is to create a front panel enum control and then right click it and select Advanced>>Customize. You can then change it into a typedef and save it under any name you want.
From this point on, you can simply use that typedef in your code.
To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here, here, here, here and here are a few you can start with and here are some tutorial videos. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).
02-06-2007 03:45 PM
The enum will be a constant within the block diagram. You can have one or multiple items in the drop down list based on what items are saved in the .ctl file.
If you edit the .ctl file to add, subtract, or change an item, the changes get updated wherever the file was used to create the constants. So you only have to make one modification, instead of tracking down numerous places it was used.