MY LVOOP solution to CLD- Security System

Hi All,
Today , I gave a shot at the security system example from CLD. I did it using LVOOP. Do leave your comments on the code. (I havent done much documentation. Also, I have given the flexibility to the program to log file in any format, as per extension entered by user. The code has been written in a hurry, so pls ignore any cleanups of BD remaining ).
Thanks in advance!
-FraggerFox!
Certified LabVIEW Architect, Certified TestStand Developer
"What you think today is what you live tomorrow"
Attachments:
Test_Security.zip ‏100 KB

Pretty good all in all, some comments though.
They like comments and descriptions in controls and indicators, points are deducted for not having this.
They also like block diagram constants to be labelled (again points off for not doing this).
Your error cluster is not handled too well, if there is an error in any of the states it will just propogate through continuously, probably not what you want. I think the app is supposed to stop on error (cant remember exactly).
The Array local variable in the "get status" state is unnecessary, you could just move the control outside, into the while loop. Locals are generally discouraged.
In the "get status" I would not recommend hiding the index display of the string array you are passing on. At first glance it seems the same state is being queued regardless!
You are not closing the file reference.
One thing to note, my CLD was a lot longer than the pratice examples (a lot!, and I code quite quickly).
Good effort though!
nrp
CLA

Similar Messages

  • Security System CLD Exam Problem Solution? Insane?

    I just started working on the CLD example problems.  I've been using Labview for about 10 years - so everything I do is old-school.
    I'm posting this solution for the Security System example.  There are arrays of switches to represent the alarm, bypass, and tamper
    signals - and then a loop to go through each "zone" to logically determine the state (normal, alarm, bypass or tamper).  To make the
    "zone status" indicator an easily scalable indicator I have the "zone" loop change the color of a boolean LED indicator.  Then I take a 
    picture of it and display an array of pix.  
    Question:  This works fine, good response - but would it pass?  Is there a better way? I attached the diagram...
    Solved!
    Go to Solution.
    Attachments:
    security system.png ‏43 KB

    I don't like the detour over an array of images and property nodes. Seems indirect and inefficient. Is that a requirement or your idea?
    Also I assume that the FOR loop executes quickly, so you should probably do the timestamping once before the loop.
    The "wait for FP activity is really "old school" and not very good. You typically get extra triggers, which is expensive since you write to the file every time. I would strongly suggest an event structure instead.
    The small FOR loop can be replaced by "search array". Much cleaner!
    It might be better and more efficient to open/create the file once before the loop, write using lowlevel functions during the loop, and close after the while loop has finished.
    LabVIEW Champion . Do more with less code and in less time .

  • Security system CLD exam review

    This is similar to solution online
    Please let me know if you have any general comments on the solution or any other comments to my questions below
    1. I have created a project. Was it necessary or does it matter.
    2. I put data in a Data folder. Does I need to create a separate folder?
    3. It asked for test file. I used a .csv file instead of .txt. Is it ok to do that?
    4. I used only one case for alarm, bypass and tamper switch instead of using 3 cases for solution online.
    Code is in LabVIEW 8.6
    Thanks
    Attachments:
    Security system.zip ‏67 KB

    Overall this is a pretty elegent solution. There are a few things that you will want to improve though.
    1. This one jumped out at me immediately. Be very aware of extra and unnecessary bends in your wires. Try to line things up better and avoid all the extra bends.
    2. I would use better names for your subVIs. Use names that are descriptive yet meaningful. Logic.vi is not very meaningful or descriptive.
    3. I would not modify or change the requirements of the test. If they specify a text file then use a text file. Part of the exam is to determine if you can follow requirements. Changing them is not receommended.
    4. Avoid objects overlapping each other. For example look at the labels in your Initialize state.
    5. Avoid using "Use default if unwired" for your tunnels on structures.
    6. Make sure to add descriptions for all of your controls and indicators including the ones in your subVIs.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • Security System Review

    Hi Guys,
    My CLD is on Wednesday and here i attached security system solution for review. Please review as early as possible, am running out of time.
    Yes, I know its an older exam but in CLD 2012 Prep Guide its states that one of the possible exam scenario and don't know how much it differs.
    Attached Back saved version in 2010
    Waiting for reply.
    Attachments:
    Security Systems LV 2010.zip ‏361 KB

    Quickly,
    Discriptions and tip strips for every object the user sees.  Get into the habit fast.
    I would have used an array of round color boxes and clusters of switches (and filter events to allow the overridden conditions to be expelled you are missing some functiality there)
    Overall not too bad
    Good Luck
    Jeff

  • Security system

    Hi,
    Will anyone please go through my security system solution
    Just started my preparation for CLD, initially lets ignore documentation and style
    I just want to know is this kind of programming is OK
    Thank you
    Attachments:
    Security System.zip ‏56 KB

    Hey,
    Please see the following as some hints
    - Use a Statemachine Framework with an Initialize and Shutdown state instead of a Sequence Frame.
    - The Event Structure then can be placed in a kind of "Running" state.
    - As far as I know the Controls/Indicators should be part of Clusters. Save them as Typedefs.
    - Create Documentation and Tip Strip immediately when you place a Control/Indicator on the FP
    - Use the 4224 Connector Pane Pattern for your SubVI.
    - Place Controls/Indicators into the Event Frame which handles them
    - Do the Initalization of the Controls in a SubVI by pasing their References
    - Create FGV for FileIO which you call in the Init state for creating the header and in the Running State for saving the data
    Good luck for the CLD Exam!
    Christian

  • Account suspended by security system

    Hi m sharan recently my Skype acc was suspended by security system.they did that after getting money from my credit card n sent me a email that ur acc has suspended because I shared it with others or I breached there terms n conditions.whereas I was using it from 4,5 months and was paying for India unlimited mins 19euro every month.so now is there any way to reactivate my account?plllzzz pllllzzz its very important for me so let me know..thnkx

    you may need to contact customer service to know what your possible options are to have your account reactivated;
    How to Contact Skype Customer Service
    IF YOU FOUND OUR POST USEFUL THEN PLEASE GIVE "KUDOS". IF IT HELPED TO FIX YOUR ISSUE PLEASE MARK IT AS A "SOLUTION" TO HELP OTHERS. THANKS!
    ALTERNATIVE SKYPE DOWNLOAD LINKS | HOW TO RECORD SKYPE VIDEO CALLS | HOW TO HANDLE SUSPICIOS CALLS AND MESSAGES
    SEE MORE TIPS, TRICKS, TUTORIALS AND UPDATES in
    | skypefordummies.blogspot.com | 

  • Dynamic image security system

    May I know how to add dynamic image security system in signup pages like facebook, yahoo...?
    please advice...

    Hi all,
    The google recaptcha plugin has a security problem. If I delete the tag containing the recaptch with Firebug, I can authorize myself without validating with recaptcha.
    If someone knows how to fix this problem, I'll be be very thankful.
    Thanks in advance,
    Regards
    Ivan
    P.P. Problem fixed with the help of Patrick Wolf :)
    Here is the solution - Security problem with Google Recaptcha plugin
    Edited by: ivansev on Mar 7, 2011 5:15 PM

  • Disappointment about the security system

    Dear Apple,
    Myself Gokulakrishnan, I am a new I Phone user, i am very very disappointment about your security system because of your siri application.
    i have this problem i need a perfect explaination about this,
    here i stated my problem,
    I use passcode lock for the security purpose, but when i try to call my friend using siri before enter the passcode. the call is activated i am really shacked, how come the calling is going? if any one use my phone like this who will bare that charges?
    i already check the options but i can find the way. please give the prapare solution or explanation.
    i am witing for your reply.
    thanks
    krishnan

    I'm not aware of any built in method to accomplish this. You'd have to come up with the custom way of doing it. You could put a web page in front of the main peoplebooks page that asks for login credentials and link that to PS somehow. Maybe use LDAP? In any case, it sounds messy and doesn't really seem like it's worth the investment. -Mike

  • Outlook 2013 - Password change breaks S/MIME Certs "An error occurred in the underlying security system. Key not valid for us in specified state."

    AD password change comes up, user changes password.
    Tries to send signed or encrypted email with a Comodo S/MIME certificate, and gets the following error:
    ""An error occurred in the underlying security system.  Key not valid for us in specified state."
    I now have two reports of this error - one on Windows 7, and one on Windows 8.0 (remote user).
    The one on Windows 8.0, we tried removing their S/MIME cert from Outlook/Windows and re-adding, this did NOT resolve the issue.
    Plan was originally to have the 8.0 user ship their machine in, and wipe it, since nothing else could fix it and I wasn't finding anyone else with the same issue.  Now that I've got a second user with the same issue, its looking like a bug/issue and
    not a random glitch.
    Thanks in advance for any and all help with this!

    Hi,
    Thank you for your question.
    I am trying to involve someone familiar with this topic to further look at this issue.
    Thanks,
    Melon Chen
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • Setting up a security system via Airport Extreme...

    So I'm setting up an in-home security system called ingrid and everything is cool but the ingrid system does not detect the internet. I have everything set up as per the instructions for airport and ingrid... I'm a assuming it must be some kind of setting that just isn't allowing the phone that the system works off of to access the internet... I put in the phone's MAC address and gave it everyday all day timed access.. Still nothing... please help.

    Most Guest Network problems are a result of not using the correct type of modem with the AirPort Extreme.
    Apple is expecting you to use a simple modem.....not a modem/router or gateway type of device.....with the AirPort Extreme.
    So, let's first confirm on what type of device that you have to make sure that it will be compatible with the Guest Network feature.
    If you are not sure of your modem type, post back with the make and model number of the device that you call your "modem"......so we can check compatibility with that device.

  • How do I port forward or open a port on the Airport time capsule to hook p a security system?

    I have an airport time capsule and a security system.  The installer doesn't know anything about using routers etc, especially on a mac.  They say I have to port forward or open a port specifically of this device.  I have very few skills when doing this IT type.  Is this hard to do?  Can I do it myself?  He wants to get an IT guy out?  $55 an hour, how long would it take?  Thanks in advance for anyone who can help!

    The method is here.
    AirPort - Port Mapping Basics using AirPort Utility v6.x
    If you need to get someone in, it depends.. The TC can be recalcitrant.. due to your setup of it following the apple guides.. and it depends on the security system and how simple that is.
    There are multiple issues.. for example how do you find your IP address from the web when you have dynamic IP from your ISP.
    Do you intend to setup dynamic DNS? Can the camera /dvr system handle Dynamic DNS?
    I recommend you read very carefully the instructions for what has been installed.. because merely opening the port is only a small part of the issues involved in remote access to the security system.

  • How can I creat a security system for a truck, with Wifi camera playing on iPad/iPhone without 3G/LTE ?

    Hello,
    I want to create a wifi security system for a truck with cameras, but all the ones I found are IP. So I don't know if it's possible to use it only on wifi (not on 3G/LTE).
    If you have an idea, it will be nice...
    Thank you

    that range of most wifi setup unless you want to pay alot!
    would likely mean you could see about as much as the camera from where you were standing
    a mifi or otherwise something which bridge a lan to the internet would work
    make sure the camera have a webserver in it and then you can see it from any web browser where you put in the login and password

  • Tracking oracle database activities in security/system logs of windows server

    Can database activity like create or drop tables and packages be tracked in the security/system logs of windows 2003 server for the oracle database 10.2.0.4?
    Can purging of oracle log, n case the file has become big or even tempered be tracked in the security/system logs of windows 2003 server for the oracle database 10.2.0.4?
    dhomya

    Hi Dhomya,
    I am not familiar with Oracle database, though you may try to enable file system auditing:
    Audit object access
    https://technet.microsoft.com/en-us/library/cc776774(v=ws.10).aspx
    Apply or modify auditing policy settings for an object using Group Policy
    https://technet.microsoft.com/en-us/library/cc757864(v=ws.10).aspx
    Best Regards,
    Amy
    Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Can database activities of creating or dropping tables/packages be tracked in the security/system logs

    Can database activity like create or drop tables and packages be tracked in the security/system logs of windows 2003 server for the oracle database 10.2.0.4?
    Can purging of oracle log, n case the file has become big or even tempered be tracked in the security/system logs of windows 2003 server for the oracle database 10.2.0.4?

    2765539 wrote:
    Can database activity like create or drop tables and packages be tracked in the security/system logs of windows 2003 server for the oracle database 10.2.0.4?
    Can purging of oracle log, n case the file has become big or even tempered be tracked in the security/system logs of windows 2003 server for the oracle database 10.2.0.4?
    Your first question is easy, you configure audit to log to the OS audit trail with
    alter system set audit_trail=os scope=spfile;
    and then enable audit for whatever actions you want to capture. All documented in the Security Guide.
    Your second question makes no sense unless you explain what you mean by "oracle log".

  • Cannot open port through Airport Extreme to access security system DVR

    I have internet access through Bellsouth DSL -- modem only. We had a security system set up around a DVR recording images and connected to the internet through a Linksys router. We would use a client on outside computers to connect to the security system dvr and see what was happening (live or recorded). I switched out the Linksys for the Airport Extreme, and now we cannot connect to the DVR.
    Do I need to manually open a port to the DVR? How do I do this? The DVR connects to the Airport Extreme via Ethernet, and as far as I can tell, the Airport Extreme connects to the DSL modem via Ethernet using DHCP. We have a static IP address. I thank you in advance for any answers, and I apologize if I'm not giving enough information.

    Let's double-check your Port Mapping setup on the 802.11n AirPort Extreme Base Station (AEBSn) ...
    To setup port mapping on an 802.11n AirPort Extreme Base Station (AEBSn), either connect to the AEBSn's wireless network or temporarily connect directly, using an Ethernet cable, to one of the LAN port of the AEBSn, and then use the AirPort Utility, in Manual Setup, to make these settings:
    1. Reserve a DHCP-provided IP address for the host device.
    Internet > DHCP tab
    o On the DHCP tab, click the "+" (Add) button to enter DHCP Reservations.
    o Description: <enter the desired description of the host device>
    o Reserve address by: MAC Address
    o Click Continue.
    o MAC Address: <enter the MAC (what Apple calls Ethernet ID if you are using wired or AirPort ID if wireless) hardware address of the host computer>
    o IPv4 Address: 10.0.1.4
    o Click Done.
    2. Setup Port Mapping on the AEBSn.
    Advanced > Port Mapping tab
    o Click the "+" (Add) button
    o Service: <choose the appropriate service from the Service pop-up menu>
    o Public UDP Port(s): 6746
    o Public TCP Port(s): 6746
    o Private IP Address: 10.0.1.4
    o Private UDP Port(s): 6746
    o Private TCP Port(s): 6746
    o Click "Continue"

Maybe you are looking for