How to change a path image property of a Switch/Indicator element in CANalyzer's Panel from CAPL? - panel

I'm using a Switch/Indicator Panel element in CANalyzer for visualising some system states with an image.
I would like to change the path from where the Switch/Indicator gets this image by means of a CAPL program configured inside a Program Node in a Mesaurement Setup.
So, are there a way to change a property like "image path" of a Switch/Indicator Panel element from CAPL?

There is a PictureBox element in the CANalyzer Panel whose file path can be loaded in measurement time with the SetPictureBoxImage() CAPL Panel function.
The advantage of doing so (PictureBox instead Switch/Indicator element Panel) been that if you need to represent a very large number of states (N), the Switch/Indicator method will need a unique very large image file (maybe not manageable), whereas the PictureBox will need N little images.

"Switch/Indicator" has property "Image".
To change it from CAPL in runtime:
setControlProperty("Panel name", "Switch/Indicator name", "Image", "c:\1.bmp");

Related

Abaqus: The following parts have some elements without any section assigned / Composite Layups

I am building up composite layups and assigning them to element sets. When I do so as soon as I try to submit the job, Abaqus always gives me the error "The following parts have some elements without any section assigned". There is not a single element without a material property, I do this by a script. As soon as I use a set which does not contain elements but a geometry Abaqus highlights the region green, but using geometry instead of element sets is not very suitable for me, because I am changing the properties of different elements. Also the region selection window opened by abaqus says "Sets below may contain elements, cells, shell faces or wire edges", so it should be possible to use element sets right?
I use the section assignment only for a small amount of elements, everything else is covered by composite layups.
If needed I can share more details from my model, but as I am not sure where to look for any errors right now, I wont do that right now.
Best regards and thanks for any advice!
You can do data check and then in open generated odb in viewer. In opened odb you can find ErrElemMissingSection in 'Display groups'

Get icon shortcut overlay when using IExtractIcon?

I'm working on changing some existing code that uses IExtractIcon to get the icon to add to an imagelist used to display files. It looks up the location IExtractIcon::GetIconLocation(), checks a std::map to see if the given location/icon index hash exists, if so uses the index to the imagelist from the map, otherwise uses IExtractIcon::Extract() to get it add add to the imagelist and the imagelist index to the map.
That is working, but the icons for shortcuts don't have the overlay and I need to have the overlay shown. Is there a way to use IExtractIcon to get the icon with the overlay? Or way for me to add it? Or is there a better way to do this overall and get it with the shortcut overlay (if it's a shortcut of course).
Thanks.

How to send values of Numeric Indicator to Numeric controler in LabVIEW

I need to get the showing value from numeric indicator and then put that value to the numeric controller to show in another numerical indicator in LabVIEW.
Normally we can get the values from numerical control to the numerical indicator.I need the opposite of that.
As shown in picture need a method to get values that show in numerical indicator to the controller.
Use a Property Node (Value), it has the error lines, so it is useful for dataflow control.
You can use a local variable or a property node.
Local Variable
Right click on the control or indicator, from the shortcut menu choose:
create->local variable
Once you've created that local variable you can right click on it and change it to write or read local.
Property Node
Right click on the control or indicator, from the shortcut menu choose:
create->property node->value
You can then right click on the property node and choose 'change to write' or 'change to read'.
Property Node vs Local Variable
Either will work in most cases. Local variables will perform better, providing faster access to the value, similar to that of the control/indicator terminal itself. Property nodes do provide error terminals that allow for taking advantage of data flow and ordering your operations. If you already have a property node in use for that control/indicator, adding a value terminal may not impact performance, otherwise use a local, if you need to control order of operations use a flat sequence structure and pass your error cluster through the structure.

Move Vaadin Slider

When I am invoking slider.setValue() it changes internal field value but not graphical representation of slider.
How to move slider to given value from server side? (For example on button click or something like this. Value change is invoked from other component.)
I have set slider.setImmediate(true); and after changing value called slider.requestRepaint(); but this did not helped.
You may check its' parent components and also check for the component which invokes this method in its' listener.

How to display information taken from text area in netbeans (for a GUI)?

I have taken information from a text area (on a JFrame) and saved it as a variable, but now I would like to display the string thats stored in that variable in a different JFrame (which already have created). how do i go about doing this?
Example:
one frame says: enter your name (store this value in a variable)
click proceed
closes first frame
second frame is open now and I want to display the name of the player (variable) in the top corner of the JFrame.
Any ideas on what to use from the swing palette?
Save the value in a static variable so that you can use it anywhere.

Resources