How to modify file name with the press of a radio button

Hello,
I have a simple task that I am having some trouble completing. This is what my program is doing:
My VI takes 3 angles between -180 and 180 and computes the XYZ coordinate using a mathscript node. Then every time I press Trigger, the current 3 angles and their corresponding XYZ coordinate are written to a spreadsheet file.
I need to tweak the VI some more to accomplish the following:
The first time I select the radio button Point (or Line), I would like the spreadsheet file name to be "Point001" (or "Line001"). Then I want to press the Trigger 10 times, write to that file just created, "Point001" (or "Line001"), and after the 10th Trigger, I would like the radio button Point (or Line) to become automatically unselected.
The next time I select the radio button Point (or Line), I would like the spreadsheet file name to now be "Point002" (or "Line002"). Then I want to press the Trigger again for 10 times, write to that file just created, "Point002" (or "Line002"), and after the 10th Trigger, I would like the radio button Point (or Line) to become automatically unselected, again.
And so on...
Basically, I am trying to increment the filename Pointxxx each time I select the radio button. I want to write to that file 10 times, at which point the radio button Point automatically becomes unselected.
I hope it is clear to what I am trying to do. Any help would be appreciated.
r15
Attachments:
Untitled 1.vi ‏67 KB

I attached my working VI.
Now, the problem is that Trigger is saving to a different file each time as opposed to having the 10 Triggers save to one file.
This is what is happening now:
When I have the radio button Point (or Line) selected:
Trigger (1st time) saves to "point1" (or "line1")
Trigger (2nd time) saves to "point2" (or "line2")
Trigger (3rd time) saves to "point3" (or "line3")
Trigger (10th time) saves to "point10" (or "line10")
Then, Point (or Line) is deselected.
What I need is the following:
When the radio button Point (or Line) is selected
Trigger (1st time) saves to "point1" (or "line1")
 Trigger (2nd time) ALSO saves to "point1" (or "line1")
Trigger (3rd time) ALSO saves to "point1" (or "line1")
Trigger (10th time) saves to "point1" (or "line1")
Then, the radio button Point (or Line) is deselected.
Next time I select Point, I want the Triggers to write to "point2".
Can you fix this for me?
Thank you
r15 
Attachments:
Test.vi ‏71 KB

Similar Messages

  • How to place file names with thumbnails?

    I have several thousand images that need to go online but I cannot for the life of me figure out how to add file names to the thubnails. Every bit of documentation I've read talks about adding it to the larger images only. I figured that part out but can't I have file names for the thumbnails too?

    Bummer. I was hoping for a secret key to take me there. I have too 
    many images that can be scanned via thumbnails and for the detail 
    shots they can go larger. There is no way I can use this as it is with 
    9000+ images that need to be gone through quickly. Thanks for the 
    answer.
    Mark

  • How to get file name on the base of extension

    hi
    reply me
    how to get the filename on the base of extension from the
    current directory......
    for example
    i create file with the "igg" extension and save in the folder
    where the exe file of director save....
    i want when exe run then exe file read filename of the
    define( "igg" ) extension with out path just name of the file with
    igg extension
    tel me how
    regards
    farhana khan

    Here's a solution that requires no xtras:
    on GetFilesWithExtension(aFolderPath, aExtension)
    -- INPUT: <aFolderPath> should be a valid string
    folder path
    -- <aExtension> may be a string file extension,
    without the
    -- dot. For example: "txt" or "igg"
    -- OUTPUT: Returns an error symbol or a linear list of file
    names
    -- in the given folder. If an extension is given, only
    -- files with the given extension will be listed. If not,
    -- all files and folders will be listed.
    vFileList = []
    if not stringP(aFolderPath) then
    return #stringPathExpected
    end if
    vIgnoreExtension = not stringP(aExtension)
    vDelimiter = the itemDelimiter
    the itemDelimiter = "."
    n = 0
    repeat while TRUE
    n = n + 1
    vFileName = getNthFileNameInFolder(aFolderPath, n)
    if vFileName = "" then
    exit repeat
    end if
    if vIgnoreExtension then
    vFileList.append(vFileName)
    else if the last item of vFileName = aExtension then
    vFileList.append(vFileName)
    end if
    end repeat
    the itemDelimiter = vDelimiter
    return vFileList
    end GetFilesWithExtension
    You can also use
    Buddy API's baFileList,
    which allows you to do wildcard searching.

  • While importing, how do I save the file name with the artist in it?

    Currently when Itunes imports any cd, it imports it with the song name only, and put it in a folder with the artist name. I would prefer the tracks to be named 'Artist - Song.mp3'.
    Any idea how I can do this? It's driving me crazy. I need to rename all the imports with the artist on the file name.
    Thank you!
    I have itunes 6

    Anyone have any suggestions for this problem? I have the same issue. I have iTunes for Windows, so Doug's AppleScripts for iTunes is not an option.

  • Vaildating File name with the data in the file using sender file adapter

    Hi,
    Below is the scenario
    1)       Pick up files from a FTP server, the file name is dynamic, how do I put dynamic name in sender file adapter?
    2)       Determine if the user correctly named the file based on data in the file.
    a.       File naming structure that we will be concerned with is <company_code><accounting_time_period>.<extension>
    b.      The company code and the time period in the file name have to match the data in the file.
    i.      For example.  If the file name is 1001_200712.csv and the data in the file is for company code 1005, time period 200712, the file is incorrectly named.  Both values must be correct.
    How do we do this?

    Hi Sachin,
                    As Rightly said by Krishna, You can not put Dynamic name in sender File Adapter .You have to provide the name of the file like "*.txt" in Sender Adapter and at runtime you can access this file name by using following UDF:
    DynamicConfiguration conf  = (DynamicConfiguration) container
      .getTransformationParameters()
      .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String valueOld = conf.get(key);
    return (valueOld);
    As now you have picked up the file name at runtime.
    Now concatenate source file fields Company_code and Accounting_timeperiod using "_" as delimiter in properties.Also concat the extension .Now you have required file name.
    So using EQUALS standard function ,compare it with File Name fetched at runtime using above given UDF, and pass result as you desire to process further or not or to raise Alert to resend the file.
    Thanks & Regards,
    Anurag Garg
    You can validate this file name in Mapping itself.

  • How to specify file names for the generated code in wscompile

    Hi,
    We want to follow a certain file naming conventions for the artifacts generated by wscompile.
    How is it possible to set the name for the service interface file, service implementation file etc....
    This is possible in AXIS ant task Wsdl2Java. How do we do it for wscompile.
    thanx

    Thanks Chris and c. Under Description I'm presented with three Names for the profile: ASCII, UniCode and Mac Script. ASCII and Mac Script are the same name for the profile, with nothing being in the UniCode Name box. Which do I change -- both?
    Am I going to screw things up in Photoshop if I change these names to something I can comprehend? Looks like I may just have to make a sticky-note list of the cryptic profile names with my own descriptive name as a reference. Thanks.

  • How to get file name of the form attachment?

    Hi,
    is there anybody who is able to help me with the following problem???
    I started my process from Workspace ES and as a first step I attached one locale file (IMG.JPG or IMG.TIF e.g.) as a form attachment. I used "Attachments" bookmark in the Workspace ES.
    I need to get file name of attached file in the process!!!
    I tried to use "getTaskAttachments" component to get file name of form attachment but without success. This component successfully obtained attached file an stored it in the variable (type list, subtype document) but didn't produce all file attribute informations such as basename or Content Type:
    Is there some possibility to obtain file name (including file extension) by using "standard" tools and components of ALC?
    Thanks for your suggestions.

    Hi LekomDev,
    I faced the same situation some time back and this is what I know.
    Based on the file type few of the attributes will or will not be populated. (This is what the official documentation says about Document attributes)
    The file name that you are looking for would mostly be in 'name' attribute of Document object. The 'wsfilename' attribute is the atrribute which gets used to show the file name into Attachments tab of the workspace.
    So, if you are just interested in knowing the filenames then 'name' attribute is the place that you are looking for.
    But if you are trying to solve an issue in which Attachments against a Task isn't showing the filenames properly then you would need to copy the 'name' attribute value into 'wsfilename' attribute and then the Attachmetns against a Task would have the correct names.
    Tip: Use the Record and Playback option of the workbench to inspect the Document variable and you would see all of the values for a Document variable at desired step in your orchestration.
    hope this helps,
    cheers,
    Parth Pandya
    Blog: http://livecyclekarma.wordpress.com

  • Disable an Input field with the help of a radio button selection.

    Hi Guys,
    I know it is a very basic question and also has many threads for the mentioned query. None of the threads gave me a real clue about the problem. It is as follows:
    Simply, I have an input field and there are two more radio buttons on the screen, say rd1, and rd2.
    Initially Rb_gtgr is active and input field is blank and disabled, and when i select Rb_selgr, input field should be active and mandatory. It means when i try to execute the code with out entering any value after it is enabled, an error message should appear. For this the code is as follows:
    AT SELECTION-SCREEN OUTPUT.
      PERFORM screen_grace_on.
    AT SELECTION-SCREEN ON p_grace.
      PERFORM check_grace_days.
    FORM screen_grace_on .
      DATA: l_v_grace TYPE char2.
      CONSTANTS: l_c_grace TYPE char7 VALUE 'P_GRACE'.
    l_v_grace = p_grace.
    CLEAR p_grace.
      IF rb_selgr EQ c_x.
        LOOP AT SCREEN.
          IF screen-group1 = 'ABC'.
            screen-required = 1.
           screen-active = 1.
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
      ELSE.
        LOOP AT SCREEN.
          IF screen-group1 = 'ABC'.
            screen-input = 0.
            screen-active = 1.
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    " SCREEN_GRACE_ON
    FORM check_grace_days.
      IF rb_selgr EQ c_x AND  p_grace EQ 0.
        PERFORM screen_grace_on.
        MESSAGE e492(/ams/ramfcmess1).          " Enter the number of Grace days
      ELSEIF rb_selgr EQ c_x AND p_grace GE 0.
        PERFORM screen_grace_on.
      ENDIF.
    ENDFORM.
    Ideally this code should work since in the PBO i.e., At selection screen output i am enabling the fields, and also when i select the second radio button i am also checking for the value too..
    I am working on 4.7 version of SAP. The Most interesting observation is it works fine for few variants, and not with others.
    Thank you

    Hi,
    Go through this following code,
    selection-screen begin of block B2 with frame title TEXT-005.
    selection-screen begin of line.
    parameters:     P_BIRPT type C radiobutton group RAD1 default 'X' user-command UCOMM.
    selection-screen comment 3(20) TEXT-002 for field P_BIRPT.
    selection-screen end of line.
    selection-screen begin of line.
    parameters:     P_COLRPT type C radiobutton group RAD1.
    selection-screen comment 3(20) TEXT-003 for field P_COLRPT.
    selection-screen end of line.
    selection-screen begin of line.
    parameters:     P_PAYRPT type C radiobutton group RAD1.
    selection-screen comment 3(20) TEXT-004 for field P_PAYRPT.
    selection-screen end of line.
    selection-screen end   of block B2.
    selection-screen begin of block B1 with frame title TEXT-001.
    select-options: SO_KTOKD for  KNA1-KTOKD modif id M4,
              SO_BLART for  BSIS-BLART modif id M2.
    parameters:     P_PAID   type ZCLEAR     modif id M3 as listbox visible length 20.
    selection-screen end   of block B1.
    at selection-screen output.
      loop at screen.
        if P_BIRPT eq 'X'.
          if SCREEN-GROUP1   = 'M2' or SCREEN-GROUP1 = 'M3' .
            SCREEN-INVISIBLE = '1'.
            SCREEN-ACTIVE    = '0'.
            modify screen.
          endif.
        elseif P_COLRPT eq 'X'.
          if SCREEN-GROUP1   = 'M3'.
            SCREEN-INVISIBLE = '1'.
            SCREEN-ACTIVE    = '0'.
            modify screen.
          endif.
        elseif P_PAYRPT eq 'X'.
          if SCREEN-GROUP1   = 'M2'.
            SCREEN-INVISIBLE = '1'.
            SCREEN-ACTIVE    = '0'.
            modify screen.
          endif.
          if SCREEN-GROUP1   = 'M4'.
            SCREEN-INVISIBLE = '1'.
            SCREEN-ACTIVE    = '0'.
            modify screen.
          endif.
        endif.
      endloop.
    Thanks
    Anil D

  • Again with the JTable having a Radio Button

    I have an issue with a project I am working on. The client "insists" on having radio buttons in a JTable. Without going into all the philosophical discussions about this, I need an answer as to how I can make my radio buttons behave like radio buttons (i.e. be in a button group and select/deselect appropriately).
    I have a working code sample for the application as well as the renderer and editor I have. Can someone help me?
    Thanks in advance!
    The Main application
    * Main.java
    * Created on July 12, 2006, 12:31 PM
    package sampletest;
    import java.awt.Dimension;
    import javax.swing.ButtonGroup;
    import javax.swing.JCheckBox;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JTable;
    import javax.swing.table.DefaultTableModel;
    import javax.swing.table.TableColumn;
    public class Main extends JFrame {
        private JTable table = null;
        /** Creates a new instance of Main */
        public Main() {
            super();
            this.setPreferredSize(new Dimension(400,400));
            JPanel p = new JPanel();
            createTable();
            p.add(table);
            this.add(p);
            pack();
            this.setVisible(true);
        private void createTable() {
            table = new JTable();
            DefaultTableModel model = (DefaultTableModel)table.getModel();
            model.setColumnCount(3);
            model.setRowCount(3);
            TableColumn column = table.getColumnModel().getColumn(0);
            column.setCellRenderer(new RadioButtonRenderer());
            column.setCellEditor(new RadioButtonEditor(new JCheckBox()));        
            for(int row=0; row<3; row++) {
                for(int col=0; col<3; col++) {
                    model.setValueAt(new Boolean(false), row, col);
         * @param args the command line arguments
        public static void main(String[] args) {
            Main main = new Main();
    }The renderer
    * RadioButtonRenderer.java
    * Created on July 12, 2006, 12:38 PM
    package sampletest;
    import java.awt.Component;
    import javax.swing.JRadioButton;
    import javax.swing.JTable;
    import javax.swing.table.TableCellRenderer;
    class RadioButtonRenderer implements TableCellRenderer {
        public JRadioButton btn = new JRadioButton();
        public Component getTableCellRendererComponent(JTable table, Object
            value,boolean isSelected, boolean hasFocus, int row, int column) {
            if (value==null)
                return null;
            if(((Boolean)value).booleanValue())
                btn.setSelected(true);
            else
                btn.setSelected(false);
            if (isSelected) {
                btn.setForeground(table.getSelectionForeground());
                btn.setBackground(table.getSelectionBackground());
            } else {
                btn.setForeground(table.getForeground());
                btn.setBackground(table.getBackground());
            return btn;
    }The editor
    package sampletest;
    * RadioButtonEditor.java
    * Created on July 12, 2006, 12:31 PM
    import java.awt.Component;
    import java.awt.event.ItemEvent;
    import java.awt.event.ItemListener;
    import javax.swing.ButtonGroup;
    import javax.swing.DefaultCellEditor;
    import javax.swing.JCheckBox;
    import javax.swing.JRadioButton;
    import javax.swing.JTable;
    public class RadioButtonEditor extends DefaultCellEditor implements ItemListener {
        public JRadioButton btn = new JRadioButton();
        public RadioButtonEditor(JCheckBox checkBox) {
            super(checkBox);
        public Component getTableCellEditorComponent(JTable table, Object
            value, boolean isSelected, int row, int column) {
            if (value==null) return null;
                btn.addItemListener(this);
            if ( ( (Boolean) value).booleanValue())
                btn.setSelected(true);
            else
                btn.setSelected(false);
            return btn;
        public Object getCellEditorValue() {
            if(btn.isSelected() == true)
                return new Boolean(true);
            else
                return new Boolean(false);
        public void itemStateChanged(ItemEvent e) {
            super.fireEditingStopped();
    }

         public class MyTableModel extends DefaultTableModel{
              public void setValueAt(Object aValue,
                    int row,
                    int column){
                   if (column == 0){
                        if (aValue instanceof Boolean){
                             boolean val = ((Boolean)aValue).booleanValue();
                             super.setValueAt(aValue, row, column);
                             if (val){
                                  for (int i=0; i<getRowCount(); i++){
                                       if (i != row){
                                            super.setValueAt(false, i, column);
                   else{
                        super.setValueAt(aValue, row, column);
         }

  • Using the regex to match the file name with date time

    Hello all,
    currently I had problem to match the following file name with the date time. Of course I can use this regex like ""(\\\\w+|.+).(zip)" to match it. However in the current application i need to parse the file name and get the current date time to check if it is matched. Does anyone have good idea?
    {code}
    testfile10-08-09-2008-08-21-04-24-0443.zip
    testfile11-08-09-2008-08-22-04-24-0441.zip
    {code}
    thanks in advanced!

    lauehuang wrote:
    Hello all,
    currently I had problem to match the following file name with the date time. Of course I can use this regex like ""(\\\\w&#43;|.&#43;).(zip)" to match it.That regex doesn't make a lot of sense:
    - with "\\\\w" you probably meant "\\w";
    - "\\w&#43;|.&#43;" doesn't make sense: you can simply do ".&#43;" in that case;
    - ".(zip)" will also match the string "%zip" or "Ezip".
    However in the current application i need to parse the file name and get the current date time to check if it is matched. I don't know what you mean by that.

  • Camparing file name with a value of the field in the source

    Hi All,
    I have a file sender. I need to compare the file name with the value of a field in the source and then map to the target.
    For example:
    <Record>
         <Date>20071103></Date>
         <name>abcd</name>
    </Record>
    the name of the file would be 20071103. i need to check this file name with value in 'date' field , if its true then we need to map it to target
    please suggest some way to meet the reqirement
    thanks
    jhansi

    Hi,
    Here is the reason i need to do this:
    The data is loaded by DTP in process chain. Overlaping requests are deleted. But, iIn some cases requests with the same selection options  need not to be deleted. My idea was to change selection options in Manage(infocube) with Abap program without changing selection options in DTP filter,  so that the system would not recognize requests as "overlaping requests".
    So, where is the information about shown in the field Selection Options is stored? In which tables?
    Thanks
    Tigr_Z

  • Obtaining file name from the file path given

    hi,
    how to obtain  file name from the file path given

    Hi bharath,
    1. PC_SPLIT_COMPLETE_FILENAME
    2.
    DATA : path LIKE pcfile-path.
    DATA : extension(5) TYPE c.
    path = filename.
    CALL FUNCTION 'PC_SPLIT_COMPLETE_FILENAME'
    EXPORTING
    complete_filename = path
    * CHECK_DOS_FORMAT =
    IMPORTING
    * DRIVE =
    extension = extension
    name = name
    * NAME_WITH_EXT =
    * PATH =
    EXCEPTIONS
    invalid_drive = 1
    invalid_extension = 2
    invalid_name = 3
    invalid_path = 4
    OTHERS = 5
    regards,
    amit m.

  • Problems with replace file name with starting and ending Bates number

    When applying Bates numbers to a set of Acrobat pdf files I am unable to replace file names with the starting and ending Bates number. This is important
    for me in a legal application.
    The Bates numbers are applied to each page of each of file without any problem as required.
    The Bates log file indicates that the files have been renamed as I wanted.
    I am running Adobe Acrobat Professional 9 with the update to 9.1.9 and Windows XP Service Pack 3 (the last or current service pack)
    In all other respects Adobe Acrobat 9 is running to my satisfaction.
    Has anyone else had this problem and found a solution?
    HRKExon

    Thanks for asking the question, I hadn't heard of Bates numbers before and this gave me a chance to look up something new.
    When I googled for ' bates number legal index ' I found this document:
    http://www.adobe.com/devnet/acrobat/pdfs/batesnumbering9.pdf
    Maybe that will help.
    Scott Bonacker CPA
    Springfield, MO

  • How can I burn a disk of photos with a modified file name?

    After importing photos from scan device, I use Photos > Batch > Change to rename files.  When burning a disk the changed file names do not transfer with the image but use the original file name.  How can I burn a disk of photos with the modified file name?
    This is what I have done so far with no success.
    Drag selected photos from Event to Burn Folder where the file names were changed. Burn folder lists file with original file name.
    Drag albums to Burn Folder with the same result.
    In Filer I am able to change the iPhoto Library > Master > Date > Filename and then drag to burn disk folder and see the changed name but this is a single file exercise without a view of the file's image, but to use the new file name in iPhoto events I have to repeat the naming convention.

    File > Export.
    In the resulting dialogue note the "Name" section. Choose to use the Title as Filename.
    Regards
    TD

  • I am using OSX 10.9.5 and Outlook Web App for emails. When I download an attachment it replaces the space in the file name with   - how can I change this?

    I am using OSX 10.9.5 and Outlook Web App for emails. When I download an attachment it replaces the space in the file name with %20  - how can I change this?

    Click on the below link :
    https://get.adobe.com/flashplayer/otherversions/
    Step 1: select Mac OS  X 10.6-`0.`0
    Step 2 : Safari and FIrefox
    Then click on " Download Now"  button.

Maybe you are looking for