Multi Acquisitio​n bis

I am  working with  PCI-6601 from 4 channels: I
try to generate two signals them and to acquire of a third signal (moreover
trigger with one of the two signals generates them to you), but  a
problem has been placed : it gives always an error to me of the type
“The specified resource is reserved”. Considering that I am using of
the examples base which Count Digitl Events… and Gen Digit
Pulse-Finite.vi moreover.  Initially when I had only one signal them of
generation in contemporary to one of acqusizione, if I put the first
one on ctr0 and the second ctr1, there was also in this case the error,
then the thing has been  resolved placing on the second ctr2 (goodness
knows because then…). Now, because I have one signal  in more, there is
this error another time  to me (you hold account that I have controlled
every turns the just connections on the pin…).  Some idea or
suggestion?  Thanks

Thank you for the advice.
I improved the code as attached file and it came no errors.
But in this code, the signal in ch1 is acquired and in ch2 is not acquired. Why?
FrontPanel.pdf is the front panel of this code during operating.
AI1 and AI2 are input same signal 1Hz sine function.
I'm grad if you teach me the solution.
Attachments:
daqmx_sw_trigger_example07.zip ‏183 KB

Similar Messages

  • Can u please send me a sample code to upload and download a file using java

    Hi,
    Please can u send me a sample code to upload a file and to download the same file from a remote server using a java servlets. The file should be read byte by byte.
    Message was edited by:
    user461713

    Hi, Thank u.
    Sorry, I forgot to attach a code. Here it is.
    Actually i need to upload a file to a remote server and download it from a server to my machine. I'm trying it using servlets and using tomcat5.0 as a servlet container. Here i'm sening a code used to upload a file. Let me know whether it works. Only few lines are here.
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.lang.Object;
    import java.util.*;
    import java.lang.String;
    import com.oreilly.servlet.MultipartRequest;
    public class FileUpload extends HttpServlet{
         public void doPost(HttpServletRequest req, HttpServletResponse res)throws
         ServletException, IOException{
         MultipartRequest multi=new MultipartRequest(req);     
         String file="file1";
         byte[] b=file.getBytes();
         InputStream in=null;
         BufferedInputStream bis=null;
         FileWriter fw=null;
    try{
         in=multi.getInputStream("file1");
    bis=new BufferedInputStream(in);
         File output=new File("/fileuploadtest");
         fw=new FileWriter(output);
              int i;
              i=bis.read();
              while (i != -1) {
    fw.write(i);
    i = bis.read();
         catch(IOException e){
              System.out.println("Exception=" +e);
    finally{
         try{
              if(in!=null)
              in.close();
              if(bis!=null)               
              bis.close();
              if(fw!=null)
              fw.close();
         catch(Exception e){
              System.out.println(e);
    This code is giving error as: cannot resolve symbol: class MultipartRequest
    Why is this happening?
    Pls let me know whether this code works or no and also i have written form.html.
    Can u pls tel me whether there are ways in which i can write a code to upload a file using servlets without using third party packages. Pls help.
    Also how should be the servlet mapping for this code.?
    Regards
    Message was edited by:
    user461713

  • Reliable unlimited multi-reco​rd acquisitio​n

    I am attempting a multi-record acquisition in NI-SCOPE following the pattern of MultiRecordFetchMoreThanAvailableMemory.  The system is, in general, working for numRecords up to 10,000 (which in this case corresponds to 600 MB of data in total).  However, if I call niScope_ConfigureHorizontalTiming with numRecords = 100,000, acquisition immediately fails with the error:
    Error BFFA669E occurred at niScope_InitiateAcquisition.
    Possible Reasons:
    niPAL Error -50353 occurred:
    One or more memory pages in the specified logical buffer could not be locked into physical memory.  The operation could not be completed as specified.
    I would like to acquire an unlimited, "potentially infinite" number of records.  One way to do this would be to set numRecords to 1, but according to my understanding, this would sacrificed the benefits of on-card buffering.  I required on-card buffering for reliability, to ensure that no trigger is missed.  This error causes me to suspect that I cannot achieve this goal simply by setting numRecords to a very large number.
    How can I acquire an indefinite number of records reliably in NI-SCOPE?

    My acquisition loop is attached.  It's become rather intricate, but the essential lines are
    // Set the attribute to allow more records than memory
    handleErr (niScope_SetAttributeViBoolean(vi, VI_NULL, NISCOPE_ATTR_ALLOW_MORE_RECORDS_THAN_MEMORY, NISCOPE_VAL_TRUE));
    // Configure the vertical parameters
    handleErr(niScope_ConfigureVertical(vi, d.channelName, d.verticalRange, d.verticalOffset, d.verticalCoupling, d.probeAttenuation, NISCOPE_VAL_TRUE));
    // Configure the horizontal parameters
    handleErr(niScope_ConfigureHorizontalTiming(vi, d.minSampleRate, d.minRecordLength, d.refPosition, recsPerAcq, d.enforceRealtime));
     handleErr(niScope_ActualNumWfms(vi, d.channelName, &numWaveform));
    handleErr(niScope_ActualRecordLength (vi, &actualRecordLength));
     // The real number of waveforms is the result of dividing by the number of records.
    numWaveform = numWaveform / recsPerAcq;
    wfmInfoPtr = malloc(sizeof(struct niScope_wfmInfo) * numWaveform);
    binaryWfmPtr.any = malloc (d.binaryDataType * actualRecordLength * numWaveform);
    // If it doesn't have enough memory, give an error message
    if (binaryWfmPtr.any == NULL || wfmInfoPtr == NULL) handleErr (NISCOPE_ERROR_INSUFFICIENT_MEMORY);
    // Initiate the acquisition
    handleErr(niScope_InitiateAcquisition(vi));
    I set ALLOW_MORE_RECORDS_THAN_MEMORY to TRUE, and my mallocs succeed, but niScope_InitiateAcquisition fails with the previously mentioned error when recsPerAcq = 100000.  When recsPerAcq=10000, everything works perfectly.
    Thanks for your help,
    Ben
    Attachments:
    acqloop.c ‏6 KB

  • Troublesho​oting BIS in BB storm 2 9550

    My Blackberry Storm 2 9550 is not able to get EDGE on the phone so i am not able to use BIS it was previously on Verizon but I unlocked it.It was working properly but after six months of purchase.I am not able to register neither on vodafone server nor on blackberry or host routing table, service books are also not available.... I tried it with other sim cards of different service providers then to it is not working.I tried each and everything which service provider told like battery pull,restart,security wip etc.Please HEL ME

    I"m not fully understanding the words you are posting, so let's see if I am interpreting correctly:
    1) You have a VZW 9550
    2) The 9550 is unlocked from VZW, as validated by this:
    http://blackberryfaq.com/index.php/How_do_I_determ​ine_if_my_BlackBerry_is_%22unlocked%22%3F
    3) You have a SIM from Vodafone India, that you wish to use in the 9550, locally in India
    4) It worked fine for 6 months on Vodafone India, but has recently stopped working
    If I have that correct, here is what I suspect happened. When you unlocked it and put the Vodafone India SIM into it, it properly registered to Vodafone India. But, your BIS-level services did not get shut down from VZW. Sometimes this happens...a carrier may not immediately shut down your BIS services when you move onto a different carrier. And some carriers allow the BIS services to function, even though they are traversing to a different carrier. Once VZW caught up, they finally shut down your BIS service since you'd not been paying them for those services.
    Consequently, what you now need to do is to get your BIS services working directly from Vodafone India. And that is where the challenge will lie. The 9550 is capable of both CDMA and GSM services...it has a multi-function radio. Clearly, since it was working via Vodafone India for those 6 months, you have it properly configured to operate on that network. But, until you can activate BIS services from the Vodafone India network, you will have no ability to receive BIS services from them.
    If you indeed have a BIS-level account from Vodafone India, then that's only the first step in getting this working. The next step is obtaining the Service Books from Vodafone India (you previously had them from VZW, but when they shut down your BIS account, the Service Books were automatically removed from your BB). Even if the BIS account at Vodafone India is fully functional, the Service Books must still reside on the BB in order to actually use the service. And the Service Books come from the carrier. Most carriers will only deliver Service Books to BB models that they natively support...so if Vodafone India does not support the 9550, then they will not push the Service Books to you.
    There are tedious and manual methods to obtain the necessary Service Books, but please first clarify if all of the above that I have written to you is accurate.
    Oh...one more thing...are your voice-level services, from Vodafone India, working fine still?
    Good luck and let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Some general questions about multi-threading

    Hey Everybody,
    I have a dilemma with a multi-threaded program that I have written.
    Well to be truthful I actually wrote the program with no consideration whatsoever for multithreading.
    As a result of this complete lack of concern I get a completely hung user interface.
    My program performs a lot of network communications over URL��s and also writes information from URL��s to disk. The combination of networking and I/O in my program and the fact that I have not built multi-threading into the program has lead to complete failure of the user interface. When I say complete failure I mean complete failure. If it were only button��s not responding then I wouldn��t be all that worried, however the entire drawing area of my programs ��Frame�� completely freezes. It��s cool if nothing is maximized or minimized over the frame but as soon as this happens my programs drawing area has a ��serious hang over!��.
    I have begun learning about threads, in principle they sound wicked however in practice they have proven to be a brain tease (oops �K.. honesty).
    The difficulty of threads should not be all that daunting to me, however I have a couple of very simple questions that I would love to have answered�K..anybody out there!!!!!!!!!
    This is the normal basic method of running a thread that I have been attempting to incorporate into my program:
    1). Extend the thread class,
    2). Override the run() method in the subclass (created from step 1),
    3). Create an instance of the subclass,
    4). Call the start() method on the instance (from step 3).
    I have read that every statement the thread will execute is contained within it��s run() method.
    Question 1). This being the case is it possible to have member variables or methods inside a class that extends thread? Please explain!
    Question 2). Can a class that extends thread contain a constructor? Please explain!
    Question 3). If a subclass of thread cannot contain a constructor as I assume to be the case then how can code executing within the newly spawned thread reference information from the object that spawned it?
    If anybody out there on the great net can answer even half of one of these questions I will be more than grateful. Thanks for your time, and rock on Java!
    David

    Thread t = new Thread(MyRunnableDerivedClass);
    t.start();I hope it is understood that MyRunnableDerivedClass is actually an object of the MyRunnableDerivedClass. sorry for the confusion.
    so here's a thread that reads from a file using constructors, member variables, other funcs. It's not optimal but shows use of all of the above. I just typed this in so there are probably syntax errors, but you should get the point.
    public class ThreadedFileReader implements Runnable
        private File m_File;
        byte[] contents = new byte[0];
        public ThreadedFileReader( File f )
           m_File = f;
        public void run()
            BufferedInputStream bis = null;
            try
                bis = new BufferedInputStream( new FileInputStream( m_File ));
                int avail = bis.available();
                while (avail > 0)
                    int oldLen = contents.length();
                    contents = expand( contents, avail );
                    bis.read( contents, oldLen, avail );
                    avail = bis.available();
            catch (Exception e)
            { //do something witty
            finally
                try{ if (bis != null) bis.close(); } catch (Exception e){}
       private byte[] expand( byte[] oldBuf, int addedLen )
          byte[] newBuf = new char[oldBuf.length + addedLen];
          System.arrayCopy( newBuf, 0, oldBuf, 0, oldBuf.length );
          return newBuf;
       public byte[] getContents()
           return contents;
    //here's where we use it
    File f = new File( "c:\myfile" );
    ThreadedFileReader tfr = new ThreadedFileReader( f );
    Thread t = new Thread( tfr );
    t.start();
    t.join();
    // At this point the thread has died, but the thread object still exists
    byte [] data = tfr.getContents();

  • Multi provider

    Hi Experts.
    I have one DSO and one CUBE.only two fields are common in the both DSO and CUBE.now my requirement is i need all the fields from the DSO and some fields from the cube( which fields are not common). what is the best one to use multi provider or Info set.
    If we can achive through Info set how to do it.
    regards..roi
    Edited by: samuroi on Apr 13, 2010 2:17 PM

    Hi
    Check these links:
    http://www.scribd.com/doc/6446225/BI-Data-Modeling-Multi-Providers-and-InfoSets
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2f5aa43f-0c01-0010-a990-9641d3d4eef7
    http://www.sap-img.com/business/steps-for-creating-multi-provider.htm
    Regards
    Chandra Sekhar T

  • SharePoint Foundation 2013 - Multi-tenant Install and OneDrive for Business with Yammer i

    Hello,
    After installing SP Foundation 2013 (SP1) with Partitioned service applications we have noticed that while clicking on the "yammer and oneDrive" link the below error message comes up:
    _admin/yammerconfiguration.aspx
    any ideas??
    http://technet.microsoft.com/en-us/library/dn659286%28v=office.15%29.aspx
    we have also noticed that MS mentioned "OneDrive for Business with Yammer integration doesn’t work for multi-tenancy or partitioned service applications for on-premises deployments"
    ja

    ULS
    Application error when access /_admin/cloudconfiguration.aspx, Error=Object reference not set to an instance of an object.   at Microsoft.SharePoint.WebControls.SPPinnedSiteTile.OnInit(EventArgs e)     at System.Web.UI.Control.InitRecursive(Control
    namingContainer)     at System.Web.UI.Control.InitRecursive(Control namingContainer)     at System.Web.UI.Control.InitRecursive(Control namingContainer)     at System.Web.UI.Control.InitRecursive(Control
    namingContainer)     at System.Web.UI.Control.InitRecursive(Control namingContainer)     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    =====
    To me it seems SharePoint social networking features require the full SharePoint Server product AND are not available with the free SharePoint Foundation, If correct then why MS punching it here in Foundation without a friendly error message..
    ja

  • SSRS 2012: How to get a "Select All" that returns NULL instead of an actual list of all values from a multi-select parameter?

    I have a multi-select parameter that can have a list of thousands of entries. In general, the user will pick a few entries from the list or "Select All". If they check "Select All", I would much prefer that I get a NULL or an empty string
    instead of a list of all values. Is there any way to do that?
    In experimenting with a work-around, I tried putting an "All" label with a null value in the list, but it is ignored (does not display in the drop-down). If I use an empty string for the value, my "All" entry does get displayed, but so
    does "Select All", which is confusing. Is there a way to suppress "Select All"?
    - Mark

    I adapted the following from a workaround posted by JNeo on 4/16/2010 at 11:14 AM at
    http://connect.microsoft.com/SQLServer/feedback/details/249227/multi-value-select-all-parameter-in-reporting-services
    To get a null value instead of the full list of all values when "Select All" is chosen:
    1) Add a multi-value parameter "MyParam" that lists the values to choose.
    2) Add a DataSet "ParamCount" identical to the one used by "MyParam", except that it returns a single column named [Count] that is a COUNT(*) of the same data
    3) Add a parameter "MyParamCount", set it to hidden and internal, then set the default value to 'Get values from a query', choosing "ParamCount" for the Dataset and the one [Count] column for the Value field.
    4) Change the parameter for the main report DataSet so that instead of using [@MyParam], it uses this expression:
    =IIF(Parameters!MyParam.Count =
    Parameters!ParamCount.Value, Nothing, Join(Parameters!MyParam.Value, ","))

  • Get all values from multi select in a servlet

    Hello,
    I have a multi <select> element in a HTML form and I need to retrieve the values of ALL selected options of this <select> element in a servlet.
    HTML code snippet
    <select name="elName" id="elName" multiple="multiple">
    Servlet code snippet
    response.setContentType("text/html");
    PrintWriter out = null;
    out = response.getWriter();
    String output = "";
    String[] str = request.getParameterValues("elName");
    for(String s : str) {
    output += s + ":";
    output = output.substring(0, output.length()-1); // cut off last deliminator
    out.println(output);But even when selecting multiple options, the returned text only ever contains the value of the first selected option in the <select>
    What am I doing wrong? I'm fairly new to servlets
    Edited by: Irish_Fred on Feb 4, 2010 12:43 PM
    Edited by: Irish_Fred on Feb 4, 2010 12:44 PM
    Edited by: Irish_Fred on Feb 4, 2010 2:14 PM
    Edited by: Irish_Fred on Feb 4, 2010 2:26 PM
    Edited by: Irish_Fred on Feb 4, 2010 2:26 PM
    Edited by: Irish_Fred on Feb 4, 2010 2:32 PM

    I am using AJAX.
    I will show you how I'm submitting the <select> values by showing you the flow of code:
    This is the HTML code for the <select> tag and the button that sends the form data:
    <form name="formMain" id="formMain" method="POST">
         <input type="button" id="addOpts" name="addOpts" value="Add Options" style="width:auto; visibility:hidden" onClick="jsObj.addOptions('servletName', document.getElementById('elName'))">
         <br>
         <select name="elName" id="elName" multiple="multiple" size="1" onChange="jsObj.checkSelected()">
              <option value="0"> - - - - - - - - - - - - - - - - </option>
         </select>
    </form>Note that the "visibility:hidden" part of the button style is set to "visible" when at least one option is selected
    Note that "jsObj" relates to a java script object that has been created when the web app starts ( The .js file is included in the .jsp <head> tag )
    The following code is taken from the file: "jsObj.js"
    jsObj = new jsObj();
    function jsObj() {
    //=================================================
         this.addOptions = function(url, elName) {
              var theForm = document.getElementById('formMain');          
              if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari
                   xmlhttp=new XMLHttpRequest();
              } else { // code for IE6, IE5
                   xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
              url += this.buildQueryString(theForm.name);
              xmlhttp.open("POST",url,true);
              xmlhttp.send(null);
              xmlhttp.onreadystatechange=function() {
                   if(xmlhttp.readyState==4) { // 4 = The request is complete
                        alert(xmlhttp.responseText);
    //=================================================
    this.buildQueryString = function(formName) {
              var theForm = document.forms[formName];
              var qs = '';
              for (var i=0; i<theForm.elements.length; i++) {
                   if (theForm.elements.name!='') {
                        qs+=(qs=='')? '?' : '&';
                        qs+=theForm.elements[i].name+'='+escape(theForm.elements[i].value);
              return qs;
         //=================================================
    }And this is a code snippet from the "servletName" servlet:public synchronized void doGet(HttpServletRequest request,
              HttpServletResponse response) throws ServletException,IOException {
              PrintWriter out = null;
              try {
                   response.setContentType("text/html");
                   out = response.getWriter();
                   String output = "";
                   String[] values = request.getParameterValues("elName");
                   for(String s : values) {
                        output += s + ":";
                   output = output.substring(0, output.length()-1); // cut off last delimitor
                   out.println(output);
                   } catch (Exception e) {
         }So anyway, everthing compiles / works, except for the fact that I'm only getting back the first selected <option> in the 'elName' <select> tag whenever I select multiple options
    Edited by: Irish_Fred on Feb 7, 2010 10:53 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Multi-month, year, and date-range views

    My apologies for wasting everyone's time if I've missed something really obvious here, but am I correct in concluding that there is no way to generate anything beyond a static one-month view in iCal? No multi-month view? No year view? No "view date range"? At this stage of the game, how is it possible that something so elemental could be omitted from this program?
    At this point I'm reduced to exporting each month to a pdf file and then arranging them as tiles on the screen. But there has to be a better way.
    Short of a new version from Apple, are there any plug-ins that would do this? Does anyone have any other work-arounds? Thanks in advance.

    A quick search of the forums shows that this is a HIGHLY sought after feature (including by me). We all need to use the feed back link (below) to let Apple know this. In my experience with the tech support folks, they seem to have NO idea about what these forums say. In the past I have actually had them log in to these forums and search the issue I was calling them about and they have been blown away when they see the hundreds / thousands of posts with the very same thing they're discussing with me. So, as the wise man says .. "you don't ask, you don't get!" Use the form and let them know...
    http://www.apple.com/feedback/ical.html

  • Needing a multi-month and year-in-view option for ical!

    Hello all!
    I could really use a multi-month and year-in-view format in ical... I've seen some dated posts - is anyone aware of any new developments/options for this?
    thanks and peace-
    DW

    I turn off all calendars but the birthdays. Select [Print]. Choose all the months you want to see. Deselect all calendars but birthdays. Click [Continue]. On the next menu, go to "Layout", select how many pages to print on the paper. I usually print a border around each calendar then you're good to go!
    By only printing the birthdays calenar, you won't get too many appointments to get in the way of brain storming and future planning, yet the computer still thinks its printing a useful calendar.

  • How to create multi-folders in a single folder in numbers

    how do you create multi-folders in a single folders. I have multi files orginized by month, but now i need to group it into a single folder by year.

    See this link:
    http://apex.oracle.com/pls/otn/f?p=31517:107
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.apress.com/9781430235125
    http://apex.oracle.com/pls/otn/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • SSRS - Is there a multi thread safe way of displaying information from a DataSet in a Report Header?

     In order to dynamically display data in the Report Header based in the current record of the Dataset, we started using Shared Variables, we initially used ReportItems!SomeTextbox.Value, but we noticed that when SomeTextbox was not rendered in the body
    (usually because a comment section grow to occupy most of the page if not more than one page), then the ReportItem printed a blank/null value.
    So, a method was defined in the Code section of the report that would set the value to the shared variable:
    public shared Params as String
    public shared Function SetValues(Param as String ) as String
    Params = Param
    Return Params 
    End Function
    Which would be called in the detail section of the tablix, then in the header a textbox would hold the following expression:
    =Code.Params
    This worked beautifully since, it now didn't mattered that the body section didn't had the SetValues call, the variable persited and the Header displayed the correct value. Our problem now is that when the report is being called in different threads with
    different data, the variable being shared/static gets modified by all the reports being run at the same time. 
    So far I've tried several things:
    - The variables need to be shared, otherwise the value set in the Body can't be seen by the header.
    - Using Hashtables behaves exactly like the ReportItem option.
    - Using a C# DLL with non static variables to take care of this, didn't work because apparently when the DLL is being called by the Body generates a different instance of the DLL than when it's called from the header.
    So is there a way to deal with this issue in a multi thread safe way?
    Thanks in advance!
     

    Hi Angel,
    Per my understanding that you want to dynamic display the group data in the report header, you have set page break based on the group, so when click to the next page, the report hearder will change according to the value in the group, when you are using
    the shared variables you got the multiple thread safe problem, right?
    I have tested on my local environment and can reproduce the issue, according to the multiple safe problem the better way is to use the harshtable behaves in the custom code,  you have mentioned that you have tryied touse the harshtable but finally got
    the same result as using the ReportItem!TextBox.Value, the problem can be cuased by the logic of the code that not works fine.
    Please reference to the custom code below which works fine and can get all the expect value display on every page:
    Shared ht As System.Collections.Hashtable = New System.Collections.Hashtable
    Public Function SetGroupHeader( ByVal group As Object _
    ,ByRef groupName As String _
    ,ByRef userID As String) As String
    Dim key As String = groupName & userID
    If Not group Is Nothing Then
    Dim g As String = CType(group, String)
    If Not (ht.ContainsKey(key)) Then
    ' must be the first pass so set the current group to group
    ht.Add(key, g)
    Else
    If Not (ht(key).Equals(g)) Then
    ht(key) = g
    End If
    End If
    End If
    Return ht(key)
    End Function
    Using this exprssion in the textbox of the reportheader:
    =Code.SetGroupHeader(ReportItems!Language.Value,"GroupName", User!UserID)
    Links belowe about the hashtable and the mutiple threads safe problem for your reference:
    http://stackoverflow.com/questions/2067537/ssrs-code-shared-variables-and-simultaneous-report-execution
    http://sqlserverbiblog.wordpress.com/2011/10/10/using-custom-code-functions-in-reporting-services-reports/
    If you still have any problem, please feel free to ask.
    Regards
    Vicky Liu

  • HP 1312nfi Multi-funtion printer & brand new Macbook Pro with Snow Leopard

    Hi,
    I just got my Macbook Pro with Snow Leopard May 2010. I can only print and fax with my 1 year old HP 1312nfi color laserjet multi-function printer. I cannot SCAN at all. I tried loading the software that came with the printer but it wouldn't install the 'Print Director' as I had on my old iMac (with Leopard). Then I went to HP and it said not to install the software that came with the HP printer because Snow Leopard has it all. I read that there are 3 ways to scan from my computer which none of them work. I brought up the printer then clicked printer setup and when I try to bring up the 'print utility' from the last tab, it won't open anything. Where is the printer utility now? Why can't I scan? There has to be a way. HELP please?

    Found the answer on the HP site. It's the original software that works with this printer OS X 10.6!!
    http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareDescription.jsp?lang=en &cc=us&prodTypeId=18972&prodSeriesId=3558902&prodNameId=3562006&swEnvOID=219&swL ang=8&mode=2&taskId=135&swItem=ma-60835-3

  • I have an Apple MacBook Pro and when surfing the web my computer will slow to a crawl and I will have a multi-colored spinning wheel visible until my latest request is handled.  What is causing this and is there a way to prevent this from occuring

    I have a MacBook Pro.  When surfing the web it will eventually slow to a crawl.  When this occurs, there will be a small multi-colored wheel spinning until my latest command is handled.  What is causing this and is there a way that I can modify or prevent this from happening?  Is there a setting that will prevent this?

    When you next have the problem, note the exact time: hour, minute, second.
    If you have more than one user account, these instructions must be carried out as an administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Scroll back in the log to the time you noted above. Select any messages timestamped from then until the end of the episode, or until they start to repeat. Copy them to the Clipboard (command-C). Paste into a reply to this message (command-V).
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.

Maybe you are looking for

  • Used MAILBFR and now my database is gone!!

    OK, I've been having trouble with one of the mail accounts on the server today so I followed the guidance around here and ran mailbfr. I did a backup first, then a -f, and th databases of all users disappeared. Don't panic, I thought, I have a backup

  • Problem with sleep mode-T400

    Hey Guys, I have a lenovo T-400, Windows Vista Home Basic 32Bit. When I put my computer to sleep and try to wake it up within 5 minutes, it wakes up but it doesn't wake up when the sleep time goes beyond 5 mins. Here are the "few" things that I have

  • Linking to one new browser window?

    Can anyone tell me how to open multiple pdfs from one page in the same new browser window instead of opening multiple windows in Dreamweaver 8 (MAC)?

  • PE7 Color Replacement Tool: Sampling method is missing in the toolbar

    Sample Once or Background Swatch options in Color Replaceent Tool toolbar are missing. In fact I cannot find anything about these options in any other places (menus etc.) except the help file. I am using the tryout version of version 7.0? Is this a b

  • Associating Custom policies from admin console

    As mentioned in this link http://e-docs.bea.com/wls/docs92/ConsoleHelp/taskhelp/webservices/ConfigureWSPolicyFile.html we can associate custom ws-policies at runtime. I am facing problems creating a shared J2EE library with custom policies. Has anyon