Action, State and events, CTF files

Hello

In my project, I received a labview program that has a main VI and about 100 SubVIs.  Some of the subVIs are named: Action, States and events. And a Subvi is written for each user action. Actions, States, and the screws of events are CTL files.

Is - any technique of special programming used in labview for any specific purpose? I am a novice in labview.

Thank you

Josée Vilas V

Vilas,

The .ctl files are custom controls.  Without seeing them, I can't be sure, but I suppose they could be witnesses typedef'ed enumerated (enum).  These are often used for engines of the action and state machines.

The state machine is a widely used program architecture. There are examples in the design templates that ship with LabVIEW.

If you have had no training in LabVIEW, the online tutorial are a good starting point.  It would be very interesting to spend a few hours before your dive in your project.

Lynn

Tags: NI Software

Similar Questions

  • Repeat the action and save the file

    Hello

    I'm having a fever and is trying to accomplish something that seems very simple not knowing anything about scripting.

    I made an action that applies to some simple effects (blur, threshold and high pass). I want to do is to repeat the action of n times and save an additional for each repetition png so I find myself with a sequence of files numbered from the action more applied (as in this example, Photoshop Cs5 filters Animation on Vimeo).

    After som Googling, I ended up using AppleScript and was able to repeat the action for as many times as I want, but I'm completely stuck on the file save game. That's what I have right now:

    Any help is greatly appreciated!

    say application 'Adobe Photoshop CC 2015.5'

         set Starting point to current document

         set theFilePath to path of the file of current document

    Repeat with n from 1 to 10

    set myFile to theFilePath & ': output: image ' & { n channel } & ".png"

    do "CrazyAction" of "Default Actions"

    { Save document in file myFile as PNG with options { }classPNG save options interwoven:fake} :

    end Repeat

    end say

    In case someone comes up with the solution I also have another related question: How can I make sure that the output file names will have a padding of the number? Ideally, I'd end up with image2.png and so on, rather than image1.png image001.png, image002.png.

    Thanks in advance!

    One of the things you can do with javascript you can not do with applescript is to use the scriptlistener plugin. This plugin is put into the photoshop plug-ins folder, and when he's here (you don't want to leave it there all the time) it will record about everything you do, kind of like an action, but it generates the code in a file on your desktop. I used it for recording an action to save the png and running. The parts of the code are in the functions in the script. So I just created a folder name of base, a base file name and a counter of departure. The script will then execute your action and save a png image in this folder and change the name of the base by the counter file increases by one each time. You must put in the name of your action and the name of the action as defined in the script.

    #target photoshop
    var fileName = 'myFile-';
    var folderPath = new Folder (Folder.desktop +'/action test/')//create whatever path you want here. Make sure the folder exists!
    var doc = activeDocument;
    var counter = 1//counter for changing the filename
    
    for (var i=0;i<4;i++){//Change number 4 to whatever number you want it to repeat + 1
        runMyAction ("twirl", "Chuck");//put in action name and action set name. This line can be duplicated for different actions.
        savePNG ()
        counter++
        }
    
    function runMyAction(myAction, myActionSet){
        var idPly = charIDToTypeID( "Ply " );
            var desc25 = new ActionDescriptor();
            var idnull = charIDToTypeID( "null" );
                var ref8 = new ActionReference();
                var idActn = charIDToTypeID( "Actn" );
                ref8.putName( idActn, myAction );//changed to a variable
                var idASet = charIDToTypeID( "ASet" );
                ref8.putName( idASet, myActionSet );//Changed to a variable
            desc25.putReference( idnull, ref8 );
        executeAction( idPly, desc25, DialogModes.NO );
        }
    
    function savePNG(){
        var idsave = charIDToTypeID( "save" );
            var desc28 = new ActionDescriptor();
            var idAs = charIDToTypeID( "As  " );
                var desc29 = new ActionDescriptor();
                var idPGIT = charIDToTypeID( "PGIT" );
                var idPGIT = charIDToTypeID( "PGIT" );
                var idPGIN = charIDToTypeID( "PGIN" );
                desc29.putEnumerated( idPGIT, idPGIT, idPGIN );
                var idPNGf = charIDToTypeID( "PNGf" );
                var idPNGf = charIDToTypeID( "PNGf" );
                var idPGAd = charIDToTypeID( "PGAd" );
                desc29.putEnumerated( idPNGf, idPNGf, idPGAd );
                var idCmpr = charIDToTypeID( "Cmpr" );
                desc29.putInteger( idCmpr, 9 );
            var idPNGF = charIDToTypeID( "PNGF" );
            desc28.putObject( idAs, idPNGF, desc29 );
            var idIn = charIDToTypeID( "In  " );
            desc28.putPath( idIn, new File( folderPath + '/'+ fileName + counter+ ".png" ) );//set folder path and name
            var idDocI = charIDToTypeID( "DocI" );
            desc28.putInteger( idDocI, 200 );
            var idCpy = charIDToTypeID( "Cpy " );
            desc28.putBoolean( idCpy, true );
            var idsaveStage = stringIDToTypeID( "saveStage" );
            var idsaveStageType = stringIDToTypeID( "saveStageType" );
            var idsaveBegin = stringIDToTypeID( "saveBegin" );
            desc28.putEnumerated( idsaveStage, idsaveStageType, idsaveBegin );
        executeAction( idsave, desc28, DialogModes.NO );
        }
    
  • Action to open and save multiple files in a different format

    Photoshop CS5

    TC 3

    I did not use its actions before.

    I want to open all files in a folder from one format and save them to a different format.

    How this is done?

    Thank you

    Rob

    Assuming that you all have a format and want to just open all the files and save them under a different format, without changing anything...

    A way, using Photoshop and measures and automation, would be to define an action that was simply a file - open and file - record under in a separate file.

    To set an action, in the ACTIONS Panel, create a new set and a new action, and then just save the steps on an existing file. Once this is done, click on the stop button.

    Once this simple action was defined, allows file - Automate - lot... configured to perform the action on the totality of a folder full of files.

    You probably want to use the options [] Override Action "Open" Commands and [of] Override Action "Save as" commands .  This option allows you to do things like specify the JPEG save quality in action and will not be prompted to do it every time.

    Your batch processing dialog box may look like this:

    -Christmas

  • FDM generated SQL statement in the log file?


    Hello everyone, hopefully a simple question:

    When you perform an import using FDM, I know that behind the scenes of a SQL SELECT statement statement composed and performed on the database server. My question: the actual SQL statement is retained in a newspaper somewhere (so that we can see it?) In our case, it's an Oracle DB server and we use the ERPI adapter; not sure if it's relevant. We would like to enter this SQL statement and use it as a starting point for other things.

    Thanks in advance for anything you can offer.

    The statement SQL is not written in the journal of the adapter.  The only things that are registered are what show in the file card log if you enable loggin to the adapter source ERPi in action 'Get Data'.

  • Display States and custom components

    Hello

    I use a stack view for this application and once the user is logged on to the application that they see this "Home Page" that contains essentially two components as follows:

    It is in my file "AppMain.mxml".

    < mx:ViewStack id = "appView" height = "100%" width = "100%" >
    < mx:Canvas id = "Home" >
    < view: TeacherList id = "teacherList" / >
    < view: StudentList id = "studentList" / >
    < mx: / canvas >
    < / mx:ViewState >

    So in my TeachList.mxml file I have this < mx:ButtonBar > and one of the buttons is 'Add teachers', when this button is clicked, I want to hide the component StudentList using view States and finally display a form for the user on the same screen, so they can add a teacher. If all the code is in a single file, I think I could do it myself.

    I tried to put the tag < mx: states > in the file AppMain.mxml, but given that the < mx:ButtonBar > mxml code was inside a different file, that he did not see the block < mx: states > I added in the file 'AppMain.mxml '. So I then tried to put the block < mx: states > in the same file as < mx:ButtonBar > reality but then how do I access the id of the component (studentList) so I can hide

    Any help much appreciated.

    -Westside

    Yes - you have to control the use of custom events.

    Let me to pseudo code it for you - you'll have to maybe a little research yourself

    (1) create a State which removes the student list and displays the component that you want to display (I'll call it 'state2' for now).

    (2) in your teacherlist component, create the event, something like this:

    [Event (name = "customEventNameHere" type = "flash.events.Event")]

    (3) in your teacherList component dispatches the event:
    public function buttonClickHandler (): void {}
    var eventObj:Event = new Event ("customEventNameHere");
    dispatchEvent (eventObj);
    }

    Call this function when the user presses the special touch in your teacherList component.

    (4) manage the result. Using Flex Builder? If Yes, when you press the space bar on your call to the teacherList component, you will see the "customEventNameHere" event available.

    (5) change of State:
    public void changeTheState(eventObj:Event):void {}
    currentState = 'state2 ';
    }

    I hope that the work - please post back with your results (or mark replied if you get)

    See you soon,.

    David

  • After you restore an image of my system drive, my tasks and events disappeared. Help!

    I've restored a backup image on my C: drive. Everything looks good except all my events and tasks have disappeared from the calendar!
    I understand that this data is included in my profile, but how do I get my events and tasks and put back them in the calendar? Are the import and export of functions expected to be used to provide backups of my events and tasks? Shouldn't they already appear in the calendar after the restoration of a system disk?

    After a lot of messing around, I think I solved this problem.

    The problem occurs because of an incompatibility between certain values in prefs.js vs values in the data table cal_events.

    I copied backup prefs.js (containing the 'calendar') related lines in the current prefs.js and now everything looks OK, I can see my tasks and events in the calendar.

    The lines looked like this:
    user_pref ("calendar.list.sortOrder", "75f0f98f-9fdf-4bca-9e48-656ff2e1457d 012fd0d9-bcf1-43b1-a98d-6b0117a3f779 511ca361-a646-4f94-880b-526a0a5cdba1");

    These long numbers must correspond to the values of the column. cal_id apparently if they do not match, they do not appear in the calendar.

    Mine does not, so I corrected the values in the prefs.js file and everything seems to go fine now.

    I still need to find the cause of the incompatibility, I think it was something in the way that I restored the disk then run MozBackup to restore my backup Thunderbird.

    Hope this helps others with this problem.

    Many thanks to Gnospen and Matt for their help!

  • How to remove the alarms and events database of Citadel?

    Hello

    I use LV 2010 with DSC.

    I made a mistake in my program and I wrote too much data event and alarm at the Citadel. Database *.mdf/*.ldf files are quite large > 1 G. Normally, I connect only two alarms per day. I want to delete all events alarm + data before a certain time of stamps for example. 1.1.2011. How can I do? I tried to use MAX and perform the operation so I wrote small program which reach the data from temporary database and then remove it. Yet I can find old events and alarms... I am able to remove the traces of old but not the events/alarms. How do I remove the alarms and events?

    Thanks, Jim

    Hi Jim,.

    Have you seen this:

    http://forums.NI.com/T5/lookout/how-can-I-delete-alarm-and-event-data-from-a-Citadel5-database/m-p/5...

    Not sure if it is valid with the current version, but worth it.

  • Ideas: I get the 0x80073AFC error code when I try to use the system restore then, how can I find and replace this file missing MUI?

    Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    Ideas: I get the 0x80073AFC error code when I try to use the system restore then, how can I find and replace this file missing MUI?

    • I am running Windows 7 for packs SP 1 or SP 2 does NOT solve my problem since neither one works with Windows 7.  Is there a way to search for this MUI (Multiple User Interface) missing file? The every thing must have himself installed in the first place. I took my mom (she died in June) and my brother on this PC as users so even if they do not use this PC supports multiple users. Maybe if I deleted as a reboot and additional users it will solve my problems. My updates install OK but I can't run at all system restore. It creates a restoration point OK but when I try to sr back to a restore point before I get the error 0x80073AFC topic of the missing MUI file. Then, when I spear SR it is said that he could not and no files have been changed because of the error 0x8000FFFF error, unspecified catastrophic failure and could not retrieve the file several times when system restore is attempted.

      I'm running Windows 7 on a HP Pavilion with browser Firefox 3.6.8 browser Opera 10.60, IE8 and Google Chrome 5.0.375.125 browser browser.

      Can you tell me what I try next? Thnks a lot and sayonara for now the guy-Jack McElwee / keimanzero the Scion of the Anime in Brookhaven PA - USA

      OK I tried everything and nothing works! Only added beginners are updated browser Opera 10.63; IE9 (Beta); Firefox 3.6.12 and Google Chrome 7.0.517.41 and Java 22. Of course like everyone else in the world, I had to uninstall/enable and disable/download again and reinstall new Adobe Flash 10 and 11 of the shock wave and they keep crashing too! Hello 4 keep screwing browsers and now I get connection network problems. I run Comcast doctor and did everything it said to do, but nothing works. Oh and I added 7-Zip and WinZip also. Likewise, they will not work! Help! Thanks - K & K

    keimanzero,

    Comcast of Norton Security Suite version is installed? If Yes, who and perhaps malware is most likely to cause questions you have published, in particular the failure of the restoration of the system.
    First, configure the system to boot - How to solve a problem by performing a boot in Windows Vista or in Windows 7
    NOTE: Start-up mode minimum state all the 3rd party firewalls will be disabled. Open Control Panel > Windows Firewall to make sure that the native firewall of Windows 7 is now on.

    Download and Save the update system (or CheckSUR) tool. You will need to download the specific Version of CheckSUR corresponding to the architecture of the system to Windows 7. If you do not know the architecture of the system, and then click the link that says "Click here to show or hide the instructions step by step with images" under method 2: download the update directly system preparation tool from Microsoft Download Center .
    Description of the preparation tool system update for Windows Vista for Windows Server 2008, for Windows 7 and for Windows Server 2008 R2

    Once the download is complete, close all open programs and browsers. Now, run CheckSUR with the system connected to the internet because it will download the .cab for system files. Reboot once CheckSUR is complete.

    Secondly, I suggest that you run the File Checker system while in the same clean boot state.
    To run the System File Checker tool, follow these steps:

    1. Click Start and type cmd in the field search programs and files .
    2. Right click on cmd.exe in the programs of list, and then choose 'run as administrator '.
      If you are prompted for an administrator password or a confirmation, type your password or click on continue.
    3. At the command prompt, enter the following line exactly as written including the space between thec and the/and then press ENTER:
      sfc/scannow

    When the analysis is complete, test to see if the problems facing the system have been resolved.

    If they are not, you will need to contact Norton support for the version of Norton Internet Security Comcast to get help, or just uninstall NIS, run the Norton removal tool (right click Norton_Removal_Tool.exe, choose "Run as Administrator"), reboot and then check to see if the problems are still occurring.

    Expert MowGreen Windows IT Pro - consumer safety

  • Downloaded 4 fonts on my computer and all the files unpacked, but says I have to wait until Windows is finished with the files

    I downloaded 4 fonts on my computer and all of the decompressed files. However, my computer telling me I have to wait until Windows is finished with the files. I made sure all Windows programs are disabled, but he still repeats the message. Why is it so?

    Hi Clarissa Tan.

    1. What is the complete message you receive?
    2. Which site did you download the fonts on the computer?

    Method 1

    I suggest you to use the link below to download new fonts on the computer and check if it helps.

    To add a new font to your computer

    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/windows_fonts_addnew.mspx?mfr=true

    Download new fonts

    http://www.Microsoft.com/typography/fonts/

    Method 2

    It is possible that some third-party programs installed on the computer is causing the problem.

    I suggest that you set up the computer in a clean boot state and try to install new fonts, check if it helps.

    To help resolve the error and other messages, you can start Windows XP by using a minimal set of drivers and startup programs. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts.

    See section to learn more about how to clean boot.

    How to configure Windows XP to start in a "clean boot" State

    http://support.Microsoft.com/kb/310353

    Reset the computer to start as usual

    When you are finished troubleshooting, follow these steps to reset the computer to start as usual:

    1. Click Start , and then click run.
    2. Type msconfig , and then click OK.
      The System Configuration utility dialog box appears.
    3. Click the general tab, click Normal Startup - load all device drivers and services , and then click OK.
    4. When you are prompted, click restart to restart the computer.
  • I need to remove the uneeded files: Purenetworks and PCFix. But I get: not deletenmrsrc.dll: access denied make sure the disk is not full or write protected and that the file is not in use.

    Original title: remove unnecessary files

    I need to remove the uneeded files: Purenetworks and PCFix. But I get: not deletenmrsrc.dll: access denied make sure the disk is not full or write protected and that the file is not in use.

    Ditto for PCFIX.exe.

    How can I remove these and clean unnecessary files? Thank you.

    Hello

    1. how exactly you are trying to remove it?
    2 have you connected the administrator account?

    Step 1: Check if the problem persists in the clean boot state.

    From your computer by using a minimal set of drivers and startup programs so that you can determine if a background program is interfering with your game or program. This type of boot is known as a "clean boot".

    Reference:

    How to configure Windows XP to start in a "clean boot" State

    http://support.Microsoft.com/kb/310353

    When you are finished troubleshooting, follow these steps to reset the computer to start as usual:

    1. click on start and then click Run.

    2. type msconfig and click OK.

    The System Configuration Utility dialog box appears.

    3. click on the tab general, click Normal Startup - load all services and device drivers and then click OK.

    4. When prompted, click on restart to restart the computer.

    Step 2: Take possession of these program at the following location folder, and then check the issue. C:\Program Files\ 

    Reference: How is ownership of a file or a folder in Windows XP

  • I turned on my computer this evening and all my files are gone. All images, office documents, everything. Then, a low disk space window kept popping up. Is it all the same to recover lost files and how can I fix the disk space is low?

    Please help I don't have the money to have someone come out and look for me.

    Welcome to the Microsoft Answers community.

    System Restore and the temporary files can be placed on your hard drive, but can easily be recovered.

    Try the utility Disk Cleanup to delete files and system restore points that you can safely remove.

    You can start disk cleanup, by doing one of the following:

    • Click Startand then click run. In the Open box, type cleanmgr, and then click OK.

      -or-

    • Click Start, point to programs, point to Accessories, point to System Toolsand then click on Disk Cleanup.

      -or-

    • In Windows Explorer or my computer, right-click the disk in which you want to free up space, click Properties, click the general tab and then click on Disk Cleanup.

    Remove files stored on your hard drive

    To remove files stored on your hard disk that you no longer use, follow these steps:

    1. Click Startand then click my computer.
    2. Right-click the disk in which you want to free up space, and then click Properties.
    3. Click the general tab, and then click Disk Cleanup.
    4. Click the Disk Cleanup tab (if it is not already selected), click to select the check boxes beside the files that you want to remove, and then click OK.
    5. Click Yes to continue it with this action, and then click OK.

    Remove Windows components

    To remove Windows components that you don't use, follow these steps:

    1. Click Startand then click my computer.
    2. Right-click the disk in which you want to free up space, and then click Properties.
    3. Click the general tab, and then click Disk Cleanup.
    4. Click the Other Options tab, and then under Windows components, click clean.

      The Windows Components Wizard starts.

    5. In the components list, clear the check box next to the component you want to remove.
      • A checkbox grayed out next to a component indicates that only some of its subcomponents are installed.

        If you want to remove a subcomponent, click Details, clear the check box next to the subcomponents that you want to remove, and then click OK.

    6. Click Next.
    7. At the end of page Windows Components Wizard, click Finish.
    8. Click OK, click Yes to proceed with this action, and then click OK.

    Remove installed programs

    To remove programs that you no longer use, follow these steps:

    1. Click Startand then click my computer.
    2. Right-click the disk in which you want to free up space, and then click Properties.
    3. Click the general tab, and then click Disk Cleanup.
    4. Click the Other Options tab, and then under installed programs, click clean.

      The dialog box Add / Remove Programs is displayed.

    5. In the currently installed programs list, click the program that you want to remove and then click Remove (or Change/Remove).
    6. If you are prompted to confirm the removal of the program, click Yes.
    7. Repeat step 5 and 6 to delete other programs you use is no longer and then click close.
    8. Click OK, click Yes to proceed with this action, and then click OK.

    Delete restore Points

    To delete all points except the most recent restore restore point, follow these steps:

    1. Click Startand then click my computer.
    2. Right-click the disk in which you want to free up space, and then click Properties.
    3. Click the general tab, and then click Disk Cleanup.
    4. Click the Other Options tab, and then under System Restore, click clean.
    5. Click Yes to remove all but the last restore point.
    6. Click OK, click Yes to proceed with this action, and then click OK.

    I hope this helps!

    Lisa
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Error 105 and Setup.lid file

    There are a few questions about a problem with the Setup.lid file when you install different applications, but I have this problem in a much simpler way.

    I get the following error

    "Boot error ".

    The installation program is unable to find the installation language in the file G:\Setup.lid.

    Error 105 "

    This happens when I first click on 'This computer' and select a network volume. The error occurs on two systems (the two XP SP3 running). One of the systems I have 9 (just installed) and the second was for several years (and the problem has never been seen before). There are six other computers on this network and on those the problem does not exist.

    (The bypass road is to use Explorer instead but I Don t like to have sudden restrictions on my actions.)

    Any ideas on the reson for this problem and how to solv it are welcome.

    Leif Arvidsson

    Are all the links under "Related topics" (right) for you to use?

    Similar errors are mentioned herein.

    http://www.Google.com.au/search?q=error+105+and+Setup.lid+file&hl=en&TBO=1&RLS=com.Microsoft:-to the: IE-SearchBox & output = search & to source = lnt & to TBS = qdr:y & to her = X & ei = ukKJTOT0DJCGvAPp6vSHBA & to ved = 0CAsQpwU

    What exactly are install you or try to do that generates this error?

    No problem with the file G:\Setup.lid if you look at the properties and permissions?

  • JAVA instructions tell me to locate my Autoexec.bat file to edit and add a file name path. I can't locate the file

    Original title: JAVA

    I am a beginner of JAVA.  Instructions to tell me my Autoexec.bat file to modify and add a file name path.  I can't locate the Autoexec.bat file.  I tried to locate using C:\windows\program files.  This .bat file hidden or located somewhere else where?

    Hello

    Autoexec.bat was used to BACK depending on version of Windows (95,98 and ME).

    1. What exactly are you trying to do?
    2. Indicates which statement allows you to edit?

    I suggest you to give us more information about the issue, so that we can help you better.

  • Someone tries, or has managed to get in and using my files, signal etc...

    I see a daily activity in Task Scheduler and Event Viewer. Pertaining to the activity "Fix" allowing the PC to connect with other computers. I'm sure that someone has been set up for my files and other things. Am I crazy?

    Maybe, maybe not.  Is not enough to say that it is.

    Your Windows Firewall is turned on?  It blocks everything you have?  Can do for the moment.

  • I just got a new Windows 7 computer. How I completely restart the entire computer and lose all files, applications, etc., that never came with the computer first?

    * Original title: restart the computer

    I just got a new Windows 7 computer, and it has many applications in this shift makes the apps that I really need. How can I completely restart the computer world and lose all files, applications, etc., that came with the computer first

    If these are apps you added and want more, you can use the functionality of your computer factory restore. Unfortunately, this erases the disk and leave you with a double précis of his State when you turned on for the first time.  Then, you would have to do all the updates of Windows and then install all the programs you want.

    Otherwise, use programs uninstaller (from Control Panel) for each application that you do NOT want to uninstall.

Maybe you are looking for

  • How can I fix my macbook pro, which does not start?

    My macbook screen lights up, however, after loading 2 thirds of the bar, the apple logo becomes a circle with a cross inside. My software is el Capitan. Before this incident, I tried to save my photos on an external hard drive. Yesterday I tried to s

  • Re: Recognition PIN number

    Same problem here - I tried repeated to reset the pin code but get the message that the PIN is not recognized... I guess that just Skype doesn't want our money ;-)

  • HP 17.3 Core I3 Laptop Touch: who should I contact for my windows 10 expired security certificate.

    Who should I contact to find out if the info I said are true. I received a call from a security central called SecurePC telling me my Microsoft security certificate has expired and I had to pay for another purchase from Microsoft. They made it seem s

  • Check the use of the authorization

    XE SUMMIT 4.1.5 11.2I hope a quick... Ive now got a relatively complete configuration of authorization, on my request, on different pages, articles, reports, etc... .. based on a package in the database, with roles / operations...Im trying to find a

  • I can't install or uninstall Adobe Photoshop or hearing

    I've had photoshop for a while, before I have to reset my computer. I wanted to get hearing too, but I quit the implementation force. Now when I try to install or to uninstall Adobe Audition and Photoshop it says that I need the Application Manager.