Create cursors programmatically with custom properties
Hello!
I have problems creating cursors by programming in Labview 2009. Basically, I have an image that is rendered as a table. When you press a button, I want about 7 sliders to appear on the graph of the intensity of my image. I then want to read values from the sliders (z-values) and do some calculations base with them.
The Labview help says to use the CursorList property to create sliders so I understand. I am trying this now, as follows:
Create the property node and the link to the image. Choose the property of CursorList. Right click and create constant. Then I'm trying out the different sliders with the index of table vi, change their names to 1-7. Then I thought to put their back with the cluster vi version, but it does not work.
In the future, I would like to set several properties of each slider (and not just the name). What is the right approach for my problem? I did a search on the topic, but nothing useful came. Please point me to a thread that I might have missed.
Is attached a screenshot of my problem... How to create several cursors at a time by programming with some properties tuned to my taste?
Thanks for your help!
Chris
Kokomoking wrote:
Hello!
I have problems creating cursors by programming in Labview 2009. Basically, I have an image that is rendered as a table. When you press a button, I want about 7 sliders to appear on the graph of the intensity of my image. I then want to read values from the sliders (z-values) and do some calculations base with them.
The Labview help says to use the CursorList property to create sliders so I understand. I am trying this now, as follows:
Create the property node and the link to the image. Choose the property of CursorList. Right click and create constant. Then I'm trying out the different sliders with the index of table vi, change their names to 1-7. Then I thought to put their back with the cluster vi version, but it does not work.
In the future, I would like to set several properties of each slider (and not just the name). What is the right approach for my problem? I did a search on the topic, but nothing useful came. Please point me to a thread that I might have missed.
Is attached a screenshot of my problem... How to create several cursors at a time by programming with some properties tuned to my taste?
Thanks for your help!
Chris
Do not build Bay cluster. Just use build array (programming-> table-> table of generation). Who should take care of your cut wire. When you use the cluster table version, it builds your cluster in ANOTHER group that is not what you want.
The table of index VI is also extensible (click on the lower part of it and drag). In this way, that you don't need 8 of them on your drawing.
Tags: NI Software
Similar Questions
-
Create group style with custom name
Is it possible to create a style with a specific name?
Here is my code:
myDocument.cellStyleGroups.add ();
It creates a new group named "Style 1 group".
Sure. Two ways:
var myDocument = app.activeDocument; myDocument.cellStyleGroups.add( { name: "Custom Group Name" } );
or
var myDocument = app.activeDocument, styleGroup = myDocument.cellStyleGroups.add (); styleGroup.name = "Custom Group Name";
If you want to use styleGroup later, you can use the second way.
Don't forget that you will have to manually check check if the group exists before creating.
Hope that helps.
--
Marijan (tomaxxi)
-
Relationship with custom properties with friendly names for networks
Hello
Basically, I wanted to use the expression of value for networks, but using a friendly name for the network, as the network profile names would confuse the user. We have created four areas (apps, web, db and gen) and 3 network classes (prod, dev UAC) for a total of 12 network profiles. I have the expression works but it takes map a friendly name of "prod" to a profile of network specific to this region and class. If an application server which should be prod you hit the drop down menus, but the "prod" would be effectively mapped vwire/network specific to the application server that are prod name.
Any help is greatly appreciated.
Well Yes, it's a common request. You use the vCO to do the translation. Your items in dictionary of properties will have the friendly name that the user selects and then you will run a vCO workflow during WFStubBuildingMachine that would make the translation and rewrite the property in vCAC for which network to place the machine on. I'd be more than happy to build something that can do it for you. According to the time available I can put together in a little later this week or early next week. It's something that I wanted to blog in any case.
-Sid Smith
-
What script to create a model with a user interface panel
Hello guys,.
So I am new to scripting and javascript and I'm trying to keep it simple. I'm a VJ and want to create a script where I get a 'BPM' and a 'beat' lengh and it generate me a comp with the right length and * a layer with a marker ofr each beat.
I was able to create this script, but I try to make it look a little better with integration of the user interface for AE I wasn't able to make it work right. If anyone can help me or give me some advice. I think that I'm not good with the expression "addComp" in the buildUI function.
I copy everythin because it is long but you'll be understaind the main idea. My question is how to that the entry in my Advanced UI instead of "the guest".
Here is my first code that does the job:
Elements Var Set
var name = prompt ("membership name");
var BPM = prompt ("your BPM");
If (isNaN (BPM)) {}
Alert ("you must give the model a value");
}
Var prompt = beats ("how many times");
If (isNaN (Beats)) {}
Alert ("you must give the model a value");
}
frameRate var = prompt ("your fps");
If (isNaN (frameRate)) {}
Alert ("you must give the model a value");
}
term var = (60 / BPM * bat); Automatically generated
var beat = (60 / BPM);
Part of creation
app.project.items.addComp (name, 1920, 1080, 1, duration, frameRate); Create the model with custom Lengh
App.Project.Item (01).layers.addSolid ([0,0,0], "BG", 1920, 1080, 1, length); Create solid BG
var firstLayer = app.project.item (1) .layer (1);
firstLayer.label = 16;
App.Project.Item (01).layers.addSolid ([0,0,0], "FX", 1920, 1080, 1, length); Create sound FX
App.Project.Item (01).layers.addNull (Duration); Create the Null object
var firstLayer = app.project.item (1) .layer (1); Rename the Null object
firstLayer.enabled = false;
firstLayer.name = "Beats";
firstLayer.label = 0;
Place a marker on the 64 first beat
var myMarker = new MarkerValue("0");
firstLayer.property("Marker").setValueAtTime (beat * 0, myMarker);
Every beat on opacity-keys
myProperty = firstLayer.opacity;
myProperty.setValueAtTime (beat * 0, 0);
For reference, I'm going to place code Dan here and use line numbers, as I explained.
Fig. A
var name = prompt("Composition name"); var BPM =prompt("Your BPM"); if (isNaN(BPM)) { alert("You must give the comp a value"); } var Beats = prompt("How Many Beat"); if (isNaN(Beats)) { alert("You must give the comp a value"); } var frameRate = prompt("Your fps"); if (isNaN(frameRate)) { alert("You must give the comp a value"); } var duration = ( 60 / BPM * Beats ); //Auto Generated var beat = (60 / BPM); //Creation Part var myComp = app.project.items.addComp(name, 1920, 1080, 1, duration, frameRate); // Create Comp with Custom Lengh var firstLayer = myComp.layers.addSolid([0,0,0], "BG", 1920, 1080, 1, duration); // Create BG Solid firstLayer.label = 16; myComp.layers.addSolid([0,0,0], "FX", 1920, 1080, 1, duration); // Create FX Solid firstLayer = myComp.layers.addNull(duration); // Create Null Object firstLayer.enabled = false; firstLayer.name = "Beats"; firstLayer.label = 0; // Place a marker on the 64 first beat var myMarker = new MarkerValue("0"); firstLayer.property("Marker").setValueAtTime(beat*0, myMarker); // Key every Beat on opacity var myProperty = firstLayer.opacity; myProperty.setValueAtTime(beat*0, 0);
OK, so for your configuration, looks like you're striking four data sets. You have the model name (fig.) At line 1), BPM (lines 2-5 of Fig. (A), (lines 7-10 of Fig. rhythms (A) and the FPS (lines 12 to 15 of Fig. (A). then it comes to the UI, you can change what I had posted to...
res = "group{orientation:'column', alignment:['fill', 'fill'], alignChildren:['fill', 'fill'],\ myCompName: EditText{text:'Enter comp name'},\ myBPM: EditText{text:'Enter BPM'},\ myBeats: EditText{text:'Enter beats'},\ myFPS: DropDownList{properties:{items:['23.976', '24', '29.97', '30', '59.97', '60']}},\ createComp: Button{text:'Create comp'},\ }"
This will give you all entries in four data for the user interface. It is preferable to assign each control to a new variable for use in your script.
// Control Variables var compName = myPanel.grp.myCompName; var myBPM = myPanel.grp.myBPM; var myBeats = myPanel.grp.myBeats; var fps = myPanel.grp.myFPS; var createComp = myPanel.grp.createComp;
Once you have these variables you can then start the default implementation as appropriate. in this case, the drop-down list should be a starting point for it's selection, so that you can say to use the first default entry as follows.
//Defaults fps.selection = 0;
Now, you can configure your onClick for button createComp feature. This will contain to working part of the Dan code that treats everything (lines 17-33 of Fig. (A). I've added a few lines of options above this (lines B Fig. 1-7) in the below code just to match the variable names so you wouldn't need to change the code.
Fig. B
//onClick setups createComp.onClick = function(){ //Gather user entered values var name = compName.text; var BPM = Number(myBPM.text); var Beats = Number(myBeats.text); var frameRate = fps.selection.text; var duration = ( 60 / BPM * Beats ); var beat = (60 / BPM); //Creation Part var myComp = app.project.items.addComp(name, 1920, 1080, 1, duration, frameRate); var firstLayer = myComp.layers.addSolid([0,0,0], "BG", 1920, 1080, 1, duration); firstLayer.label = 16; myComp.layers.addSolid([0,0,0], "FX", 1920, 1080, 1, duration); firstLayer = myComp.layers.addNull(duration); firstLayer.enabled = false; firstLayer.name = "Beats"; firstLayer.label = 0; // Place a marker on the 64 first beat var myMarker = new MarkerValue("0"); firstLayer.property("Marker").setValueAtTime(beat*0, myMarker); // Key every Beat on opacity var myProperty = firstLayer.opacity; myProperty.setValueAtTime(beat*0, 0); }
Then line 2 Fig. b starts the call onClick for button and assigns a function. Within the function, we run the process. Fig. B Line 4 seizes the compName edit text attribute of the text control, using the Number() function convert us this text to a number for use online B Fig. 9 and 10 and B Fig. 5 line gets the text attribute of the text control edit BPM. Goes same for line 6 of the Fig. B and the beats variable. For line B Fig. 7, a drop-down list requires calling his selection of the attribute, then it is text attribute to get the actual string. The drop was more logical for FPS due to the standard rates that exist. This list can be changed of course to your liking. Now, there is no safety net as I like to call for the modification of the text controls to make sure text is not entered when you need a number and vice versa. It would be something of can check after line 7, Fig. B before trying to run the code in process (Fig. B lines 9-25). I hope that it will be easy enough for you to understand.
If the script is as follows.
{ function myScript(thisObj) { function myScript_buildUI(thisObj) { var myPanel = (thisObj instanceof Panel) ? thisObj : new Window("palette", "My Panel Name", [0, 0, 300, 300]); res="group{orientation:'column', alignment:['fill', 'fill'], alignChildren:['fill', 'fill'],\ myCompName: EditText{text:'Enter comp name'},\ myBPM: EditText{text:'Enter BPM'},\ myBeats: EditText{text:'Enter beats'},\ myFPS: DropDownList{properties:{items:['23.976', '24', '29.97', '30', '59.97', '60']}},\ createComp: Button{text:'Create comp'},\ }" //Add resource string to panel myPanel.grp = myPanel.add(res); // Control Variables var compName = myPanel.grp.myCompName; var myBPM = myPanel.grp.myBPM; var myBeats = myPanel.grp.myBeats; var fps = myPanel.grp.myFPS; var createComp = myPanel.grp.createComp; //Defaults fps.selection = 0; //onClick setups createComp.onClick = function(){ //Gather user entered values var name = compName.text; var BPM = Number(myBPM.text); var Beats = Number(myBeats.text); var frameRate = fps.selection.text; var duration = ( 60 / BPM * Beats ); var beat = (60 / BPM); //Creation Part var myComp = app.project.items.addComp(name, 1920, 1080, 1, duration, frameRate); var firstLayer = myComp.layers.addSolid([0,0,0], "BG", 1920, 1080, 1, duration); firstLayer.label = 16; myComp.layers.addSolid([0,0,0], "FX", 1920, 1080, 1, duration); firstLayer = myComp.layers.addNull(duration); firstLayer.enabled = false; firstLayer.name = "Beats"; firstLayer.label = 0; // Place a marker on the 64 first beat var myMarker = new MarkerValue("0"); firstLayer.property("Marker").setValueAtTime(beat*0, myMarker); // Key every Beat on opacity var myProperty = firstLayer.opacity; myProperty.setValueAtTime(beat*0, 0); } //Setup panel sizing and make panel resizable myPanel.layout.layout(true); myPanel.grp.minimumSize = myPanel.grp.size; myPanel.layout.resize(); myPanel.onResizing = myPanel.onResize = function () {this.layout.resize();} return myPanel; } var myScriptPal = myScript_buildUI(thisObj); if ((myScriptPal != null) && (myScriptPal instanceof Window)) { myScriptPal.center(); myScriptPal.show(); } } myScript(this); }
-
Hi all
There is a problem, I'm dealing with my custom page. I am trying to expand the controller with my custom class, but get the error below
oracle.apps.fnd.framework.OAException: could not create Java class: (oracle.apps.xxar.cusstd.createcus.webui.xxArCreCusCO) associated with the area: (ArUtilRN). It is probably because the class name is incorrect or not included in the project.
at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1247)
at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1435)
at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2848)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1991)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:567)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:455)
If the file is present in the right folder
[webui applmgr@gfs3devapp1] $ pwd
/ opt/oracle/gfs2d/FS1/EBSapps/COMN/java/classes/Oracle/Apps/xxar/cusstd/createcus/WebUI
[webui applmgr@gfs3devapp1] $ ls - ltr
Total 4
-rw - r-. 1 applmgr oinstall 1177 Feb 25 10:17 xxArCreCusCO.class
I have to follow this discussion, but is not help me: https://community.oracle.com/thread/3647610
Please help.
Thanks, Jerome
Hello samia,.
In R12.2.4, you will need to create the jar with custom classes. Please visit the Doc ID 1577661.1
Hope this helps you solve your problem.
-
Hello
I want to give as open & export to the level of permissions.
How to create user defined groups and users with custom permissions as only open and export in obiee 11 g?
For example, if the group permissions, inturn should reflect on the users.
Please help me.
Thanks in advance,
A.Kavya.
Your question is quite broad and fuzzy then I suggest the security catalog presentation to read documentation: http://docs.oracle.com/middleware/1221/biee/BIESC/mgrgrpsusers.htm#CIHIBJGD
And I think that you mix you two things which are managed in different places:
) an object as read access permissions, write, delete... which control you through the object "Permissions" dialog box
(b) functional privileges controlled through "Manage privileges" under "Administration".
-
Hello
I am keen on the form tool allows you to create multiple copies of documents with customized in each information fields. From excel data. Is this possible?
Thank you
Charlotte
This is called a fusion and mailing. There is a possibility of Embedment in some versions of Excel (via the Acrobat PDFMaker plugin), or it can be done using a script.
-
How to create a cursor image with text in motion.
I tried to create a cursor image with text that slides with images. I use the jquery.cycle2 slider plugin that works very well for a slider I have on a different cursor on the same page. I'm not sure why it does not work. If someone could help me that would be great. The code is below:
HTML:
< div class = 'fluid wmud' id = 'wmud_img' data-cycle-fx = 'scrollLeft '.
data-cycle-pause-on-hover = "true".
data-cycle-speed '4000' = >
< div class = "fluid wmud_img" >
"< img src ="... /morris_construction/images/slider4.png"/ >
< div class = "fluid wmud_text" >
< h3 > Pro Active: < / h3 >
< p > we have highly qualified staff and a thorough knowledge of the industry is thus able to add value by providing solutions to customers proactively; often even before that questions arise. We are also very receptive to requests from the client and provide quick turnaround times, often to meet extremely tight deadlines. < /p >
< / div >
< / div >
< div class = "fluid wmud_img" >
"< img src ="... /morris_construction/images/slider5.png"/ >
< div class = "fluid wmud_text" >
< h3 > Pro Active: < / h3 >
< p > we have highly qualified staff and a thorough knowledge of the industry is thus able to add value by providing solutions to customers proactively; often even before that questions arise. We are also very receptive to requests from the client and provide quick turnaround times, often to meet extremely tight deadlines. < /p >
< / div >
< / div >
< div class = "fluid wmud_img" >
"< img src ="... /morris_construction/images/slider6.png"/ >
< div class = "fluid wmud_text" >
< h3 > Pro Active: < / h3 >
< p > we have highly qualified staff and a thorough knowledge of the industry is thus able to add value by providing solutions to customers proactively; often even before that questions arise. We are also very receptive to requests from the client and provide quick turnaround times, often to meet extremely tight deadlines. < /p >
< / div >
< / div >
< / div > <!--end of wmud-->
JavaScript:
" < script src =" http://malsup.github.com/jQuery.cycle2.js "> < / script > .
< script type = "text/javascript" >
{$(function()}
$('#wmud_img').cycle ({}
FX: 'scrollLeft ',.
});
});
< /script >
Try these demos:
Nancy O.
-
Work with custom JavaScript properties
Hello
On a form, in JavaScript, I'm trying to reference custom properties (created manually by accessing the file > properties > info > custom properties). I need set the properties, just bring. I know how to get the properties by default (for example, title, Description, Version, etc.), and I can get/set variables I created (file > form properties > Variables), but custom properties have left speechless me.
The closest I found is the FormData.extras object, which is documented as being "an envelope around one or more sets of custom properties. The content of this element can be used by custom applications", but it does not contain anything.
I feel that I have forget an easy answer, but I'm stumped. Is it still possible?
Event.Target.info.
-
I took some pictures on my iPhone 4 and saved on the laptop, but some are out on the side for a reason, and now when I try to turn, they cannot be saved, what is wrong and what can I do?
I took some pictures on my iPhone 4 and saved on the laptop, but some are out on the side for a reason, and now when I try to turn, they cannot be saved, what is wrong and what can I do?
===============================================
I don't know if the following links answer your question, but
they may be worth a visit:Good luck and * proceed at your own risk *.
FWIW... There is a very long discussion (several pages) to the
following link:Cannot change the imported iPhone 4S photo
https://discussions.Apple.com/thread/3444951?start=0&TSTART=0More Discussion
iPhone 4S image properties is not compartible with Windows?
Editing can be done on the computer due to the error
"Windows Photo Viewer cannot save changes to this picture.
because there is a problem with the properties of the image file".
Any help?
https://discussions.Apple.com/message/17291884#17291884More Discussion:
We cannot turn a few photos in Windows 7 (but can turn others)
http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-pictures/cant-rotate-some-photos-in-Windows-7-but-can/3a809845-9144-4BB1-9bb3-ab4f5b856524A simple solution is to open the photos in paint or most other
digital image editor and modify it.Some people have reported success using the following free download
to remove the metadata.Property restrictions stripper iphone 4S (JPEG & PNG Stripper)
http://www.SteelBytes.com/?mid=30&cmd=download&PID=15Here's a way to turn...
Easily turn locked iPhone 4 and 4 s Photos in Windows 7 with
the rotator Lossless JPEG free
http://www.daleisphere.com/easily-rotate-locked-iPhone-4-and-4S-photos-in-Windows-7-with-the-free-JPEG-lossless-Rotator/Free download JPEG Lossless rotating
http://annystudio.com/software/jpeglosslessrotator/ -
How to create new documents with palette sample custom?
You want to create new documents with a palette of color company already available instead of having to load the .ase files. Fat chance?
Or... If each document requires these colors add to the palette with no file open.
Bob
-
Create a folder with subfolders named structure
I have a script that creates a project with a series of subfolders folder:
The first step is to
Tell application "Finder".
text returned jobFolder value (display dialog "enter a working folder name:" default of answer "XYZ123 Customer_Project")
This opens a dialog box where I enter the name of the project and client etc. This creates a folder with the same specific name.
It then creates a folder in the call of the output files
make new folder to the newfo to the properties {name: "output files}
In the output files folder it then creates a folder with the same name as the name of the original folder "XYZ123 customer Name_Project" (or whatever it is I named it at the initial stage.)
make new folder at the exit with properties {name: jobFolder}
I'd like to create this folder with {name: jobFolder} + name of the printer
for example;
XYZ123 client Name_Project PRINTER_A
XYZ123 client Name_Project PRINTER_ B
XYZ123 client Name_Project PRINTER_ C
Is this possible? Tips appreciated.
Use the following code:
make new folder at the exit with properties {name: jobFolder & 'PRINTER_A'}
(138871)
-
I created a form with fields default text for a user to update/customize. Is there a way to style of the text, so I can quickly identify the changes to the default text in a field?
You can use a validation script customized to each text field that looks like:
event.target.textFont = event.value = event.target.defaultValue? font. HelvI: fonts. Helv;
This will make the text italic (Helvetica) when the field value is the value default and regular otherwise. There are other properties that you can use instead, as the field color, border width, background color, text or text size...
-
5.1.7 server on El Capitan: create a user with a personalized folder location
I've recently upgraded to El Capitan on my server once an apple advisor told me that 5.1.7 server had a bunch of bug fixes for Open Directory(which I plan on using down the road). Given that the Working Group Manager is not compatible with 10.11...
Is there a way to create a user with a personalized folder location? When I create a user on the server, I can choose to create a home folder, with or without limitation in the disc or make the service of the user only. My problem is that I have no way (that I know) in the window of creating user to change the location of this folder.
I tried to create a model of a user with a basic 'tailor-made' folder location (Volume/promised Pegasus/Home 2016 / etc...) but when I create the user, the home folder is not in the specified path.
The "work around" I found for this batch of user is to create in the default location then move them on my raid Promise Pegasus, change the path to the advanced option to the each user and reassign the appropriate permissions.
It is not so much a problem if I would deal with users 10. But I have to manage/create about 130-150 users every 5-6 months.
I guess that there is an easier way to create a user with a custom home folder location. It would make sense that apple removes the Workgroup Manager and does not replace its characteristics.
Best case scenario is that I do evil and do not hesitate to let me know if this is the case!
Thank you
Francis
I may be wrong, but it seems that Workgroup Manager version 10.8 works under El Capitan: I can certainly start the application and query users / groups that are there. I guess maybe it's on the machine as a rest to be updated periodically since days Lion... but it also shows that if you can find a copy, you may be able to run on your machine.
HTH
-
Firefox 4 deployment with custom user settings?
Hi people,
I want to deploy FF 4.0 with custom user settings, but where is the "localized" my prefs.js file folder? In FF 3.6.x we extract the setup.exe file and with sources, we have deployed our customized firefox. In FF 4.0 now, there is some file missing from news sources. Are there any documents that explain the deployment of FF 4.0? Thank you very much
You can always create a folder/defaults/profile and places the files in this folder to have in a new default profile. Folders that have no content are no longer present in the version of Firefox 4 RC, but some are still read and processed.
Maybe you are looking for
-
Hello When I try to start the application home it just says: scenes and loading accessories. Does anyone knows how to fix this? I use an iPhone IS, incidentally.
-
After that 2 years of free printing problem with my iPad, sure the printer not responding when I click Print it now also happens when I try to print from my phone. The printer is connected to the iPad, because he says so, it displays the print page a
-
Office, black list, where is the Office of origin?
Desktop is covered by all the black screen. Where is my office?
-
Recently, I reformatted the drive, reinstalled Windows and have no personal data on this subject. The only application there is office, which I am not, using McAffee and my browser:-I use it mainly for web browsing. It seems to happen mostly when I w
-
Why the WAN ip displayed on my local server like the 192.168.1.1?
I got Minecraft Server on my PC I have RV180WMinecraft server using port 25565 to connect players.I transferred the port 25565 my public Static WAN IP to 192.168.1.100When the connected Playes - server say is me. as any player to internet connected t