How To Setup viOpen Sessions Limit

I want to alloc some buffer to buffering DMA data from PCIe FPGA, my idea is create 512KB * 2048 buffer about 1GB, and i want to use the buffer by virtual address(VI_ATTR_WIN_ACCESS = VI_DEREF_ADDR), it looks like the max times of viOpen is 500, i tried use many Resource Manager. can I break the limit ? Or some kind of other method ? here is my code. thx.
int main(int argc, char **argv) {
const UINT size = 0x80000;
ViSession rsrcManager;
ViSession vi;
ViBusAddress viBusAdr;
ViAddr viAddr;
ViUInt32 viUint32;
ViPUInt32 viPUint32;
list<ViBusAddress> viBusAdrs;
ViUInt16 viUint16;
int nBlockIndex;
int nRsrcMgrIndex;
list<ViBusAddress>::const_iterator iter;
EmptyAllSet();
viOpenDefaultRM(&rsrcManager);
nRsrcMgrIndex = 0;
while (1) {
viOpenDefaultRM(&rsrcManager);
for (nBlockIndex = 0; nBlockIndex < 100; nBlockIndex++) {
if (viOpen(rsrcManager, "PXI::MEMACC", VI_NULL, VI_NULL, &vi) < VI_SUCCESS) {
printf("Open Error %d %d\n", nRsrcMgrIndex, nBlockIndex);
goto print_result;
if (viMemAlloc(vi, size, &viBusAdr) < VI_SUCCESS) {
break;
} else {
if (viMapAddressEx(vi, VI_PXI_ALLOC_SPACE, viBusAdr, size, VI_FALSE, VI_NULL, &viAddr) < VI_SUCCESS) {
printf("Map Error\n");
if (viGetAttribute(vi, VI_ATTR_WIN_ACCESS, &viUint16) < VI_SUCCESS) {
printf("Get Attribute Error\n");
if (viUint16 != 3) {
printf("Map Result Error\n");
viBusAdrs.push_back(viBusAdr);
nRsrcMgrIndex++;
print_result:
printf("%dK * %d = %dM\n", size / 1024, viBusAdrs.size(), size * viBusAdrs.size() / 1024 / 1024);
getch();
return 0;

anybody can help me?

Similar Messages

  • How to extend Exchange User mail box session limit in Exchange 2013

    Hi,
    How to extend Exchange User mail box session limit in Exchange 2013??

    To configure default mailbox session limit, check this well described MS-Library link :http://technet.microsoft.com/en-us/library/ff477612%28v=exchg.141%29.aspx#SL
    Hope, this helps you.

  • I don't know how to setup FF to open in last session of windows wont let me save current sessions like it used to ask me fairly disappointing can you help m? Phil

    Question
    i don't know how to setup FF to open in last session of windows wont let me save current sessions like it used to ask me fairly disappointing can you help m? Phil

    ''want FF to open in last session of windows -- won't ask me if I want to save current sessions like it before''
    '''You can still have the old messages''', to make sure you get your tabs restored immediately, but with or without the messages and whichever way you respond to the message you can still get back your previous session through the History menu. (see item #31 "tabslost")
    * http://dmcritchie.mvps.org/firefox/firefox-problems.htm#tabslost
    You can make '''Firefox 6.0''' look like Firefox 3.6.*, see numbered items 1-10 in the following topic [http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface Fix Firefox 4.0 toolbar user interface, problems (Make Firefox 4.0 thru 6.0, look like 3.6)]. ''Whether or not you make changes, you should be aware of what has changed and what you have to do to use changed or missing features.''
    * http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface

  • How to setup breakpoints in a vector space?

    Hi,
    How to setup breakpoints in a 2D vector space in NI 7344 and check for them using flex_read_breakpoint_status_rtn?
    Thanks.

    Hi,
    Is Office Communicator something to do with the Word, Exel and Powerpoint Office Package ?
    What sort of Screen Names or IDs do you use with that ?
    If these are MSN/Live accounts names then it can be made to work for Text Chats but not Video or Audio Only chats
    10:38 PM      Friday; April 20, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Lion 10.7.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • How to setup iChat in a office

    How to setup iChat in a office that using Office Communicator as a IM ?

    Hi,
    Is Office Communicator something to do with the Word, Exel and Powerpoint Office Package ?
    What sort of Screen Names or IDs do you use with that ?
    If these are MSN/Live accounts names then it can be made to work for Text Chats but not Video or Audio Only chats
    10:38 PM      Friday; April 20, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Lion 10.7.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • How to setup the security based on roles in Organization.

    Hi,
    How to setup the security based on roles in Organization.
    For example:Few users are Manager and a few user are Non Manager .Manager should have access to all work data including Non Manager and Non Manager should access based role.How to setup this? How OBI server identify the user role?
    kindly let me know.
    Regards.,
    CHR

    Hi,
    You need to have Back End support to achieve this. In Back End you need to create two groups . You need to know what joins has to be made for which group (which is more important) and also make session variable for the userrole (with SQL supporting it). In the BMM layer, we need to put the security join conditions in the 'where clause'.
    And make a common report. User loggin in with the respective userid will have userrole and joins assigned in the Back end. And they will be viewing the report according to their access.
    Hope this will solve your problem.
    Regards
    MuRam

  • How to setup the timeout time about container mangement transaction?

    hi
    i want to modify the time-out time about cantainer management transaction.
    but i don't know where and how to setup it....
    please tell me how to do it, thanks a lot.
    Joe

    We haven't been using the session pool, just the direct Jolt classes, but
    the only way we've found to set the timeout is via a transaction time, it
    seems to be the only one that has any effect.
    hth
    Mike

  • How to setup a Cluster of 3 servers on weblogic 9.2?

    I'm trying to setup a cluster of 3 servers on WebLogic 9.2 on one physical computer.
    I managed to startup 3 servers from cmd in windows like this:
    startmanagedweblogic BiPublisher1 http://127.0.0.1:7101
    startmanagedweblogic BiPublisher2 http://127.0.0.1:7101
    startmanagedweblogic BiPublisher3 http://127.0.0.1:7101
    Now I can open each of the 3 servers directly from my browser:
    http://127.0.0.1:8101/xmlpserver
    http://127.0.0.1:9101/xmlpserver
    http://127.0.0.1:9501/xmlpserver
    My questions are:
    How to setup servers so that I can start them automatically from administration console?
    How to configure address in administration console through which I will open my application in a browser?
    And after that, how to configure that when server on which I work breaks, it automatically restarts application in another server (no need for failover because BI Publisher does not support session replication, I think)?
    Do I need machine and virtual host, and what is their purpose? Node manager? Can somebody explain those things? What i did wrong?
    I made this in administration console:
    Administration console:
    SERVERS:
    AdminServer:
    Name: BIPublisherServer
    Listen address: 127.0.0.1
    Listen port: 7101
    Server1:
    Name: BIPublisher1
    Machine: tp43
    Cluster: BiPublisherCluster
    Listen address: 127.0.0.1
    Listen port: 8101
    Server2:
    Name: BIPublisher2
    Machine: tp43
    Cluster: BiPublisherCluster
    Listen address: 127.0.0.1
    Listen port: 9101
    Server3:
    Name: BIPublisher3
    Machine: tp43
    Cluster: BiPublisherCluster
    Listen address: 127.0.0.1
    Listen port: 9501
    CLUSTERS:
    Cluster: BiPublisherCluster
    Multicast Address: 237.0.0.101
    Multicast port: 8050
    VIRTUAL HOSTS:
    Name: bicluster
    Virtual Host Names: 127.0.0.1
    Targets: Clusters: BiPublishercluster: All servers in the cluster
    MACHINES:
    Name: tp43
    DEPLOYMENTS:
    Name: xmlpserver
    Path: C:\BiPub\xmlpserver.war
    Targets: Virtual Hosts: bicluster

    You have some reading to do to increase your familiarity with cluster / managed servers.
    How to setup servers so that I can start them automatically from administration console?Add the 3 servers into your cluster. Use the cluster to start and stop all 3 servers from within the console instead of starting / stopping each server individually.
    How to configure address in administration console through which I will open my application in a browser?You'll need some sort of load balancer to direct traffic so that the end user doesn't have to know the server/port combinations. Apache + Weblogic plugin for instance, but I don't think you'll be keeping all 3 instances on the same physical machine as your production design.
    And after that, how to configure that when server on which I work breaks, it automatically restarts application in another server (no need for failover because BI Publisher does not support session replication, I think)?Target your application to "All servers in the cluster". You should have your managed instances on separate physical machines since your current configuration is vulnerable to a single machine failure which would shutdown all 3 instances.

  • CLI session limit 32 reached. Exiting. on nexus n5k

    Hi Guys ,
    I'm having a problem with Nexus n5k , when i'm trying to telnet to the machine ,i get this error :
    "CLI session limit 32 reached. Exiting."
    I can connect to it by console ,but i don;t know how to clear all those sessions .
    Needs help
    Thanks ,
    Ron

    I am also having this issue on out 5Ks.  We resolved the problem before by consoling into the system and doing "show users" and then "clear line (vty-line)".  This will allow you to ssh or telnet into the system again.  But I am wondering how I can determine why this is happening all of a sudden.  I have been working with our Nexus 5K for over a year and a half and have never had this issue.  Now all of a sudden it has happend two time in the last 3 months.  What do I need to look into to resolve this?  I am not not exiting properly and it is not killing the session?  Please advise.
    Scott

  • How to setup RDP or VDI services in this scenario

    Hi there! I've this scenario:
    a. 20 thin clients (with OS Windows 7 Embedded Edition)
    b. Two physical servers Core1 and Core2, with 64GB of RAM, 2 socket CPU, 8 cores, OS Windows Server 2012 R2, and HyperV roles
    c. two domain controllers as child virtual machines with 2 GB running (PDC on Srv1 and BDC on Srv2)
    d. ExchangeServer 2013 running as child vm on Core1, with 32 GB RAM.
    I've licenses for Windows Server 2008 R2, and Windows Server 2012, and MS office 2013
    I want clients, after to connect with RDP, to use outlook 2013 for emails.
    Now, i want to setup services for 20 thin clients. This is new for me...and i want your suggestions how to setup up them on this scenario. Have i to use RDP services, or VDI???
    Regards!
    Lasandro Lopez

    Hi,
    According to your comment, I can say that Share permissions are automatically set up by the management tools once it will be created. We can use windows PowerShell or server manager to manage UPD. Also remember that User profile disks are for a single collection
    only. A user connecting to two different collections will have two separate profiles.
    Here providing important link to understand UPD. (You can refer below link for Server 2012 R2)
    1.  Easier User Data Management with User Profile Disks in Windows Server 2012
    2.  Working with User Profile Disks on Session-Based Desktop Deployments
    Hope it helps!
    Thanks.

  • How to setup Cost Centres driven purchasing approval Hierarchy

    Hi Guys,
    My client has a Cost Centre set as a segment of their Key Flexfield
    Every Approver has cost centre limited approval limit attached
    Eg:
    Approver AAA can approve upto 100$ for cost centre 1111 only
    Approver BBB can approve upto 200$ for cost centre 2222 only
    Approver CCC can approve upto 200$ for cost centre 1111 only
    Required:
    When Requester creates a requisition for a certain cost centre (ie cost centre 1111), oracle should build an approval list based on approval limits.
    In our example:
    Requestor creates requisition for 150$ for cost centre 1111
    Generated Approval List: Approver AAA -> Approver CCC
    Any ideas?
    Thanks,
    Iana

    Thanks Sandeep!
    My problem is not how to define approval groups (this will work!), but how to generate an approval list (or how to setup hierarchy)
    Approval list should be generated from those people who can approve my cc, not my next in line manager
    Eg:
    when I create Req for cc 1111,
    My approval list shd be: Approver AAA -> Approver CCC
    when I create Req for cc 222,
    My approval list shd be: Approver BBB
    One solution can be to create a separate hierarchy for each CC range (ie Marketing, IT, etc) and let requestor to choose the correct hierarchy from LOV. The problem here will be that multiple hierarchies are difficult to maintain. For example, if the position for Deputy CFO changes, I have to adjust each hierarchy

  • How to setup private network in oracle rac

    Hi all,
    Iam trying to setup oracle 2-NODE RAC ,
    now i stuck in setup private network..
    how to setup private network, what i have to do for that.
    please help us provide step by step process

    The loop is nothing but a network cable connecting two nodes on same port with a private IP address (something like 10.0.01 and 10.0.0.2) which is not accessible by any other machine in the network (except 2 nodes obviously ).
    Note that cross over cables are not supported for the Cluster Interconnect. And cross over cables limit the cluster to only 2 nodes, which may not be enough for many RAC deployments.
    Cheers,
    Brian

  • How Can I Release sessions if these are idle long time Automatically.

    Dear Experts,
    How Can I Release sessions if these are idle long time Automatically based on some time frame..
    So that session memory will be free and when i go to reconnect the session then we will have enough memory for our transaction processing.
    I am asking this question because, In my case (Web Load Testing) after completion the processing this parameter still showing 86% Usage.
    so How Can I release it.

    Change value of IDLE_TIME in profile or better create new profile with less IDLE_TIME and assign to users.
    IDLE_TIME Allowed idle time before user is disconnected (minutes)
    Below is example if user is idle for 20 min , he/she will disconnect
    ALTER PROFILE developer LIMIT idle_time 20;
    Cheer,
    Virag Sharma

  • How to setup spotlight to ignore safari history item. I just want bookmarks

    Anybody know how to setup Spotlight so that when I do a search, it just finds bookmarks? I don't want all of the history items.
    Thanks to all who answer.
    Mark

    You can check if you have a user.js file in the profile folder to initialize some prefs each time you start Firefox.
    The user.js file is only present if you or other software has created it, so normally it wouldn't be there.<br />
    You can check its content with a plain text editor if the file is there and you didn't create this file yourself.
    The user.js file is read each time you start Firefox and initializes preferences to the value specified in this file, so preferences set via user.js can only be changed temporarily for the current session.
    *http://kb.mozillazine.org/Preferences_not_saved
    You can do a search for delta search pref on the <b>about:config</b> page and reset related user set (bold) prefs via the right-click context menu to the default value.

  • How to setup osx Firewall to allow incoming access to nginx?

    Hello!
    How to setup osx Firewall to allow incoming access to nginx (any port)?
    Local access is all fine, but when I trying to open http://<myip>:<port> from outside (other device in same network) there are no answer.
    If I turn off Firewall all works fine, but I want to keep my safety.
    Adding "nginx" binary file to Firewall  list doesn't help.

              "Victor" <[email protected]> wrote:
              >
              >Hi,
              >
              >I need to limit access on one JSP to a user. All the
              >other JSP's
              >should be available to averyone all the time. The following
              Victor,
              two ideas:
              1. Once you've seen where jspservlet compiles the jsp to, try adding
              an explicit servlet registration (then an acl for that servlet)
              I'm not sure if it would work, never tried.
              2. If it doesn't, well, you have a servlet class available from
              the jspservlet/jspc process. Move it to servletclasses (or wherever
              you keep other servlets) and register/acl it normally
              

Maybe you are looking for