Extract plot names from waveform
Hello
Is it possible to extract plot names from an array of waveform to a new array that contains all the plot names.
Regards,
Solved!
Go to Solution.
If you are using Waveform data types to update your plot then you can iterate through all channels and pull out the name attribute or,
You can use a For loop that uses the iteraction terminal to drive the "Active Plot" property of the indicator and then pull the name using a second (preferably an expanded property node) and let the names pile up in an auto-indexing output tunnel.
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction
Similar Messages
-
How to extract channels names from PhotoShop-written TIFFs?
Hi,
Does anybody know how to extract channel names from PhotoShop-written TIFFs? (I'm really asking about spot color channel names, as basic channel names, such as "Red," "Green," "Blue" or "Cyan," "Magenta," "Yellow," and "Black" can obviously be derived from the color space tag.)
There's some XMP data in those TIFFs, but manual inspection does not seem to reveal channel names. So, this may not be an XMP question, after all. There's also a larger (for metadata) data block associated with a private (Adobe) tag, which could contain the information. It's binary, though, and I wouldn't know how to crack it open.
The data must be present somewhere in the file, as PhotoShop will show the channel names on re-open of the TIFF.
There's a TIFF/IT TIFFTAG_INKNAMES tag, which PhotoShop doesn't utilize.
Any pointers greatly appreciated.
Thanks,
OliverSolution is to speak to Adobe directly and receive confidential info.
-
Extracting method names from JNI probes
Hello.
I would like to use the Call* probes from the hotspot_jni provider. These probes provide as argument a "method id". My question is how I can extract, for instance, the method name from this ID. I saw that JNI provides a method "GetMethodName" but being a dtrace novice, I am unsure how to obtain a handle to the JNI api from within dtrace.
Any hint would be greatly appreciated.
Best wishes,
EricActually, it can be done. Otherwise, how do you think debugger shows variables and formal parameters?
You should compile your aplication with debuginng information (for details see tools doc). Then you have 3 options:
1) run application under debugger and use JVMDI to get everything you want;
2) use bytecode libraries (BCEL, CGLib etc) to read class file and fetch required information through their API
3) write your own class file parser based on class file format described in Java Virtual Machine Specification
First way is quite complex and is definitely not for "production use".
Second way is the best in case you have time limitations, but size of your application will be increased because of thrid-party libraries.
Thrid way is the best if you have application size restrictions and have enough time to write simple class file parser to fetch that specific information (1-2 days depending on your experience).
Have fun ;) -
Extract first name from string
Post Author: gronkette
CA Forum: General
If I have the followng list:
SCHEELS, Julie
CURTIS, Tobi
JOHNSON, Dawn etc....
How do I extract the First name following the comma? I've been able to extract the Last name several ways.
thanks!Post Author: gronkette
CA Forum: General
When I use the Split function with [2]..... I get the following error:
A subscript must be between 1 and the size of the array...
works great with [1].
-j- -
Extract class names from package
I would like to be able to have te names of some classes. So I will be able to add new classes without changing other classes. I'm writing an application where I explain different kinds of sorting algorithms. I would like to be able to make a list of algorithms that are implemented. And also it should be no problem to add new algoritms. Each algorithm is in another class with a name that's related to their original name. It would be easy that when someone adds a new algorithm, he/she only have to implement a new class without looking at the other classes.
If it is not clear what I mean, just ask.
GreetzI would like to be able to have te names of some
classes. So I will be able to add new classes
without changing other classes.Huh? What keeps you from simply doing it?
I'm writing an
application where I explain different kinds of
sorting algorithms. I would like to be able to make
a list of algorithms that are implemented. And also
it should be no problem to add new algoritms. Each
algorithm is in another class with a name that's
related to their original name. It would be easy
that when someone adds a new algorithm, he/she only
have to implement a new class without looking at the
other classes.That's what abstract classes are for. -
Extracting file name from directory folder
Hi,
I need to loop a folder to retrieve out individual files.
Is there any way to do it??
Thank You!
Michelleimport java.io.File;
File dir = new File("your directory name");
File[] files = dir.listFiles();
for (k=0; k < files.length; k++) {
File currFile = files[k];
do something
} -
Extracting file name from directory folder (~cont)
what if I want to retrieve indiviual files of a certain file type...e.g. *.jsp file type, from a directory folder??
You can implement a FileFilter, then use the listFiles method of the File class to return the related files:
import java.io*;
public class JspFileFilter implements FileFilter {
public boolean accept(File pathname) {
return (pathname.getName().endsWith(".jsp"));
public static void main(String[] args) {
File directory = new File("c:/web");
File[] jspFiles = directory.listFiles(new JspFileFilter());
for (int i=0;i<jspFiles.length;i++) {
System.out.println(jspFiles[ i ].getName());
} -
How do I write javascript for a text block to extract name from signature block?
Hello,
I've created a training certificate that the trainee has to sign electronically. To prevent someone from simply putting in their friends name in there and saving it; to send to their friend and help them from having to take the training and quiz I would like to write a javascript in the text block that would extract the name from their signature block and autofill the name in the text block. Is there a way to do this?You would have to use JavaScript to access the signature field object and then you can access the various properties of the signature depending upon the certificate or method for signing.
signatureInfo
console.show();console.clear();
// Get particular info;
var f = this.getField("Signature1");
// uses the ppklite sig handler;
var Info = f.signatureInfo();
// Some standard signatureInfo properties;
console.println("name = " + Info.name); -
Extract the name of a digital ID from a smart card and place in a field
In DoD we use Smart Cards, commonly called 'Common Access Card (CAC)', I am wondering if it's possible to extract the name of the user from their CAC, or at least be able to extract the name from a .FDF file. If you go to 'Sign & Certify' from Acrobat 10.x, and then go to 'More Sign & Certify', then click on 'Security Settings', again, this only applies if you have either a Smart Card or digital ID, you will see the security settings menu. Within this menu, you will see the option to 'Export' the file to either an email or save the data to a file. When you click next, you have the option to save as and .fdf file or .p7c file. Is it possible to create a button or a digital signature that will allow me to export the name of the user to a field?
Hi bsabourin1962,
It can be done by creating a button with a script to extract the name of the user. -
I have written a script that automatically sends out via FTP application Transmit, any new file that enters into a hot folder
what I need now is..
a script that writes information on a textedit document
I need
•open up a textedit document
then prints
•the file name "theFile"
•time and date
•then saves the file on the desktop
THEN when another file is sent, the script adds that the next file done info to the text file thus creating a list of completed tasksFile Name, Time, and Date format -
on adding folder items to this_folder after receiving these_items
-- Create or open, and edit, 'Folder_Contents.txt' on the 'Desktop'.
set FILE_REF to open for access file (((path to desktop folder from user domain) as string) & "Folder_Contents.txt") with write permission
repeat with i in these_items
tell application "Finder" to set file_Name to ((displayed name of i) as string)
-- Writes the string at the end of 'Folder_Contents.txt'. (File Name, Time, and Date format)
write (file_Name & " " & (do shell script ("date +%H.%M.%S' '%d.%m.%Y")) & return) to FILE_REF starting at eof
end repeat
close access FILE_REF -- Close 'Folder_Contents.txt'.
end adding folder items to
... or. Date, Time, and File Name format -
on adding folder items to this_folder after receiving these_items
-- Create or open, and edit, 'Folder_Contents.txt' on the 'Desktop'.
set FILE_REF to open for access file (((path to desktop folder from user domain) as string) & "Folder_Contents.txt") with write permission
repeat with i in these_items
tell application "Finder" to set file_Name to ((displayed name of i) as string) -- Extract file name from files' full path.
-- Writes the string at the end of 'Folder_Contents.txt'. (Date, Time, and File Name format)
write ((do shell script ("date +%d.%m.%Y' '%H.%M.%S")) & " " & file_Name & return) to FILE_REF starting at eof
end repeat
close access FILE_REF -- Close 'Folder_Contents.txt'.
end adding folder items to
Mac OS X (10.4.4) -
Waveform Plot Name in Legend Reverts to default even if I change it with a Property node
I have a waveform chart where I am trying to name the plots different titles, so that they appear in the plot legend with a meaningful name, rather than 'Plot 1', 'Plot 2', etc.
However, no matter what I do, if I try to change plot 0's name to anything, the plot name changes for a split second, and then reverts to the name that it originally had. I can succesfully control the names of the other plots, but not plot zero. I have enclosed the VI with the graph control, which I cut and pasted from another VI.
It seems that the properties of this control (though it is not a custom control) are set, and that these settings take precedence over the Propery Node Instructions. Is this a bug, or am I missing something.
Try it for yourself.
Wes
Wes Ramm, Cyth UK
CLD, CPLI
Attachments:
Untitled 1.vi 14 KBIgnore attributes help says;
If FALSE (default), the plot names in the plot legend automatically adapt to the plot names in the dynamic or waveform data attributes. If TRUE, the plot names do not adapt to the dynamic or waveform data attributes. Change this property to TRUE if you want to change the plot names. This property applies only to graphs and charts with dynamic or waveform data.
Trying to help,
Ben
Message Edited by Ben on 11-28-2006 07:46 AM
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction
Attachments:
untitled.JPG 86 KB -
Plotting elements from an array in waveform chart
Hi all,
I am trying to plot a real time data by extracting single element from an array.
Problem is that, at some frequencies waveform chart plot perfect while at other frequencies it plots like a undersampled signals.
Any suggestions?
Attachments:
wfm.png 136 KB
wfm.vi 133 KBThe timing information comes from the data acquisition process, not the display. You should be able to get equally good display of timing information on a chart or a graph.
How many samples do you read at a time? How do you define "realtime"? Anything plotted on a graph or chart for the use of a human operator does not need to be updated more than about 10 times per second because the eye/mind system works at about that time scale. For humans a real time grahical update rate of 2 to 10 Hz is adequate. Then you will have 256 to ~51 new samples at each update.
Another issue is that both your graph and your plot have plot areas which are less than 200 pixels wide. If you supply more than [plot width] pixels to a graph or chart, LabVIEW will reduce the data to determine which pixels to plot. So your graph with 1000 X-axis values has that reduced to the 184 pixels across the width of the graph. So, regardless of the precision of the data, the "precision" of the display is limited to the number of pixels.
Lynn -
Parse SQL: How to extract column names, table names from a SQL query
Hi all,
I have a requirement wherein a SQL query will be given in a text file.
The text file has to be read (probably using text_io package), the SQL query needs to be parsed and the column names, table names and where clauses have to be extracted and inserted into separate tables.
Is there a way to do it using PL/SQL ?
Is there a PL/SQL script available to parse and extract column names, table names etc ?
Pls help.
Regards,
SamI think I jumped to conclusion too early saying it is completely possible and straight forward. But after reading through your post for one more time I realised you are not interested only in the column_names, also the table_names and the predicates .
>
SQL query needs to be parsed and the column names
>
The above is possible and straight forward using the dbms_sql package.
I am pasting the same information as I did in the other forum.
Check this link and search for Example 8 and .
http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_sql.htm#sthref6136
Also check the working example from asktom
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1035431863958
>
table names and where clauses have to be extracted
>
Now this is the tricky bit. You can extract the list of tables by getting the sql_id from v$sql and joining it with v$sql_plan. But sometimes you may not get all the results because the optimizer may choose to refine your query (check this link)
http://optimizermagic.blogspot.com/2008/06/why-are-some-of-tables-in-my-query.html
and you can get the predicate information from the same table v$sql_plan but I will leave that area for you to do some R&D.
Regards
Raj
Edited by: R.Subramanian on Dec 10, 2008 3:14 AM -
How to extract register names & their addresses from .inc file of a microcontroller
Hi,
I want to extract register names to a dropdown and their corresponding addresses from .inc file in such a way that when I select a register from dropdown, it has to also show its address in a string indicator.
However, only a part of .inc file consists of register definitions and the rest has bit definition of registers (unwanted). How can I extract this using labview?
Attached is a sample .inc file for PIC18F4620 device.
Attachments:
p18f4620.inc 48 KBRead the file line by line until you find "Register Files" (use for example Search/Split String).
Then, read again splitting each line in its tokens (use Scan String for Tokens).
Keep the first token as name and convert the proper substring of the third token to the address value.
Terminate when line is empty.
Paolo
LV 7.0, 7.1, 8.0.1, 2011 -
Table name from which to extract bank name and swift code by key field as vendor code
Please help with the table name from which we can extract the bank name and swift code of vendors with the key input as vendor numbers
Hello Subhadra, I'm sorry, I should've said join of LFBK and BNKA. The fields for the join will be the bank country(BANKS) and bank key (BANKL).
If you have not found a docu on SQVI already, you can refer to this:
How to create Report by using SQVI
This is how your join should look in BASIS mode, your selection parameter should be vendor code LIFNR; output fields with be bank name BANKA and swift code SWIFT.
Maybe you are looking for
-
How can I transfer my iTunes Library back onto my mac?
Hi there, Up until recently I had a 2006 17" iMac and 500gb Time Capsule. I transfered my entire 140gb iTunes library onto the Time Capsule and made it the default location for all of my music, videos and apps due to the fairly small HD on the Mac. I
-
What are the required settings to enable HTTP Compression?
I am running into download speed issues with some of my clients. I am looking for ways to improve download response without having to rewrite my system(s). On the server side, I am using CF 8.01 on a W2003 system. I have enable HTTP Compression for
-
Does anyone here know anything about parental controls?
Hey guys! I am an incoming college student, so I recently purchased a shiny new Macbook Pro (which I love!). However, i have an issue. My mother is something of a paranoid android, and wants to install some kind of parental controls. While I really d
-
Wanted Oracle AIM documentation templates
Hi There, I would appreciate if someone could be so kind and share/send/upload to me the good old Oracle AIM documentation templates. I don't need all only couple of them, for example: MD070, RD070, MD120, etc ... Thanks in advance. Regards, Viktoria
-
What is the best way to cover or clean up a scuff on an iPad Air Space Gray?
Just scratched it. Any way to clean or cover or fill in the scuff on the side of the iPad Air Space Gray?