Best practice for multiple VIs talking to same PXI

I am looking for a reccomended practice for my use case, which I feel has to be what a lot of people do/need.
I have a NI-SCOPE PXI device, but this applies to most instruments on some level.  I have multiple VIs that do simple things, such as one VI that changes the horizontal settings, one VI that changes trigger settings, one VI that reads the current trace from the scope.  How can I have multiple VIs talk to the same instrument, some of them might even be called at the same time.
Some more specifics about my use case is that I am calling these VIs from a web service, and the trace VI is called very frequently and streamed to the user (via the web service).  
I was thinking of implementing a VI that would give me the VISA connection for the instrument and a semephore.  I would then have the VI doing the work aquire the semephore, make the instrument calls and then release the semephore.  Are there better or different ways?  Maybe something I am over looking with the semephore implementation?

Typically for this sort of thing I would have a device handler VI which contains your VIs for talking to the instrument. This VI acts like a 'server' and does your device communications and then you can send commands to the device handler VI (e.g. via a queue/event) and it will return the result.
I would implement this as a state machine (normally using queues) - states for initialising the device, a state for each action you want to perform and a close/shutdown state when your application finishes.
Certified LabVIEW Architect, Certified TestStand Developer
NI Days (and A&DF): 2010, 2011, 2013, 2014
NI Week: 2012, 2014
Knowledgeable in all things Giant Tetris and WebSockets

Similar Messages

  • Best practice for multiple instances of the same BEX query

    Hi there,
    I'm wondering what's the best way to use multiple instances of the same BEX query. Let me explain what I mean:
    I have a dashboard with different queries feeding different period of time such as: week to date, month to date and so on. One query for each since it is based on a user exit.
    For each query I want to show different data in different sections of my dashboard. Per example: sales per directors or sales per customer group, sales per day, sales per week and the like.I tried to connect a simple bar chart via a direct connection but with no success due to the multiple lines generated by the addition of the sales director, customer group, week number and so on.
    My question is about the way to connect the different queries efficiently in order to show the different data while avoiding multiple useless lines.
    The image above shows the query browser where, per example, for a Month to date query there will be mutiple line for each week as well as one line for each director. If, for two different components, I want to show data per week and data per director or other representation what is the best practice:
    Add another instance of the same query and only put the week information and another one will only the director info?
    Should I bind those to the excel file and use formulas to make final calculations?
    Will there be a performance issues for adding different instances of the same query
    I have 6 different queries (read 6 user exit that filters time via user exit).
    Depending on the best practices there might be 4 instances for each for a total of 24 instances in the query browser.
    I hope my question is clear enough, if not please do not hesitate I'll clarify as much as possible.
    Regards,
    Steve

    Hi Steve,
    Might be trying for solution for a long time, If i understood your question clear let me clarify you few points.
    You are trying to access the bex query which is designed with the exit's in the background based on the logic and trying to call the entire dimensions and key-figures in a single connection. Then you are trying to map those data in the charts.
    Steve, try to make more connections based upon the logic and split them. use the same query but split them by sales per customer group, sales per day, sales per week by making three different connections and try. You can merge the prompts from all connections.
    Hope this Helps!!!
    Sorry if i misunderstood your question.
    --SumanT

  • Best Practice for Multiple iTunes and One Account?

    My wife and I share our account for our iPhone Applications and Songs in iTunes.
    Can someone point me to a topic that covers a best practice for multiple iTunes syncing?
    I travel a lot and keep my iPhone synced to my Macbook Pro while she uses the workstation at home to sync to. We keep the addresses and contacts and calendars synced through MobileMe, however, I'm trying to find the best way of pushing applications and songs I've bought over to the other PC so they're still around while I'm traveling for her to sync with.
    Thoughts?

    Hi Steve,
    Might be trying for solution for a long time, If i understood your question clear let me clarify you few points.
    You are trying to access the bex query which is designed with the exit's in the background based on the logic and trying to call the entire dimensions and key-figures in a single connection. Then you are trying to map those data in the charts.
    Steve, try to make more connections based upon the logic and split them. use the same query but split them by sales per customer group, sales per day, sales per week by making three different connections and try. You can merge the prompts from all connections.
    Hope this Helps!!!
    Sorry if i misunderstood your question.
    --SumanT

  • Best Practices for multiple authors using single project?

    We are having many issues, particularly with moving, renaming, and multiple check out warnings.  We have a single project with many authors and it seems like RH is not designed to work that way. There is an article in the RH devnet-archive in an article entitled "Sharing RoboHelp Project Among Multiple Authors" that says"
    "At first there may be the temptation to let every author work on every file in a project.  This is certainly not a best practice. Regardless of source contraol, it is always best to designate certain authors as owning certain content-related sections, folders, or topics within a project -particulary at the folder level."
    This statement, and our experience seems to indicate that RH is not a true CMS as we had envisioned.  What are the best practices for this scenario to avoid stepping on each others toes and having problems with source control.

    I have moved this to the source control forum for the gurus there to answer.
    Meantime I must admit I read that statement the same way as you first time. However, on rereading I think what the author is saying is not that what you want cannot be done, rather it is best practice to guide authors to work in discrete areas.
    I will leave it to the author or another guru to give you a more complete answer.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Best practice for multiple email accounts

    Hello
    I have set up a Mac mini server with virtual hosts. So, how is the best practice to set up email accounts for each host? I want to have emails like
    [email protected]
    [email protected]
    and
    [email protected]
    [email protected]
    and so on.
    Should I create groups for each domain, and then user "info" and "contact" in each group. Or just add a user something like "infomysite1" and have a second short name "[email protected]"
    Advices are welcome
    Best regards, Magnus

    If user1@domain1 and user1@domain2 are the same person then you just add the other domain to Hosting-> Local Host Aliases. Same user will get all mail for both domains.
    However, I'm presuming that the user1@domain1 and user1@domain2 are two separate people (i.e., same name but different mail account). If so...
    See Chapter: A Mail Service Virtual Host in Apple's Mail Services Administration PDF download at http://www.apple.com/server/macosx/resources/documentation.html
    Also, see MakingVirtual_Mail_Users_in_OS_XServer.pdf from http://osx.topicdesk.com (downloads sections)
    The topicdesk pdf was written for 10.5 server but I think it is still applicable to 10.6 (but follow the Apple doc just in case). However, it is good for explaining why you might want postfix-style aliases rather than the simpler Apple server-style aliases.

  • Configuring AD Sites and Services best practice for multiple office site ?

    Hi People,
    Can anyone here please suggest me or share the link of what is the best practice in configuring the AD Sites and Service for single AD domain with multiple office sites ?
    I'd like to know more about the number and the direction of the connection between Domain Controllers in one site to the Data Center and vice versa.
    Thanks.
    /* Server Support Specialist */

    Hi People,
    Can anyone here please suggest me or share the link of what is the best practice in configuring the AD Sites and Service for single AD domain with multiple office sites ?
    This series can be useful:
    Active Directory Structure Guidelines – Part 1
    Mahdi Tehrani   |  
      |  
    www.mahditehrani.ir
    Please click on Propose As Answer or to mark this post as
    and helpful for other people.
    This posting is provided AS-IS with no warranties, and confers no rights.
    How to query members of 'Local Administrators' group in all computers?

  • Best practices for multiple developers?

    I am currently working on a fairly large application. At this
    time, I have been the only developer on it, so it hasn't been a
    problem in keeping all of my files up to date or anything. However,
    I know in the future some new blood will be brought in to assist
    me. To this end, I'm looking for suggestions on the best ways to
    set up the project for multiple developers, especially in terms of
    using VSS.
    So far, I have the main HTML, JS, and FLA/SWF files located
    on a web server - easy enough to create a project in Flash and
    synch up with VSS. But what about the supporting .as files? The
    help files seem pretty straight-forward on this kind of thing, but
    I am curious about other people's experiences.
    Any suggestions for me? Thanks!

    HI,
    You can install it on one common desktop, for example you can use citrix program neighborhood. you can install a common desktop in citrix program neighborhood and every time you need to apply some patches you can apply over there. so that you dont need to install it on each and every users desktop. so who ever needs business objects client tools they will be accessing through citrix program neighborhood.
    I hope its clear.
    Thanks,
    SK.

  • Best way for multiple users to edit same pics and catalog

    Dear All
    Please can I pick your brains about how best to arrange things so that my wife and I can edit the same stock of photos (not necessarily simultaneously, which I take it could cause problems).
    We will soon have bought (unless advised otherwise!) two Apple MBPs (since we tend after long days at work to edit on the sofa!).
    I take the options are roughly:  external drives, sticks, cloud, network.  In detail …
    A.  We keep the pics and catalog on an external hard drive which whoever’s editing plugs into their computer.  Downside: it’s a bit irritating when editing or showing pics to someone to have to keep an eye to ensure the USB cable doesn’t get knocked out; it’s somehow nicer to be self-contained.
    B.  Same as A, but using a 512GB or 1TB memory stick instead.  Downside:  the sticks are still pretty big, so same downside as A, to an extent, and also (is this right?) I’ve been told that memory sticks are relatively unreliable.
    C.  We keep the pics and catalog in the cloud and wirelessly edit them there. Downside:  perhaps impossible, or at any rate too slow?
    D.  Same as C, but using some sort of on-site server or drive (I’m a bit out of my depth here), perhaps like Apple’s Time Capsule.  Downside:  perhaps impossible, or at any rate too slow?
    Are there other options?  For example: is there an option where the pics reside on my MBP’s internal SSD but, in some very easy way I can get them onto an external drive if my wife wants to edit or take them somewhere?  (If there is, I should ensure I buy a MBP with a big enough SSD; otherwise, I needn’t worry about that so much.)
    Perhaps there’s an option involving smart previews, which I am just beginning to get my mind around?
    Any asdvice you have would be MOST welcome.
    Thank you.
      David

    2.  Keep the images (unlike the catalog) on a networked drive and edit either (a) them or (b) smart previews of them (stored, I guess, on the computer of whoever is editing them, either my wife's or mine).
    Even though I have mentioned this a few times, you do NOT need smart previews if the images are available. It's an extra step, completely optional, done only for speed purposes, and to be honest, if your catalog is on a thumb drive, that may be the speed limitation, not the speed of loading photos. In addition, smart previews are stored with the catalog ... I do not think you can put them on a different drive.
    3.  Keep the images (unlike the catalog) on my MBP's internal ssd, and network my computer to my wife's so she can access either (a) them there (when I am around) or (b) smart previews of them.
    Using the SSD for images is not going to produce speed benefits, other than trivial benefits that you probably can't even notice.
    a.  I take it 1 would deliver pretty good performance.  I sometimes worry that it might seem mad to get an MBP with a fast internal ssd if I then don't use that ssd for images!  But I guess the internal ssd will still deliver good speed simply in terms of housekeeping, I take it, even if the machine has to go to a stick for the images.  Right?
    I remain skeptical that a catalog on a thumb drive would produce "pretty good performance", but I admit that I have not tried. I fail to see what benefit you think you are getting from the SSD, "good speed simply in terms of housekeeping" is a phrase that I am not understanding. Yes, there are benefits to putting operating system and software on an SSD, but that's not what you are talking about, is it?
    b.  By contrast, I take it that 2 and 3 really would be quite sluggish on the original images option, i.e. if someone were editing original images located on a network drive (whether that's a third drive or my internal drive, with my wife editing them wirelessly).  Yes?
    No. Here's a major misundertanding on your part. The speed of the drive where the images are stored has little effect on the performance speed of Lightroom. Ian Lyons did a study, read it for yourself. A network drive would not cause performance issues in Lightroom, unless the network was failing to perform. Wireless? Well that's a different story, who knows, you haven't specified what type of wireless or the speed of the wireless
    c.  But would 2 and 3 work not only better, but pretty well, if the person editing were editing only smart previews?
    Possibly, but I reject the premise that 2 and 3 are sluggish because of the location of the photos, it may be sluggish because your catalog is on a thumb drive.
    d.  Even if so, IF I can get a thumb drive which is bigger for the images, there doesn't seem much point going for 2 or 3, and some point in not doing so, i.e. editing smart previews has its limitations, and on option 3 my wife wouldn't be able to edit when I was travelling (unless we'd taken steps in advance to make smart previews of all the relevant pics)?  Or perhaps this last point is wrong?  Does LR make smart previews, locally, of ALL pictures in the catalog?
    Number 2 is a very reasonable solution, even without smart previews, it is fine if you are accessing photos on a network drive. The speed limitation is the speed of accessing the catalog on the thumb drive.
    e.  What's the best way of backing up the images?  I currently back up the catalog BOTH to dropox and to (yet more) external drives that I then take off-site, to the latter of which I also backup the images.  I guess that's the best way?  Apple's Timecapsule sounds good but wouldn't get anything off-site.  And I take it uploading thousands of raw images to the cloud would be either impossible or costly in terms of time or money?
    All backup strategies are best when they are automatic (i.e. don't rely on the human user to remember to do it) and backups must go on a different physical disk than the originals. Many people backup to the cloud, see for example, the commercial service called Carbonite. In your backup strategy for Lightroom, you need to make regular, automated bakcups of the images and also of the catalog file.

  • PC Convert - Configuring Mail & Best Practices for Multiple Users

    I finally came to the light side last night. I bought an iMac and now I'm trying to figure out how to best set it up for use by me and my wife. Our PC is set up with a single login account and I've created multiple Outlook (not Express) profiles, one for her and one for me.
    Can I do the same thing on the iMac? Am I better off creating multiple login accounts and just keeping everything separate? Being new, I would rather set things up the right way the first time and not have to undo things due to my lack of experience with iMac.
    Thanks!

    Hello,
    Welcome to the Discussions, and welcome to Macs!
    If you each wish not to see the email messages of the other, then your only real choice is to set up separate User Accounts (what you are calling login accounts). Of course using a single User Account, you can set both email accounts up in Mail, and if you keep the Inbox and Sent mailboxes expanded to show the separate Inbox (and Sent) for each account, then that works pretty well. It will not distinguish New Mail without looking in the the Inbox -- the red dot in the Dock will not separate for whom new mail has arrived. But the Address Book will be the same and shared.
    The advantage of multiple User Accounts is that the entire Dock can be customized for the applications each of you like to use, if they are different.
    The disadvantage will be in not sharing will include not sharing the Address Book, music and photo libraries, etc.
    Ernie

  • Best practices for multiple users on a network?

    We have a centralized server storing all of our media, and a Final Share system allowing about 10 clients to connect.  The details of the system aren't important, it mounts just like a local drive on each client and bandwidth is higher than FW800.
    My question is what is the best way to handle cache files, sidecar files, autosave, etc. when passing edits between editors?  What should be stored locally, what can be placed on the server?  Of course all media has to be placed on the server, but can everything else sit alongside the footage? 
    The reason I ask is we started by pointing everything at the server, but now are having the good old Serious Error whenever two editors (in different project files) are referencing the same media.  We'd love to resolve this... assistant editors can't log footage if doing so causes the editor's project file to lock up. 
    Thanks!
    P.S. first tried called adobe phone support about this... not making that mistake again.  The most apathetic customer service rep I think I've ever spoken with told me they wouldn't provide support because our Serious Error was the result of network issues and not their fault.  And then that we should be storing our media files locally.  I didn't see it necessary to mention that local storage on 10 machines isn't that viable with almost 50TB of data.

    klonaton wrote:
    The reason I ask is we started by pointing everything at the server, but now are having the good old Serious Error whenever two editors (in different project files) are referencing the same media.  We'd love to resolve this... assistant editors can't log footage if doing so causes the editor's project file to lock up.
    Hi Klonaton.
    Are you using two Premiere projects or one Prelude project (for logging) and one Premiere project (for editing) ? I'll have to check tomorrow to be absolutely sure but we do sometimes have simultaneous logging and editing with -respectively- Prelude and Premiere through our small network, with no issues.
    Changes to metadata and comment markers created into Prelude instantly appears and update into Premiere. Subclip don't and have to be sent from Prelude to Premiere on the same computer (or the media has to be imported again inside Premiere). I think it's normal considering how subclips work a bit differently in Prelude and Premiere.
    Every files are on a thunderbolt raid drive shared on the network through an iMac. The Media Cache and Media Cache DB are on the network shared drive too, and common to every users and computers.
    Also I don't get if crashes happen when your two projects are running simultaneously or not (in the latter case, that's a huge problem).

  • Best Practices for Multiple Forms-Reports Instances (WebLogic) on Win2008R2

    Hello all,
    I’ve succeeded in creating two instances of Forms/Report (FR) in WebLogic and am looking at about 5 or 6 FR instances on a one Windows Server 2008R2 box. I understand each instances will have its own folder (FR_Inst1) structure under the Middleware folder. Currently I have two instances configured each with its own Home (FR_Home1 & FR_Home2) and Domain (FR_Domain1 & FR_Domain2). Both the of the separate FP applications function correctly.
    Can multiple similar type instances share a single Home (FR_Home)? Can multiple similar type instances share a single Domain outside of the WebLogic Domain, such as FR_Domain?
    Thanks,
    Ron

    Thanx for the reply! I read through the documents and they are very good at explaining how to install the different components individually. I still can't find much on installing them together. I hope it's not just going to be a trial and error thing.
    So far I've installed done the following successfully:
    Installed 10.3.5 weblogic
    Forms and Reports 11g on top of 10.3.5
    I've created an additional managed server for our ADF applications.
    My next step is upgrading the JSF to 2.x. I would have to stage patches 12917525 and 12979653. I'm afraid it will break the forms and reports though. Any ideas?

  • Best Practice for Multiple source.

    Hello gurus:
    The scenario is the following
    I have a material which can be purchase from Supplier A o from Supplier B using a 60/40 distribution..
    What set of steps should i follow from here to make sure every time a purchase requisition it is triggered from MRP a quota arrangement will be suggested to buy the goods from A and B?
    Is it possible to change the quota arrangement once it is confirmed by the MRP?
    Some times we will decide the source determination at the time of converting the Purchase Order, how to handle this if there is no master data like quota arrangement?
    Regards,

    What set of steps should i follow from here to make sure every time a purchase requisition it is triggered from MRP a quota arrangement will be suggested to buy the goods from A and B?
    Create the quota arrangement and in the source list enter 1 for MRP field
    Is it possible to change the quota arrangement once it is confirmed by the MRP?
    quota arrangement can not be changed once it is assigned by MRP except you delete the reqs generated by MRP
    Some times we will decide the source determination at the time of converting the Purchase Order, how to handle this if there is no master data like quota arrangement?
    if oyu don't have quota then system will sugget the source from source list (if you have not make Fix sourcelist in source list)

  • Best Practice for SUP and WSUS Installation on Same Server

    Hi Folks,
    I have a question, I am in process of deploying SCCM 2012 R2... I was in process of deploying Software Update Point on SCCM with one of the existing WSUS server installed on a separate server from SCCM.
    A debate has started with of the colleague who says that the using remote WSUS server is recommended by Microsoft because of the scalability security  that WSUS will be downloading the updates from Microsoft and SCCM should be working as downstream
    server to fetch updates from WSUS server.
    but according to my consideration it is recommended to install WSUS server on the same server where SCCM is installed... actually it is recommended to install WSUS on a site system and you can used the same SCCM server to deploy WSUS.
    please advice me the best practices for deploying SCCM and WSUS ... what Microsoft says about WSUS to be installed on same SCCM server OR WSUS should be on a separate server then the SCCM server ???
    awaiting your advices ASAP :)
    Regards, Owais

    Hi Don,
    thanks for the information, another quick one...
    the above mentioned configuration I did is correct in terms of planning and best practices?
    I agree with Jorgen, it's ok to have WSUS/SUP on the same server as your site server, or you can have WSUS/SUP on a dedicated server if you wish.
    The "best practice" is whatever suits your environment, and is a supported-by-MS way of doing it.
    One thing to note, is that if WSUS ever becomes "corrupt" it can be difficult to repair and sometimes it's simplest to rebuild the WSUS Windows OS. If this is on your site server, that's a big deal.
    Sometimes, WSUS goes wrong (not because of ConfigMgr)..
    Note that if you have a very large estate, or multiple primary site servers, you might have a CAS, and you would need a SUP on the CAS. (this is not a recommendation for a CAS, just to be aware)
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • Best Practice for using multiple models

    Hi Buddies,
         Can u tell me the best practices for using multiple models in single WD application?
        Means --> I am using 3 RFCs on single application for my function. Each time i am importing that RFC model under
        WD --->Models and i did model binding seperately to Component Controller. Is this is the right way to impliment  multiple            models  in single application ?

    It very much depends on your design, but One RFC per model is definitely a no no.
    Refer to this document to understand how should you use the model in most efficient way.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/705f2b2e-e77d-2b10-de8a-95f37f4c7022?quicklink=events&overridelayout=true
    Thanks
    Prashant

  • Best practice for running multiple sites on 1 CF install?

    Hi-
    I'm setting up a new hosting environment (Windows Server 2008 Standard 64 bit VPS  configuration, MySQL, IIS 7, CF 9)
    Has anyone seen any docs or can anyone suggest best practices for configuring multiple sites in this environment? At this point I'm thinking simple is best, one new site in IIS for each client (domain) and point it to CF.
    Given this environment, is anyone aware of any gotchas within the setup of CF 9 on IIS 7?
    Thank you in advance,
    Rich

    There's nothing wrong with that approach. You can run as many IIS sites as you like against a single CF install.
    As for installing CF on IIS 7, I recommend that you do the following: install CF 9 without connecting it to IIS, then installing the 9.0.1 upgrade and any hotfixes, then connecting CF to IIS using the web server configuration utility. This will keep you from having to install the IIS 6 compatibility layer that's needed with CF 9 but not with CF 9.0.1.
    Dave Watts, CTO, Fig Leaf Software
    http://www.figleaf.com/
    http://training.figleaf.com/

Maybe you are looking for

  • Xcopy command in the file communication channels

    Hi all we are using xcopy commmand in the Run OS command in the receiver communication channels.  xcopy %F destination folder -y this is actually working fine. we actually want to use the copy command instead of xcopy we have tried to give copy %F de

  • Mac OS 10.6 HELP

    I need Mac 0S 10.6 to update my iTunes.  I ordered the software from Apple.  When I received it, it says "new version 10.6.3" My system will not let me install it without Mac OS 10.6!  Any help out there?

  • Unable to truncate() a file previously mapped to a MappedByteBuffer

    (Here's hoping that my carriage returns will be preserved this time...) I am using memory-mapped IO to record a program log. The mapped portion is done 512kb at a time, and when the program is finished, the logging section does the following: determi

  • Urgent online repair message

    Why do I keep getting the urgent online repair message. What can I do about it.

  • PDFs fail to load from backup

    I upgraded my iOS recently. In the process, I took a backup of my iPad 2. In addition to some purchased books, my iBooks had a lot of other books that I downloaded from the net, a lot of them marked with some important info I can ill afford to lose.