Vi with access via both user interface and external communicat​ion

Hi,
Maybe a little bit too general but I'll risk it:
It concerns a project to stear a tensile machine. Data acquisition is relative straightforward via a few analogue and digital channels.
The interaction of the operator with the tensile machine can be done at two levels:
1. Directly via an user interface on the computer next to the machine. Here I would typically use a state machine in combination with event structures.
2. Remotely,  via TCP protocol. Here different clients (external program, written in C) should be able to connect to the LabVIEW program and send simple commands such as 'read force', 'write force', 'read status', ...
It is relatively easy to setup a small daemon that accepts TCP connections from multiple clients. Furthermore I would put the commands from the clients into a message queue (using a producer/consumer structure).
I was wondering what the best method is to allow both the user interface and the external clients to stear the machine (e.g. using an event structure to respond to interactions via the user interface, and create user events from the commands of the clients to access the same actions).
Steven
LV8.5

Hi VPS,
one way could be to build your TCP receiver in one while loop and your event structure in another while loop. if you want to send a command from the event structure you can send this over tcp to the TCP receiver.
Another way could be to use a queue or notifier to send the commands from the event structure and the TCP receiver to another while loop which work with the received commands.
Mike

Similar Messages

  • TC with Access via User Accounts

    Hi all folks,
    I start using a new TC (2TB with 7.5.1) with access via User Accounts switched on, but it confuses me a little. In general I'm interesting in storing some more data to the TC, also I'm interesting in using seperate folder/mountpoints.
    I add some User Accounts (I used the short names from my Mac, for example lutz, test, work, gast and admin) and every User can logon/connect to the TC, with a User Folder and a "Data" Folder, but admin can't connect to the User Folder.
    All the time I try to logon/connect with the admin User, I can mount the "Data" Folder, but I can't mount the "admin" Folder (but the folder is shown).
    In the Mac Syslog I find,
    /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder[111]:
    NetworkNode::handleMountCallBack returned -6602
    I got a box with,
    The operation cannot be completed because the original item for "admin" cannot be found.
    And in the TC Syslog I find,
    Syslog Protocol 6 - All Information
    Nov 18 00:16:54 Gewichtung: 5 AFP login OK from [email protected].
    Nov 18 00:16:57 Gewichtung: 5 AFP session from [email protected] closing.
    Nov 18 00:16:58 Gewichtung: 5 AFP login OK from [email protected].
    Nov 18 00:18:03 Gewichtung: 3 No Address for NTP server time.euro.apple.com.
    I got folders like this, "lutz" and "Data" and both are empty.
    From the admin Point of view the "Data" Folder looks like this and the "admin" folder can't connect too.
    "Data"
    "Data/Shared"
    "Data/Users"
    "Data/Users/lutz"
    "Data/Users/test"
    "Data/Users/gast"
    "Data/Users/work"
    "Data/MacBook.sparesbundle"
    "Data/PowerBook.sparesbundle"
    My question, is "admin" an TC internal User too?
    What's the reason I can't mount the "admin" Folder and why I got a complete view to the TC filesystem with the "admin" User only?
    It's nice to see this, but what's the reason!
    How to add some more Shared folder for data exchange?!
    Any idea what's happend,
    thanks for any help, I can't find any information about this behavior,
    Lutz
    p.s.
    The password from the User Account definitions are ignored for the "admin" user, the TC Password is used all the time.
    p.s.
    I read "http://web.me.com/pondini/Time_Machine/FAQ.html", too.

    Hi all folks,
    anyone who spend some time to add an User Account named "admin" to a TC and try to logon/connect to the TC with this user.
    If someone try to do this, don't use the same password for "admin" and the TC itself, but try to logon/connect with "admin" to the TC with the defined passwords, both. I can connect "admin" to the TC with the TC password only, not with the password defined via User Account.
    Thanks for any help,
    Lutz

  • Error when trying to access the RBAC User editor and Message tracking

    Hi,
    I am getting an error when trying to access the RBAC User editor and Message tracking on the Web Mgmt interface. I verified that the admin account trying to access is in the Organization Management group and has the correct Role Assignment Policy applied.
    I searched through this thread below and saw that matching the msExchRoleLink and msExchUserLink attributes fixed the issue. 
    https://social.technet.microsoft.com/Forums/exchange/en-US/fc568cc6-8691-4127-b70b-bcc82f9b1f7f/first-2010-cas-server-no-administrator-rights-emc-permissions-gone?forum=exchange2010
    However I have another environment where this is not the case and works just fine; the msExchUserLink attribute has a value of CN=Organization Management,OU=Microsoft Exchange Security Groups,DC=Domain,DC=Local which is different as per the issue outlined in
    the above thread so I am not convinced that this will work and also don’t want to blindly edit something in adsiedit without being sure.
    I then checked the event logs on the server and saw the below error logged;
    Current user: 'Domain/Server Services Accounts/administrator'
    Request for URL 'https://server.domain.com/ecp/default.aspx?p=AdminDeliveryReports&exsvurl=1' failed with the following error:
    System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Microsoft.Exchange.Management.ControlPanel.UrlNotFoundOrNoAccessException: The page may not be available or you might not have permission to open the
    page. Please contact your administrator for the required credentials. For new credentials to take effect, you have to close this window and log on again.
       at Microsoft.Exchange.Management.ControlPanel._Default.CreateNavTree()
       at Microsoft.Exchange.Management.ControlPanel._Default.OnLoad(EventArgs e)
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
       --- End of inner exception stack trace ---
       at System.Web.UI.Page.HandleError(Exception e)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
       at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
       at System.Web.UI.Page.ProcessRequest()
       at System.Web.UI.Page.ProcessRequest(HttpContext context)
       at ASP.default_aspx.ProcessRequest(HttpContext context)
       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
    Microsoft.Exchange.Management.ControlPanel.UrlNotFoundOrNoAccessException: The page may not be available or you might not have permission to open the page. Please contact your administrator for the required credentials. For new credentials to take effect, you
    have to close this window and log on again.
       at Microsoft.Exchange.Management.ControlPanel._Default.CreateNavTree()
       at Microsoft.Exchange.Management.ControlPanel._Default.OnLoad(EventArgs e)
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    I then had a look at the IIS permissions for ecp and owa. The account did not have permissions so I added them there but still got the same error. I’ve also tried all of the above with a newly-created account but still got the same issue.
    Any ideas as to what the above event log is specifically referring to?

    Hi,
    From your description, I would like to clarify the following thing:
    If you want to search message tracking logs, the account you use should be a member of the role groups below:
    Organization Management role group, Records Management role group, Recipient Management role group.
    Hope this can be helpful to you.
    Best regards,
    Amy Wang
    TechNet Community Support

  • Nokia's user interface and software A terrible e...

    (hope this is in the right section, here goes)
    I got my E63 about a month ago. I thought it only fair to list my grievances with the phone so far, because I am really close to selling it and buying something else, and I think Nokia deserves to know the reasons why, and will hopefully improve in the future.
    I will start off with what I love about the phone, because I do in fact, really like it. The slim size, excellent keyboard, great connectivity like 3G and Wi-fi, and the reasonable battery life, make it a great phone, but its in the user interface, and actual usage of the phone, where things really start to fall flat.
    The user interface is very disorganized and difficult.
    Why is everything so hard to find and use? For example, if I want to change the applications that appear on my home screen, I need to navigate the following directory tree:
    Menu > Tools > Settings > General > Personalisation > Mode Settings > Home Screen Applications > Application Shortcuts > Shortcut 1
    and then, when I finally get to the list, the items arent even in any order!
    You must be joking, what a horrible menu! Its insane. As a user, I feel like its a terrible experience.
    But thats not all. Why are there 2 notes applications on my phone? There's notes, and active notes. Why does Nokia OVI store exist twice, once in the main menu, and once under installations? Why do I have Contacts, and OVI contacts on my phone? Why can't my phone have just one app that works well, instead of 2 that differ slightly.
    Why is email setup in the installations menu? Why isn't it under email, where mailboxes get set up? Its just sitting there cluttering up Installations, when its something you only use once or twice.
    Not to mention the fact that the configuration settings are all over the place, i.e. there is an Email Key setting in Menu > Tools > Settings > General. Its all on its own, not near anything. Why isn't it in the same menu where the other shortcut keys get set? Or even in the email app settings?
    I am not naive, I know that the E63 is on the cheaper end of the scale, so I can't expect it to be the fastest phone in the world, but scrolling through my email in HTML mode is so horribly slow, and the view tends to jump from left to right on some emails, I hardly even use the phone to check my email anymore, which is sad because that is the reason I chose the E63.( for the nice keypad and email syncing)
    These are just SOME of the things that I have noticed. So please Nokia, PLEASE PLEASE PLEASE! Spend some of your R&D money on user interface and user experience!
    If there is anything you take away from this letter, let it be this:
    Doing anything on the phone just feels like hard work, it makes me not want to use the phone.
    Your phones should be simple and easy to use, even without the mass of Help files that appear in a lot of the menus.
    I know, some people may say that if I want a better experience, I should be willing to buy a more expensive phone. Well, I can say that if I do spend more money on a phone, the chance is very slim that it will be a Nokia.
    Really, I am not being nasty, just trying to be honest. I know that Nokia is run by human beings like myself, so I tried to be polite, and I dont intend to hurt anyones feelings.
    I am quite willing to answer any questions you may have. Its a bit of a pipe dream, but I would love to see Nokia release an entirely new version of the phone software, with everything re-organized and re-done. The sad truth is that will probably never happen, and I will end up swopping my E63 for something that is easy and pleasant to use.
    So please, let me know if there is anything I can do to change the situation, or help you guys in making this better for everyone.

    "If your not used to symbian you'll learn it quick enough, compared to android it's childsplay."
    On the contrary, Ive been using Nokia phones for the last 8 years, and for the last 2 years Nokia exclusively, and the UI has just got worse.
    The fact that "you'll learn it" is of no comfort. Why should I have to spend hours learning how to use a cellphone? Whenever I want to do something I havent done before, I have to spend time digging through obscure menu options. That is absurd.
    "What phone do you have in mind to replace the E63,  that would help us users alot more then telling us what is wrong with your phone.  Although over all I like my e63."
    I don't have any specific phone in mind, Im just going to ask and look around until I find something with an operating system that is organised in a logical manner, and that allows me to access and read my email quickly and easily.
    I put this here hoping that other users would come forward with UI related things that they were unhappy about,  and then Nokia would take notice. I could easily have just gone out and changed phones, but I chose to do something different.

  • I have purchased a new iPhone on the online store, but how come Apple can send me an repacking old device (with scar on both the border and the cable port)!!!!  And after I phone to their hotline for the issue, they asking to give me hk$400 cash coupons??

    I have purchased a new iPhone on the online store, but how come Apple can send me a repacking old device (with scar on both the border and the cable port)!!!!
    And after I phone to their hotline for the issue, they asking to give me hk$400 cash coupons???? This action make me very angry. I have pay for my goods, but they are giving me some repacking rubbish, and trying to treat me as a beggar????
    I have make the request to give me back a new device in good conditions, I will wait and look for what they will delivery.

    Do you feel better now that you have vented?
    This is a user to user forum... if you want/need assistance, contact Apple directly.

  • WLC 5508 Cant get access via the Mgmt Interface

    Hello everybody,
    i have a wlc 5508 (version 7.0.98.0) , if i'm pinging the service port interface or try to get access via this interface, everythings is fine, but if cant get access via the management interface. (but its pingable)
    the crazy thing is, that the LAP joined successful ti the wlc, but the Upgradetool (converting an AP to an LAP) doesnt work, because the tool cant reach the mgmt interface of the wlc.
    there are no ACLs, which are blocking the traffic between wlc and my computer
    Does anyone has an idea, what i've configured wrong???
    regrads,
    Rocco

    Interface Name                   Port Vlan Id  IP Address      Type    Ap Mgr Guest
    wlan1                                   1    16       172.16.2.10      Dynamic No     No
    management                         1    2        172.16.1.10      Static     Yes    No
    wlan2                                   1    220      172.16.3.10   Dynamic No     No
    service-port                        N/A  N/A      10.75.100.99      Static     No     No
    virtual                                N/A  N/A      1.1.1.1               Static     No     No
    and my Pc is in the 172.16.4 subnet
    i have no access to the switch port, where the controller is connected to, but i know that this port permits access to the vlans which are used

  • Return both user name and password

    hi
    I have small code
    public String validateUser(String userId, String password)
    throws SQLException, ClassNotFoundException{
    String returnString = null;
    Connection con=null;
      //get free connection from pool
       con =connectionPool.getConnection();
          Statement       stmt = con.createStatement(
                           ResultSet.TYPE_SCROLL_SENSITIVE,
                           ResultSet.CONCUR_READ_ONLY);
    String sql = "select password from users where Name='"+userId+"' and password='"+password+"'";
    ResultSet rs = stmt.executeQuery(sql);
    if (rs.next())
    returnString = rs.getString("password");
    connectionPool.returnConnection(con);
    stmt.close();
    con.close();
    return returnString;
    }if I want to return both User Id and Password, How should I modify the code.
    Thank you!

    Hi TMary,
    I think you should make wrapper class that contains userID and Password because as we are programmer knowledge, we cant return 2 objects! So maybe you should make wrapper class like
    class User
    public userName;
    public password;
    you can also make private and make public get and set method
    I hope that can help you!
    From wizz

  • Audio sounds damaged. I have tried with both built in and external speakers.

    Audio sounds damaged. I have tried with both built in and external speakers. I think its a problem with a driver or something.

    Try a PRAM reset:
    http://support.apple.com/kb/HT1379
    Ciao.

  • I own CS4 . It is registered with Adobe covering both my desktop and laptop. I have a brand new laptop . How do I put it on my new and remove it from my old ?

    I own CS4 . It is registered with Adobe covering both my desktop and laptop. I have a brand new laptop . How do I put it on my new and remove it from my old ?

    On the old laptop, under Help, choose deactivate.
    Install on the new machine, and enter the serial number to activate.

  • Access security denied user.dir and jaxp.debug

    Hi all,
    I have a big problem. I must provide an applet at lots of clients but I can't set their java.policy file.
    The process must be transparency of them.
    Then I can't use signed applet.
    When I launch my applet, I have a exception :
    access security denied user.dir and jaxp.debug
    My exception came when I use the class XPathAPI from jakarta.
    Thanks.

    Did you ever find a solution? I am having the same problem and would really appreciate any help that you can give.
    Thanks in advance.

  • Cannot install Yosemite as it keeps telling me both my internal and external drives are time machine backups

    Cannot install Yosemite. Keeps telling me that both my internal and external
    drives are backing up with TIme Machine. Any suggestions?

    Is it actively backing up, or are you encountering a dialog stating that Yosemite cannot be installed because the disk is being used for Time Machine backups?
    Read OS X: Cannot install on a volume used by Time Machine for backups
    If for some reason you have a folder called Backups.backupdb at the root level of the hard disk on which you want to install Yosemite, move it to the Trash.

  • I have lost all audio on both my internal and external speakers.

    I have lost audio on both my internal and external speakers.  I have checked the System Preferences when my external speakers are plugged in it is acknowledged.  When using internal speakers they are also acknowledged.  Sound volume on Preferences is on and fully high.  The sound buttons on the keyboard  do not work and the sound level is now locked in at full sound and cannot be adjusted using the keys.  The System Preferences shows that Mute is now checked and I cannot uncheck it.  What should I do to get my sound back both internally and externally?

    Repair permissions & restart.
    Check your settings in the Audio Midi app which is located in the Utilities folder.
    http://support.apple.com/kb/TS1574 Troubleshooting issues with no audio from built-in speakers on Macs
    Trick/Tip: Open up GarageBand if installed then, open a program (optional).
    Quit out of the GarageBand app.
    =====================
    Repairing the mysteriously muted Mac
    The background on the issue is that there’s a small sensor switch inside the headphone port. When you insert a headphone jack, the sensor understands what's what and changes the sound output setting to Headphones. If you insert a jack for digital audio output, the device changes to Digital Out. When you remove the jack completely, it should read Internal Speakers.
    The spirits tell me that there’s a very good chance that you recently had something jacked into this port—a set of headphones or a cable leading to powered speakers, for example. When you removed the jack, something in the port prevented the sensor from tripping correctly. That’s why you see Digital Out instead of internal Speakers.
    The solution is to force the sensor to do its job. The safest way to do that is to simply run a jack in and out of the port a few times. Much of the time, this takes care of the problem by correctly tripping the sensor. If that doesn’t work, there may be gunk in the port. Before turning to more invasive techniques, get a can of compressed air, attach the small tube that fits the nozzle, and blast a few shots of air into the port. With any luck, that should dislodge the gunk and the port will operate as it should.
    If that doesn’t work, find a foam-tipped swab that fits (electronics shops generally carry them), dip it in rubbing alcohol, and gently insert it into the headphone port in an attempt to wipe away any stubborn gunk. I recommend foam rather than cotton swabs because the cotton variety might leave threads behind. (This same technique works well with misbehaving headphone ports on devices such as iOS devices.)
    It's possible that gunk has nothing to do with it. Rather, it may be that the switch just needs a subtle nudge. If a jack or swab doesn't work, I've heard of people successfully resetting it with a deft poke of a toothpick.
    http://www.macworld.com/article/2031146/repairing-the-mysteriously-muted-mac.htm l

  • Get SAP user Id and External E-mail Id From Position in SRM

    Hello All,
    I am fetching Position from Ztable, And i want to get SAP User Id and External E-mail Id from this Position. Is there any Function Module or any table through which can i get it? Please suggest me ASAP.

    Hi,
    I think FM BAPI_USER_GET_DETAIL will do. Structure ADRESS contains everything.
    If you like to display at screen - use BAPI_USER_DISPLAY.
    Kind regards,
    HP

  • I can't import any photos. 'Could not copy to requested location' is the given but i have tried importing to both hard drive and external drive.

    i can't import any photos. 'Could not copy to requested location' is the given but i have tried importing to both hard drive and external drive. Help please ?

    Most likely, the "requested location" where you are trying to copy files to does not have WRITE permission, and so you need to change the permissions.

  • Bus power (firewire): both Audio interface  - and - hard drive ? Risk

    Is there a known risk to damage to the firewire controller (MacBook Pro April 2008 rev) if I connect both a Motu Traveler bus-powered audio interface and a G-Tech 5400 rpm bus-powered drive.
    I seemed to recall seeing if one does this, there is a risk of "burning out" the firewire port on the MacBook Pro. Is this a real risk ? Is anyone doing this ? More generaly, what are the risks of chaining multiple bus-powered devices together ?
    Thanks up front ...

    Is there a known risk to damage to the firewire controller (MacBook Pro April 2008 rev) if I connect both a Motu Traveler bus-powered audio interface and a G-Tech 5400 rpm bus-powered drive.
    I seemed to recall seeing if one does this, there is a risk of "burning out" the firewire port on the MacBook Pro. Is this a real risk ? Is anyone doing this ? More generaly, what are the risks of chaining multiple bus-powered devices together ?
    Thanks up front ...

Maybe you are looking for