Smith, Blair wrote: > Let's just admit it. LabVIEW has no exact equivalent to the #define > !right now!. There are workarounds that might be nearly as useful; > maybe the closest equivalent would be to create a strict typedef'd > custom control, hidden on the panel, with the default value set to
No, strict typedefs don't have to be on the panel. Try dragging a strict typedef from an Explorer window to a block diagram and see what happens. You could have a directory of constants and drag the one you want onto the diagram you want it on. This isn't as nice as having a single text file with them all in, but I don't see it as a major problem if you want this kind of functionality. To make new ones, just copy and rename an existing file, open it up and change the value. It's hardly going to tempt me back to preferring text based code. There's a lot of things in C/C++ that Labview has no exact equivalent to. Labview has no direct equivalent to the steamer on the espresso machine downstairs. Different things don't HAVE direct equivalents. -- Dr. Craig Graham, Software Engineer Advanced Analysis and Integration Limited, UK. http://www.aail.co.uk/
