Hey, don't apologise! I want LabVIEW to make me millions, but if it won't it ain't your fault!
Do you think that, if I create a Read/Write control with too many elements, it would be possilbe to wire them in scripting? Or is that likely to be ruled out as its an xnode?
How about the Build Array node? Can it be expanded or is it subject to the same caveat?
Also, I'm not sure what you mean by "This functionality ships with the FPGA Wizard."
Thanks for your reply.
Since a Read/Write control is a Node, you can query it for its terminals and connect to them as you normally would. So yes, you can wire to them in scripting with no problem.
The Build Array node is a normal LabVIEW primitive and you can add and subtract terminals from it with scripting subject to the usual LabVIEW caveats (e.g. cannot collape a wired terminal).
The FPGA Wizard is a development tool for those creating FPGA/RT applications. It scripts and configures FPGA XNodes as a necessary part of its function. It is written in G, so VIs (with stripped block diagrams) to configure the XNodes are include in it, although said VIs probably require FPGA Wizard run-time data. Right click on any FPGA target and you will have the option to run the wizard.
Thanks again. I can query the terminals easily enough. I need to learn how to make the connections next!
Do you have an example of how to expand the Build Array, please?
Connecting wires is fairly easy if you don't care where they go. Use the Terminal method Connect Wire. There is a method that allows you to specify the locations of the wire control points (the bends in the wire), but it does not work if you are wiring across diagram boundaries (e.g. from something in a loop to something outside that loop). Using the autoroute option helps with routing, but it has a timeout of 200ms, so routing sometimes fails on complex diagrams. If you run into this problem, there are workarounds (like diagram cleanup).
Growable functions can be resized using the Add Chunk and Remove Chunk methods. These are fairly new methods, and I have not used them (the old way was fairly complex).
Connect Wire does, but Add and Remove Chunk do not (I used LabVIEW 2010). Resize growable nodes in 2009 by first queying for the current height (use Master Bounds Rect and subtract the Bottom from the Top). Now get the Terminal Height and either add or subtract it from the current height, depending on whether you want to grow or collapse. Finally use the Resize method to set the new height. You can see why we fixed this for the official release of scripting. There may be slight differences in the way different growable nodes react, so be prepared to experiment.
I am stuck at how to create an array indicator. I found the way to create an array control and put a DB inside it to generate a valid array control, but what I really wanted was an array indicator. There is no 'indicator' object anywhere, or I did not find it? Help PLZ. Thanks.
Indicators and controls are the same thing under the hood. Change a control to an indicator by setting its Indicator property to TRUE.
I had posted a question about scripting on the LabVIEW discussion board earlier today... now I found this.
Here is the link:
I would appreciate any assistance.