LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can you create a property node automatically when placing an xcontrol

I have an xcontrol that always has an input and an output.  The xcontrol is always implemented as a control to comply with data flow paradyme, and a property node is used as the input connection.  I was wondering if anyone knows of a way to automatically create the property node when the xcontrol is placed on the front panel. 
I have noticed that a blank menu item in the xcontrol, will generate a property node.  Is there a way to specify which property node to generate.  And is there a way to insert into the menu for the control on the block diagram instead of the pane.

Thanks in advance

Kent
0 Kudos
Message 1 of 5
(2,953 Views)

I don't fully get what you mean, but you could use a 'merge' VI option, with your XControl, and the property nodes.

Ton

 
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 2 of 5
(2,947 Views)
Ton,
    I had though of this, but merge is for the function palette, and the controls palette only "lists" control objects for addition to the palette. 
    However, I persevered and forced the VI into the controls palette.  The trick is that the control palette only wants controls (.ctl,..xctl...), so I had to view all files and then select the VI.  Also the control palette does not have the option for "merge" VI's, however it appears that Labview automatically classifies them as merged VI's.

(Labview version 8.2.1)

Thanks

Kent
0 Kudos
Message 3 of 5
(2,933 Views)
Kent,

I work quite a lot with XControls, but didn't fully understand what you want.

Could you show a screenshot of your 'merge-control'?

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 4 of 5
(2,918 Views)
Ton,
    My "merge-control" is just a merge vi, as attached.  However the trick was to insert it into the controls palette (insert vi,  view all files, select the merged vi instead of the xcontrol). Merge VI's on the controls palatte seem to be automatically set to "explode/un merge" on use.
    To explain the use, this xcontrol is used to allow interuption of logic data flow.  This one is to simulate a switch that is used as an input to a PLC.  Thus standard simulation logic determines the normal (simulated real world) operation and is wired to the "In" parameter.  The xcontrol displays the simulation value on the front panel as the light on the left.  The middle switch is to either pass through the simulation value, or use the value input to the right led button.  The block panel control would then be wired out to connect to the PLC.  The objective of the control is to allow simulated operation, and forced faults to fully test PLC logic.  Hence I needed an xcontrol with both an input and output on the block diagram and a front panel object.  As we may have over 1000 of these in a project, I wanted to eliminate having to click on the block icon, select create, property node, In, and also turn off the label (to minimise space usage).

Kent
0 Kudos
Message 5 of 5
(2,913 Views)