Implementation of different 'modes' in a VI

Hi all

I have a big project which currently has 3 trees of different sources:

1. one that is used for the automatic simulation that takes jobs and validates the results automatically from a database. Just viewing on the front panel is an indicator of progress for the current simulation and the overall state of the simulation

2. one who is used to simulate and validate the results in a log file. This is suitable for individual use and has nice graphics and other.

3. Finally, one that acts as an interface with the hardware. At one point, and the Simulator individual (number two) were the same, but I shared to leanness in the code.

My goal now is to merge all three of these features into one. They all have different facades and a little different state diagrams, but the base controller is the same throughout. My current setup looks like this:

1.
2.
3.

They are very similar, but they have their differences (different elements cluster in the clusters of two major illustrated, for one). I would just merge to be able to work on it all at the same time, rather than check the version the most recent one of my SVN, change it, hiring back and do the same thing in another version.

I think I have a configuration file that defines a selector of cases, their initialization some globals function that allows me to mount a Variant like any cluster is appropriate for this mode. change the two main groups of variants of course.

What do you think? Is it a futile exercise? Or y at - he deserves something to these mergers that overcomes the inherent difficulty?

I object!  Is this "Class", or what?  If you create an abstract class that your different specific data can "fit in", you can develop algorithms that operate on the class and have each of your specific data inherits from the abstract class.  [I hope I said that right...].

Bob Schor

Tags: NI Software

Similar Questions

  • Is it possible to implement a silent mode for working days and weekends please

    Dear Development Department

    It would be so useful that you could implement a silent mode (the Moon) you can preset for the day's work (example 7:00 - 23:00) and weekends (example 10:00 - 0:00). Instead of the defined once available in the current ios.

    Thank you

    Nathalie Rijnvos

    Hi Nathalie

    You can submit your feature request to Apple here:

    https://www.Apple.com/feedback/iPhone.html

    (You do not speak to Apple here - it is a community based on the user).

  • My computer does not start after losing power. He symbol WindowXP reacher, then resets. I tried from all different modes, but none works.

    Have tried all different modes for example. Ext. safe mode, restart the computer normally

    Have tried all different modes for example. Ext. safe mode, restart the computer normally

    Please use the recovery disk to repair the operating system...
    MD MOEEN AJAZ KHAN - MCP, N +, A +.

  • Is it possible to implement two different 'profiles' or 'locations' to my network settings?

    De : RevMDR

    I have a wireless home network that automatically assigns the IP address and the info for my new laptop (Vista).  At work, I have to manually enter the IP address and the following info to get a Wi - Fi connection.

    Is there a way to Vista to implement two different 'profiles' or 'locations' I can easily go to change my IP settings, so I don't have to go to network connections and change them whenever I passes between the two places?

    If Vista is unable to do this, is there a program I can buy/download that will do for me?

    Thank you!

    I have not tested on the wireless, but I do work on the connected.

    This how to can help, ipconfig

    How to set up multiple addresses on NIC IP how to configure two IP addresses on a computer

    How to use MS DHCP in order to reserve an IP address on MAC, how to use the TCP/IP protocol without

    Installation of a NIC...

    www.howtonetworking.com/Networking/ipconfig.htm--

    Bob Lee, MS - MVP, MCSE & CNE

    Networking, Internet, routing, VPN Troubleshooting

    http://www.ChicagoTech.NET

    How to setup Windows, network, VPN & remote access on

    http://www.HowToNetworking.com

    De :  Robert L. (MS - MVP)

    Another response of the community of Windows Vista discussion groups

  • State machine with acquisition different modes/loops

    Hi all

    I did a machine design to State (as described here) to organize three (mutually exclusive) process / States: idle, measurement of calibration and continuous measurement. Calibration must be performed before measurement, because the result of the calibration is used for measurement. The data entry is a camera that should run continuously, also in rest mode.

    The problem however is that this state of calibration and continuous measurement (should) have another method of data acquisition. The measure is continuous and the images are processed in real time. To calibrate a number N of images should be accumulated and treated (simply create a background image).

    In the state machine as I have now (see attached image), I have the acquisition of vision outside the state machine in order to have a live view at any time. The problem now is that the inner loop in the State of calibration (the loop that must accumulate the framework) accumulates of course that the first framework N times, it is not question for all new managers during this State.

    Of course, I could fix this with an if/else statement in the first calibration mode accumulate images (if I< n,="" accumulate="" frame="" in="" buffer="" and="" continue),="" but="" i="" am="" not="" convinced="" that="" having="" a="" lot="" of nested="" loops="" is="" the most="" elegant="" way="" to="" do="">

    This also got me thinking, is the state machine, as I built it here all the best way to manage these two processes/acquisition modes? Or are there better ways to do this?

    Contributions and comments are very much appreciated!

    Note: I know that loop as scheduled now in State calibration is wrong with shift registers. It was a test before I realized that the fault was in the interweaving of the state machine altogether.

    Please do not attach pictures, but rather post executable code, screws (easier) or as extracts from LabVIEW (which became the screw when you drag in a block diagram).  If you have more than three attachments, compress the folder and attach the ZIP file.

    I was once describing a system similar to yours, and one of my students, who was a computer science major, said "it's not a State Machine."  I had a similar situation to yours, where I had a procurement process which took time and a 'Stateful' routine that does different things with data (in your case, use it for calibration, waiting to 'Go', absorbent, etc.).

    I understood that it was correct.  I ' D 'opposite' model, with the Acquisition, always running and "driving", the calendar and make 'Appropriate Action' on each set of data, where the Action could (and did) vary according to other conditions.  So I renamed my state machine 'Action engine', and everyone was happy.

    So I won't bother looking at your code (a quick glance showed me that I have only would be frustrated by the limited view), but will give you a suggestion for an alternative architecture.

    You want to (ideally) two parallel loops.  A single loop simply acquires the data (images) at some rate.  For each Image, it signals the loop else it's time to 'Action' on the acquired data (to do this, use a queue or the notifier).  You want that engine of the Action to perform independently the Acquisition loop, just in case a particular Action takes, say, 1.2 times sample to complete - you don't want 'Miss' samples!.

    The loop of the engine of the Action is a unique, appropriate Action at the time, on the newly acquired data.  If you are in the 'State' calibration, the Action will be "add to the calibration.  When you have accumulated enough data to do calibration, set the following Action to (for example) 'wait to start the Signal.  When you receive the Signal to begin, take Action to "acquire, process and save data.  And so on.

    As it happens, I did my code exactly in this way, but it was the idea General - Acquisition was the 'King', he ran the clock and led the ' Machine/Action State engine' to 'do the right thing, appropriate to the time' with the data.  See if this type of model is appropriate in your situation.

    Bob Schor

  • How different modes of garbage collection?

    On http://na.blackberry.com/eng/devjournals/resources/journals/jan_2005/garbage_collection.jsp#programm... there are two modes of GC listed, but only a single API to perform the full pass. Is it possible to run a past further by programming? Thank you!

    As I said, the only way that you are able to instruct the JVM garbage collection is through the System.gc method. There is no other way around it - this, I think, is the same thing with J2SE as well.

  • Consignment in different modes

    Hello

    All learning AAA and I'm struggling with something. I have a RADIUS server set up and switches/routers authenticate to it. Everything works fine.

    For safety, I have a local account set up as well, just in case the two RADIUS servers are down.

    I was able to configure to log on users directly to the preferred, which is quite convinient. However, when I connect using the local account, I'm in the preferred as well.

    Is it possible to configure a switch/router to connect to users who authenticated by the RADIUS directly Server mode, but if a user logs on by using a local account it will be in exec mode and you will need to enter a password to access the mode preferred?

    Here is my configuration:

    aaa new-model
    aaa authentication login default group radius local
    aaa authentication enable default group radius enable
    aaa authorization exec default group radius local
    enable secret 5 <...>
    username testlocal privilege 15 password 7 <...>

    ip radius source-interface Vlan150

    radius-server host 192.168.10.2 auth-port 1812 acct-port 1813 key 7 <...>

    radius-server host 192.168.17.2 auth-port 1812 acct-port 1813 key 7 <...>
    radius-server retransmit 3

    Change:

    username testlocal privilege 15 password 7 <...>

    to read:

    username testlocal password 7 <...>

  • can I have and implement a different email address?

    I want to use Thunderbird, but I don't want to use one of my current email addresses. Is this possible? If so, how do I put in place a new e-mail address?

    Thunderbird is a program, a so-called e-mail client. It is not an email service and offers no e-mail accounts. (However when you first run it the account setup wizard will offer you a link to a third party who offers to sell you an e-mail account. Since there are several free e-mail account providers, actually no need to spend the money.)

    Thus, you get an account from Google, outlook.com, your ISP, etc, then you can add this and one of your old accounts in Thunderbird.

  • How to import the configuration MAX 4.6 files in MAX 5.5? District of missing data. Extensometer implemented is different.

    I tried to import my MAX 4.6 config file into a new system running MAX 5.5 and daq 9.8.

    The District of data does not appear, but my request to see the information. How can this be addressed? Start over?  I have a lot of entries and would not have not rather to recreate all the.

    What is the difference between 4.6 strain gage settings MAX and MAX 5.5? The selection box for the bridge to 4.6 has a selection for "let niDAQ choose." Seems that it is necessary to use 4.6 configuration data. Try though I might, readings in 5.5 do not match those of 4.6.     Is there a work around fo this? I don't want to have to perform a calibration of the whole system.

    Thank you

    Chris

    It seems that you have the Runtime installed DAQmx.  You must also install the DAQmx Configuration support in order to get the neighborhood of data appears in MAX.

    http://www.NI.com/download/NI-DAQmx-run-time-engine-9.8/4298/en/

  • Allow a user to implement a different network

    Is there a way to set permissions on a folder or a virtual machine on which you can specify what networks a specific user or a group can put in place.  Say you have 3 available networks, but you want to leave only go to 2 of the three, how would you do that?

    Thank you

    Henry

    Welcome to the communities...

    You can try the below

    Inventory of Goto-> Networking section, create a folder, move the Group of ports on this issue and try to set the permission on the folder

  • Different mode of InDesign InCopy

    We use the assignment with InDesign and InCopy CS5 workflow all on Mac.  When our designers create the layout and create the assignment file, everything looks good on their end.  When the Editor opens the assignment file in InCopy, the provision will be off a few lines or massively off the coast.  The fonts are all correct for both users.  There isn't any strange text wrapping added.  If the editor will open the InDesign file in InCopy, it will appear straight.  This seemed to fix the problem once, but it doesn't have the 2nd time.  Is this a known bug?  Or y at - it a solution for this?  Examples:

    in Incopy:

    messed up 2.jpg

    In InDesign:

    good 2.jpg

    Try to export the INDD to IDML document and then reopen.

    Try to work on that.

    Bob

  • Implement a timer on an SMU-6361

    I need to implement a timer by using one of the counters/Timers on a SMU-6361 Multifunction DAQ module. I don't find any help on the web view OR to implement the timers.  I guess to study the manual of the X series that I would use the single pulse generation with trigger function.  I need assign a clock shipped as SOURCE, assign an entry PFI as the DOOR (Start Trigger), set the value of the impulse for my timing delay, define the pulse width and assign a PFI as the OUTPUT Terminal.  However, I can't find any information about what nidaqmx functions I would use to perform this action.

    Can anyone address this operation?

    wkesling3 wrote:

    All examples of OR are for the meter entry tasks. Everyone says to use the example of counting digital event that needs to be changed to make it work.

    It of weird, is it some sort of filtering option in CVI?  I have examples of ANSI C meter output to:

    C:\Users\Public\Documents\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Counter\Generate Pulse

    I took out the DAQmx calls from the code you have written so that they are easier to see on the forum:

    DAQmxCreateCOPulseChanTicks (EchoTaskHandle, chan, "", "/ PXI1Slot3/20MHzRefClock", idleState, initialDelay, lowTicks, highTicks);                                                                                                       
    DAQmxExportSignal (EchoTaskHandle, DAQmx_Val_CounterOutputEvent, "/ PXI1Slot3/PFI3");
    DAQmxCfgDigEdgeStartTrig (EchoTaskHandle, "/ PXI1Slot3/PFI4", DAQmx_Val_Rising ");
    DAQmxStartTask (EchoTaskHandle);

    I see only a few small changes to make:

    20MHzRefClock is not a valid terminal, you probably want to use 20 MHztime base.

    Instead of DAQmxExportSignal, I use DAQmxSetCOPulseTerm.  The output is already on one of the default PFI lines (depending on the meter) and setting the output of an explicit PFI line will change the output terminal.  Export the output event counter I think sends the output of a second terminal (I'm not positive if flippant... calls might actually be equivalent, but DAQmxSetCOPulseTerm is most commonly used).

    You define the task to be redeclenchables if you intend to trigger the exit several times (DAQmxSetStartTrigRetriggerable).  You could alternatively, you can restart the task after each trigger in software, but this is inefficient and you will have several ms downtime compared to the redeclenchables task which will be immediately re-army after the release completed (within 10 seconds of ns anyway).

    wkesling3 wrote:

    Hi John,.

    When (or why) would be the next function call used when the output is already
    defined in the DAQmxCreateCOPulseChanTicks() function call.
    //
    DAQmxErrChk (DAQmxSetExportedSignalAttribute (taskHandleDist,
    DAQmx_Exported_CtrOutEvent_OutputBehavior, DAQmx_Val_Pulse));

    The meter has in fact two different modes.

    "Toggle" is the default value for the tasks of the meter output, in which the output of the meter will switch to the opposite value when it reached number of terminals (how a new value is loaded into the account register and the meter begins to count down).  So in your case, 'Initial period' will be loaded first, then when the meter lorsque le compteur atteint reached TC output will rise to high and "High Ticks" is then loaded into the registry.  When the counter reaches TC again the output will switch down (and in your example pulse, the output will stop - in the generation of pulses multiple 'Low Ticks"would be then responsible).

    "Pulse" mode the meter emits only a short pulse (I think 2 ticks long timebase) when it reached TC.  It is used by default on meter entry tasks (for example the meter output can serve as an event to detect overview for the tasks of entry conditions).  Exit tasks can be configured to "Pulse" too, but in this case the names 'high ticks' and the ' weak ' are unsuitable because the output signal is high only for a very short time (they would be more appropriately called "interval 1" and "interval 2" or something like that).

    Most people just use the default behavior and explicitly set the output behavior unless they have a reason to change the default (which is rare).

    Best regards

  • Focus adjustment camera mode

    G ' Day,.

    I'm trying to set the camera focus mode and have encountered a problem.  Modes of return of camera_get_focus_modes (*) indicate that six modes of development are now supported.  But when I try to put one of these modes via a call to camera_set_focus_mode (*), that the call returns

    CAMERA_EOPNOTSUPP

    who is documented as meaning: "the function call failed because the requested operation is not supported.

    Is it simply an artifact of the DevAlpha?  In other words, the modes of development returned by camera_get_focus_modes (*) * will * be implemented by real hardware, but not on the DevAlpha?  Or I'm doing something stupid blinding?

    EDIT: With the help of DevAlpha B.

    Thanking you in advance... - Sam.

    The viewfinder must run first.

    There is here a sample which passes through different modes of development:

    https://github.com/BlackBerry/presentations/tree/master/2012-BlackBerryJam-Americas/JAM15/focus

    See you soon,.

    Sean

  • ASA 5512 different route by VPN Group (VRF as feature?)

    Hello

    Here's what I'm trying to do.  I have a Nexus 7000 with several of the VRF, simplicity lets call it A VRF, VRF B, VRF C. VRF A simulates a network of management and VRF B and C are customer environments.  VRF B and C VRF will be overlap of intellectual property.  I have a 5512 ASA I use VPN in the environment, it also provides internet access for applications that run in A VRF, (VRF B and C do not require internet access).  What I want to do is to implement three different access VPN on the SAA even, where some users will have VPN 1 group policy and have access to the VRF has, but should not have access to the VRF B or C, same VPN 2 should have access to the VRF B and 3 C VRF VPN.

    My original intent was to configure the ASA with 0/0 to internet Gig, Gig 0/1 A VRF and then Gig 0/2 sub interfaced so 0/2.10 is 10.10.10.1 in VLAN 101 that connects VRF B, 0/2.11 concert would be 10.10.10.1 in 102 VLAN that connects to VRF C.  However, better than I can tell ASA 5512 is not aware of VRF (or is it just a separate license, I would need?) and as such, it is not possible.

    Next similar reflection, but instad configure as 0/2.10 is 10.10.10.1 in VLAN 101 that connects VRF B, 0/2.11 concert would be 10.10.11.1 in 102 VLAN that connects to VRF C. However, I throw it here, issues as the VPN 2 and 3 need access to devices with the same IP address, which is even better I can tell, the ASA is not able to make Policy based routing.

    Is there another way to do this? Is there something that I am on?
    I need to make sure that the 2A VPN users can access services available in the VRF B, they should not have the ability to access (intentionally or not) services on VRF A or C, nor the users VPN 1 or 3.

    I have also a 5585 ASA w / context multi license, I can then creates a context by VRF (that I have), I then interfaces in each correct the VRF-related context.  However, I do not think that I can terminate VPN here, best I can tell when in multi-contexte mode you can not have VPN license.

    Your research led you to conclude correctly that the ASA is neither compatible with VRF nor can it be based on routing strategies. Also, you cannot terminate remote access VPN on an ASA multi-contexte.

    Doing what you ask a single AAS is a bit problematic. If you had a unique internal addresses, the subinterfaces would work fine.

    Because it looks like you have a virtualization infrastructure, have you considered using the low cost ASAv? You could run multiple instances, one per VRF. Everyone knows only the public address space and its respective assocated VRF.

  • Warning in VCS and TMS (inherited from TMS Agent mode)

    Hello.

    I have this massage in TMS and VCS system, how this fix?

    in TMS: #2057 - Configuration Warning - The VCS is running in a mode inherited from the officer of TMS; It is recommended to switch your system to use another mode.

    in VCS: the VCS is running in a mode inherited from the officer of TMS; It is recommended to switch your system to use another mode

    How to switch different mode?

    Thank you

    If you are not Provisioning - remove the key to implementation of the VCS.

    In the web interface, go to the maintenance, options keys, select the configuration key and press delete.

    (it might be helpful to take note of the key first, where you decide in the future that you want to install it again - but it can be retrieved otherwise if you lose, IE from the Cisco Licensing Portal).

    Wayne
    --
    Remember the frequency responses and mark your question as answered as appropriate.

Maybe you are looking for