Hashtable in LabVIEW?

I am looking for a data structure similar to a Hashtable or Hashmap for LabVIEW.

I would suggest the book "LabVIEW Power Programming" by Gary Johnson. It has Hash Table examples available on the included CD-ROM.

Similar Messages

  • How to obtain Hashtable element (array) base type?

    Hi,
         I have read the thread
              http://forum.java.sun.com/thread.jspa?forumID=52&threadID=531561
         on determining the base type of an object array.
         I tried applying the technique to my Hashtable where the element are arrays, this is how I am setting up my Hashtable to pass on to my native method
    Hashtable ht = new Hashtable();
    Float Kd[] = new Float[1];
    Kd[0] = 0.1f;
    Float from[] = new Float[3];
    from[0] = -4.0f;
    from[1] = 2.0f;
    from[2] = 1.0f;
    Integer indices[] = new Integer[4];
    indices[0] = 217;
    indices[1] = 17;
    indices[2] = 769;
    indices[3] = 23;
         myNativeMethod("dbname",ht);
         In my native method, I have the following which is able to determine the array size so I think it is kind of working/correct but when I tried to determine the base type of the array, I keep getting Bus error.
         Here is my native code (as part of my SWIG code)
         Should I be handling arrays obtained from Hashtable differently, can someone point out to me what the correct approach is?
    Regards
    8<------8<------8<------8<------8<------8<------8<------8<------
    if ($input != 0) {
    std::cout << "SWIG ...parameterlist..." << std::endl;
    // Generated typemap code
    const jclass hashtable = jenv->FindClass("java/util/Hashtable");
    if (hashtable != 0) {
    const jclass enumeration = jenv->FindClass("java/util/Enumeration");
    const jmethodID keys =
         jenv->GetMethodID(hashtable, "keys",
                   "()Ljava/util/Enumeration;");
    const jmethodID get =
         jenv->GetMethodID(hashtable, "get",
                   "(Ljava/lang/Object;)Ljava/lang/Object;");
    if (enumeration != 0) {
         const jmethodID hasMoreElements =
         jenv->GetMethodID(enumeration,
                   "hasMoreElements", "()Z");
         const jmethodID nextElement =
         jenv->GetMethodID(enumeration,
                   "nextElement", "()Ljava/lang/Object;");
         for (jobject keyset = jenv->CallObjectMethod($input, keys);
         jenv->CallBooleanMethod(keyset, hasMoreElements) == JNI_TRUE;) {
         jstring key = (jstring)jenv->CallObjectMethod(keyset, nextElement);
         jarray value = (jarray)jenv->CallObjectMethod($input, get, key);
         jclass valueClass = jenv->GetObjectClass(value);
         jclass valueClassClass = jenv->GetObjectClass(valueClass);
         const jmethodID getName =
         jenv->GetMethodID(valueClass,
                   "getName", "()Ljava/lang/String;");
         jstring valueClassClassName =
         (jstring)jenv->CallObjectMethod(value, getName);
         const char *vccptr = jenv->GetStringUTFChars(valueClassClassName,
                                  0);
         std::cout << "vccptr is " << vccptr << std::endl;
         jenv->ReleaseStringUTFChars(valueClassClassName, vccptr);
         const char *keyptr = jenv->GetStringUTFChars(key, 0);
         std::cout << "key is " << keyptr << std::endl;
         int numElements = jenv->GetArrayLength(value);
         std::cout << "value array size is " << numElements << std::endl;
         // const char *valptr = jenv->GetStringUTFChars(value, 0);
         // $1 = CSLAddNameValue($1, keyptr, valptr);
         jenv->ReleaseStringUTFChars(key, keyptr);
         // jenv->ReleaseStringUTFChars(value, valptr);
    8<------8<------8<------8<------8<------8<------8<------8<------
    Regards
    Message was edited by:
    nicholas_yue

    You've asked the same thing before. Assuming that you've defined the function prototype correctly when you built the DLL from the VI, you should be able to call it and get the results from it. You do not need to change the return type when you build the DLL. Read the information at http://zone.ni.com/devzone/conceptd.nsf/webmain/7D6A20FE02EDBF318625690700704CF3. Even though it was written for LabVIEW 6, the section on Accessing LabVIEW 6x Arrays from Microsoft Visual C++ is still valid.

  • How can i get the all values from the Property file to Hashtable?

    how can i get the all values from the Property file to Hashtable?
    ok,consider my property file name is pro.PROPERTIES
    and it contain
    8326=sun developer
    4306=sun java developer
    3943=java developer
    how can i get the all keys & values from the pro.PROPERTIES to hashtable
    plz help guys..............

    The Properties class is already a subclass of Hashtable. So if you have a Properties object, you already have a Hashtable. So all you need to do is the first part of that:Properties props = new Properties();
    InputStream is = new FileInputStream("tivoli.properties");
    props.load(is);

  • Open and close multisim contact with LabVIEW

    Can I open and close multisim contact with labview and read the receptor estatus (p.e. lamp)?
    Thanks.
    Attachments:
    Dibujo.JPG ‏13 KB

    Hi Guddan,
    I created a RFC having a query which is taking a long time to execute. So i want to close RFC connection with portals which is via java connector(JCO) before that query and open the connction again after that query.
    I guess i will need to understand your requirement a little more in detail, as i understand you have an RFC which has a query within to fetch some data and is taking a long time to do so. In the meantime you don't want to keep the connection open?
    My question would be, Is the role of this RFC to only execute the query and fetch the data or does it do something else?
    If it does other things and these are independent of the query execution, then you can span a parallel call within the RFC to execute the query and in the meantime the RFC does the other things (or vice versa) hence reducing the overall time taken.
    If the sole purpose of this RFC is to execute the query, then you will not be able(i mean to say there is no simple and direct way of doing this) to close the connection after the Query is started and re-establish the connection after its execution, for a simple reason that - how will you know if the query has completed it's execution, so that you can establish the connection back.
    Alternate solutions, make this a two way asynchronous call, 1) You invoke the RFC asynchronously and close the connection, the RFC in turn will execute the query and transfer the data to JCO via another RFC call.
    If this needs to be a synchronous call, then you will need to optimize the query to its best.
    Regards,
    Chen

  • LabView Exe Applicatio​n file not launch Excel applicatio​n for report generation

    Dear All,
    I created one LabVIEW application file for report generation (using Excel Template).
    While I run the program in programming mode it works well and create the report file in the specified path.
    After creation of the application file(exe), it gives the correct path of where the excel template is placed. The same path is given to New Report.vi, but it gives the error 'File Not Found'.
    Tell me, is any other configuration required for generating Excel reports? (During exe application mode)
    Give me the solution.
    Thank You
    Jegan.

    Hello,
    Most likely you are encountering a problem of stripping and/or building paths.  Probably the easiest thing to do is put a couple indicators on your front panel for the path or paths you care about, build your exe, and make sure you are really using the path you'd like.  If you always put the report at some deterministic place relative to the exe (that is, even it the exe is moved, it will go with the exe and remain in the same relative path location, then you can use the Current VIs Path funtion found in the ... File I/O -> File Constants palette as a start path (where you will want to strip at least the exe name off of course).
    I think this will bring some clarity to the issue!
    Best Regards,
    JLS
    Best,
    JLS
    Sixclear

  • Error involving Report Generation Toolkit and Labview Run Time Engine

    Developed an application using LabVIEW 6.1 and LabVIEW Report Generation Toolkit for Microsoft Office 1.0.1. From there, tried to build a shared application for use with the LabVIEW Run Time Engine. The Run Time version functions properly until "New Report.vi" is called and then an error is generated, code 7, calling out "Open VI Reference in New Report.vi" could not be found. When building the application, I did include the "NI Reports Support" in the advanced installer options. The machine used for original development and application build is running Windows XP Pro and Office XP. Any suggestions??

    I am having the exact same problem but with LV 6.1 and M/S WORD 2000. It appears that the "New Report.vi" is trying to open "C:\APP.DIR\Word_Open.vi" and "C:\APP.Dir\Word_Open_Document.vi" by reference. The "OFFICE 2000.TXT" says that "_exclsub.llb and _wordsub.llb must be added as support files when building an application or a dynamic link library with the application builder." I added them as Support Files and I copied them to the "C:\TESTER\" where the TESTER.EXE is and I still get ERROR 7 in "NEW REPORT.VI" at VI OPEN REFERENCE.
    Do I need to make a "C:\TESTER\DATA\" sub-dir and put the support files there?
    I am building on MY COMPUTER on F: Drive on a network and transporting files to the real Tester.
    I displayed my App.Property of APP.DI
    R at start up and it is C:\TESTER\ ! How would my application know that "Word_Open.vi" and "Word_Open_Document.vi" are actually inside the _wordsub.llb?
    Any ideas ?
    Greg Klocek

  • Why do I get "The exception Privileged instruction (0xc0000096) occured in the application" error message when exiting LabVIEW 6.1?

    I have created a vi that uses the LV-GPIB and database connectivity vis. The program runs fine and it ends execution by running the "Close Database Connection.vi".
    After closing out my front panel windows and exiting LabVIEW 6.1, I get an error dialog box that reads the message "The exception Privileged instruction (0xc0000096) occured in the application". What does this error mean and how do I resolve it?
    Thanks,
    Taf

    Hi Taf,
    Given the broad scope of your application, it may be best to try and isolate the problem down by taking out parts of your application and simplifying it down as much as possible until you can get a consistent version that throws this exception. I would first try to take out either the GPIB or database connectivity portions of the application to narrow down our problem. This error generally occurs when accessing DLLs and external applications, so I wouldn't be surprised if it's the GPIB or database. Let's try to see exactly which one it is and then we can dig deeper into that part of the code. Thanks for your cooperation!
    Jeremy L.
    National Instruments
    Jeremy L.
    National Instruments

  • How to run downloaded drivers on Fresh Install of Labview 6.1 on a Mac G4 OS 9

    I have just completed a fresh install of Labview 6.1 on an Macintosh G4 running OS9. I can run it and it seems to work just fine. I downloaded some drivers for an oscilloscope (HP 546XX) to run with an HP 54603b. When I installed, I went to open the 'Get Started.VI' I get a freeze and have to force quit out of labview. I am not sure how to resolve this. I am pretty sure that it is independent of the device, since I can open the vi's at least on another computer with no hardware attached. So I guess to boil my situation down. I have 2 questions:
    -How do I get a fresh install on a mac G4 OS 9 to run downloaded drivers from the internet
    -How do I ensure that I have the hardware configured on
    a macintosh to run properly.
    I really have little experience with macs so I am not really sure what my options are or what could be the problem so any assistance would be much appreciated.

    Hmmm. I wonder if NI-VISA isn't installed correctly on this machine.
    When LabVIEW loads a VI that uses a VISA name control on the front panel, it queries VISA for the installed devices. Sometimes this takes a few seconds, but maybe in your case, something has been corrupted and it's hanging.
    To try to narrow this down, first run the separate program "VISAConfig". This should list your devices. If this works, this means it's pretty likely that VISA is installed correctly.
    Next, run LabVIEW. On an empty front panel, select the "Controls->I/O->VISA Resource Name" and place it on the front panel. When you click on the arrow on this control, you should see a list of your devices. If this works, then that indicates that LabVIEW is successfully talking
    to the VISA software.
    If both of those succeeded, then we have to take a closer look at this particular instrument driver. Can you drop other VIs (say, Initialize or Close) without hanging?
    If either of the first two steps fail, I'd suggest that you reinstall the VISA software. You may want to try the latest version of NI-VISA (from ni.com), but first confirm that it supports LabVIEW 6.1.
    I hope this helps.
    Brian

  • Convert PXIe-8135 controller to dual-boot Windows 7 and LabVIEW RT

    Hello. I have a PXIe-8135 controller that originally was just running Windows 7. We are trying to convert it to a dual boot system to also run LabView Real Time. (There is host computer that will run LabVIEW 2014 with the RT module, and the controller will become a target).
    I have created a FAT32 partition on the hard drive of the controller. Now, I’m trying to install the real-time OS with a USB flash drive made using the MAX utility, but I cannot boot using the USB drive for some reason. I keep getting the message “waiting for USB device to initialize”.  
    In BIOS, legacy USB support is [ENABLED] and boot configuration is set to [Windows/other OS]. I’ve tried removing the drive, waiting, and reinserting. I’ve tried two different USB drives (both 8 GB, different brands).
    I’m not sure what to do next. Apart from the USB boot issue, is converting the PXIe-8135 even possible?  I read about SATA/PATA hard drive issues with older controllers, but I don't know about this one.
    Thanks, in advance, for your help!
    -Jeff
    Solved!
    Go to Solution.

    Per Siana's licensing comment, more information on purchasing a deployment license if you do not have one for this target can be found here.
    The RT Utility USB key is used to set up non-NI hardware with LabVIEW Real-Time, but you should not need it in this situation to convert to dual-boot (*). Try this:
    1. Since you already have a FAT32 partion created, go into BIOS setup and change to booting 'LabVIEW RT'.
    2. The system will attempt to boot LabVIEW RT, see that the partition is empty, and switch over into LabVIEW RT Safe Mode. (this safemode is built into the firmware, which is why you don't really need the USB key).
    3. The system should come up correctly and be detectable from MAX, and you can proceed with installing software.
    4. To switch back to Windows, go back to BIOS setup and choose 'Windows/Other OS'
    (*) One area where the USB key is helpful on a dual boot system is with formatting the disk. If you want to convert from FAT32 to Reliance on the partition designated for LabVIEW RT, the USB key lets you attempt to format a single parition and leave the rest of the disk untouched. If you format from MAX, the standard behavior is to format only one RT partition if found, but if not found, it will format the entire disk.  Formatting from MAX on a dual boot system is consequently riskier and you could lose your Windows partition.

  • Some fonts are not shown correctly in LabVIEW 2012

    I found a bug related with fonts in LabVIEW2012 f3 KR.
    - When I select NI7SEG in font selection dialog, right font is not shown in the example box.
    - Draw text at point.vi shows same problem for some fonts while other fonts are working.
    I reported it to Korean NI. As far as I know, this was not reported in previous versions and I couldn't find any related documents in Google. 
    So, here I would like to know whether it is related with only Korean version. Please let me know if English version is OK. 
    * OS: Windows 7 32bit KR

    Just now, I installed LabVIEW 2012 f3 (32-bit, English) and checked for the issue. But the font(NI7SEG) was not shown properly in VI either.
    - Both of Korea and English version of LabVIEW 2012 on Win 7 Korea OS shows wrong results. It is same on 64-bit OS.
    - LabVIEW 2010 but on same PC shows correct fonts.
    Is there a limit of number of fonts in LabVIEW? There are more than 100 fonts are shown in the "Selection Font" dialog and I can divide them into 3 groups by sequential order. I find that all fonts in the 3rd group are not applied correctly.
    (1st group)
    Arial Unicode MS...
    Bookshelf Symbol 3....
    Windings 3
    (2nd group)
    @Arial Unicode MS...
    @Terminal
    (3rd group)
    Arial...
    Consolas...
    Courier...  
    Licida Console... 
    NI7SEG...
    Verdana

  • Comunicação entre Labview e ANSI's.

    Estou definindo Projeto de Graduação e estou interessado em trabalhar na integração entre Labview e ANSI's na análise de elementos finitos. Gostaria de saber se alguém possui alguma informação sobre o tema.

    Voce poderia ser mais especifico com relacao a informacao que voce esta precisando?
    Atenciosamente
    Filipe A.
    Applications Engineer
    National Instruments

  • Implementar protocolo de comunicação serial UART no LabVIEW

    Boa Tarde,
    Estou querendo implementar o protocolo de comunicação serial UART no LabVIEW.
    A descrição do projeto é mais ou menos essa:
    - Uma Interface no LabVIEW para receber o dados enviados pela serial UART;
    - Uma DAQ NI USB-6212 irá receber o dado por um pino digital ou analógico (a princípio estou usando um pino analógico);
    - Um microcontrolador que envia dados através da serial UART;
    - Sistema operacional Windows 7;
    Estou querendo implementar o protocolo de comunicação pelos motivos:
    - Usei o Visa da comunicação serial e um cabo USB-Serial genérico, mas não consegui taxas de recepção rápidas como eu preciso, quando eu tentava transmitir dados de forma mais rápida, eles chegavam corrompidos;
    - O exemplos que encontrei do protocolo implementado usam o LabVIEW FPGA, e pelo que eu li minha placa de aquisição (NI USB-6212) não suporta FPGA.
    Tem algum exemplo ou sugestão de como devo proceder.
    Desde já agradeço.
    Atenciosamente,
    Fernando Esquírio Torres

    Good morning,  Fernando,
    Here are some links to help in its implementation. Any questions please contact us.
    What Is the Basic Architecture for Serial Communication?
    http://digital.ni.com/public.nsf/allkb/E0D95CB9249FB8CF86256C68007B1F81?OpenDocument
    Can I Do 9-bit Serial Communication Instead of 7 or 8 bits?
    http://digital.ni.com/public.nsf/allkb/3BDC7FF03541F772862564990057F919?OpenDocument
    9-Bit Serial Writing in LabVIEW
    http://digital.ni.com/public.nsf/allkb/E0D95CB9249FB8CF86256C68007B1F81?OpenDocument
    Serial Communication Starting Point
    http://zone.ni.com/devzone/cda/tut/p/id/4049
    Serial Communication - Basic Serial Write and Read
    http://zone.ni.com/devzone/cda/epd/p/id/2669
    Enviar ou Receber Dados Binários / Hexadecimais Utilizando NI-VISA no LabVIEW
     http://digital.ni.com/public.nsf/allkb/33C1056D66078118862577450061E683?OpenDocument
    Sending and receiving serial commands using VISA
    http://zone.ni.com/devzone/cda/epd/p/id/2423
    Sincerely,
    Mauro Vera
    Applications Engineer
    National Instruments

  • Como controlar um motor de passo com labview?

    Olá, espero estar perguntando na categoria correta.
    Sou iniciante em LabVIEW e preciso construir um programa que controle um motor de passo conforme digito quantos passos ele deve andar. Daí gostaria de uma luz sobre como fazer isso.
    Na verdade, o plano total é, para cada quantidade de passos, verificar a posição do equipamento (através de um outro software conectado ao LabVIEW) e, assim, traçar gráficos passos x posição, mas isso fica para depois; primeiro gostaria de um tutorial, alguma coisa que me ajudasse a controlar o motor.

    Bom dia,
    Esses dois termos são um pouco parecidos com o dilema dos termos sensores e transdutores, isso porque as pessoas às vezes acabam usando ambos como sinônimos e isso gera uma grande discussão sobre as pequenas diferenças de significado. No entanto, se você trocar a palavra sensor por transdutor ou vice-versa, muito provavelmente você será entendido.
    O significado exato do termo controlador ou driver vai depender muito do contexto que você o está usando, por exemplo, se eu estou falando de controlador no contexto sistemas de controle, ele provavelmente entendido como "compensador" (exemplo um compensador PI, PID, entre outros). No entanto, em algumas áreas os termos podem se confundir, como é o caso de quando estamos falando sobre um equipamento que aciona algum motor ou equipamento. A pequena diferença nesse último contexto é que quando se fala em driver, entendo como um dispositivo que tem além de um compensador (seja ele de malha fechado ou não), tem uma eletrônica de potência para o acionamento do dispositivo.
    Espero ter ajudado a esclarecer um pouco mais sua dúvida.
    Atenciosamente,
    Plínio Costa
    Application Engineer
    National Instruments Brazil

  • Seeking Labview Developer in Nothern Illinois

    LabVIEW Developer
    Company: Tecnova
    Description
    Tecnova is a National Instruments Alliance Member with a growing LabVIEW Department.
    Come join our expert team!
    We are looking for a self motivated LabVIEW Developer who will own their projects, complete tasks on schedule and on budget while building a relationship with the customer.
    Must have broad experience in the following areas:
    * Program and document robust LabVIEW applications which include user Interface, database, test sequencing, instrument communication, data acquisition and PID control
    * Design and execute software test plans
    * Prepare end user documentation and help file content
    * Develop automated test, data acquisition, and control systems
    * Contribute to multiple projects, and help develop pushing-the-envelope technology
    * National Instruments hardware (PXI, cRIO, Field Point, etc.) experience desired
    * Contribute to system design and specifications
    * Involves extensive customer contact and moderate travel within Chicagoland area
    * Must be intelligent, creative, and self-motivated
    Requirements
    * BS in Computer Sciences, Physical Sciences or Engineering
    * 3 years of practical experience in LabVIEW programming
    * High comfort level with scientific and technical terminology and the willingness to learn
    * Test and measurement experience
    * Must be self directed and able to meet objectives as directed
    * The ability to effectively work independently in a fast paced environment, with experience adapting to changing requirements and to rapidly absorb new concepts and apply them effectively is essential.
    * You must also have good communications skills. Presentation and communication skills, as well as being able to work in a team, are crucial.
    Preference will be given to applicants with the following skills:
    * Certified LabVIEW Associate Developer (or better)
    * National Instruments hardware (PXI, cRIO, Field Point, etc.)
    * Communication protocol (RS-232, GPIB, TCP I/P, USB, Bluetooth, etc.)
    * Motion control
    * Vision control
    * PLC (Allen-Bradley, Honeywell, Modicon, Siemens, etc.)
    * Schematic capture (OrCAD, AutoCAD, etc.)
    * Database connectivity
    * Application and instrument driver layers
    * Experience with National Instruments PC based DAQ devices
    * Experience with various sensors and transducer signal conditioning (microphones, accelerometers, temperature sensors, etc.)
    * Actively involved in the LabVIEW community
    Additional Requirements:
    * Local Candidates Only
    * Location: Gurnee, Illinois (Northern Chicago Suburb)
    * No 3rd party resumes accepted. Principals only, no agencies or contractors
    * Must be a Citizen or Permanent US resident, authorized to work in this country for any employer
    * Because of the immediacy of this position, we are unable to sponsor people at this time.
    About Tecnova:
    Tecnova is a leading electronic product development and engineering firm that provides custom electronic hardware, mechanical, and software solutions. We offer exciting professional challenges, variety, and plenty of opportunity to roll up your sleeves and make a difference. Located far north of Chicago in Gurnee, Illinois, we offer excellent salary/benefit package with 401K. We are looking for innovative, creative, results-oriented people that desire a wide variety of projects in a challenging, fast-paced environment.
    For more information about Tecnova see our website at www.tecnova.com.
    Contacting Tecnova:
    For immediate consideration, please send resumes to [email protected]

    I am writing to put myself forward. As you can see from my CV, I have many skills pertinent to this role gained for less than 1 year as a successful Research Assistant. I am having very good knowledge in mathematics.I wish to move into this sector because it is a fast-moving environment and I am also interested in new technology.  The skills that I have and believe to be highly relevant to this job and your company which include: Analytical thinking, Self motivated, Fast learner and staying calm under pressure. Additionally, I have undertaken CLAD course and qualified with 80% and believe my unique blend of skills can offer a great deal.I am confident that I possess the attributes you’re looking for and that my experiences gained in Research Assistant would provide invaluable insight and capability to your organization. I would welcome the opportunity to discuss my application in person.
    Attachments:
    Resume.doc ‏44 KB

  • Unable to reference items in a hashtable

    HI,
    I'm having a bad PowerShell day today!
    My sample script to read in a text file and put the data into a hash table works just fine:
    $InputFile=Get-Content C:\Out\ktf06011.REQ
    $CurrentUserHashTable = @{}
    ForEach ($Line in $InputFile)
    $Data=$Line.Split("=")
    $Label=$Data[0].Trim()
    $Label=$Label.Insert(($Label.Length),"`"")
    $Label=$Label.Insert(0,"`"")
    $Value=$Data[1].Trim()
    $Value=$Value.Insert(($Value.Length),"`"")
    $Value=$Value.Insert(0,"`"")
    $CurrentUserHashTable.Add($Label,$Value)
    $CurrentUserHashTable 
    However, when I use this within a script that uses a file system watcher event to discover the presence of the text file, I cannot get anything from the hash table. I can see my variables being created, ready to pass on to the .add statement. I have found
    a workaround for now - not using a hash table - but would love to know why I see this behaviour and suggestions for getting at the data.
    Here is the code that I'm having trouble with.
    $folder = 'c:\In'
    $OutFolder = 'c:\Out'
    $filter = '*.*'
    $CurrentUserHashTable = $NULL
    $FileSystemWatcher = New-Object IO.FileSystemWatcher $folder, $filter -Property @{IncludeSubdirectories = $false;NotifyFilter = [IO.NotifyFilters]'FileName, LastWrite'}
    Register-ObjectEvent $FileSystemWatcher Created -SourceIdentifier FileCreated -Action {
    $name = $Event.SourceEventArgs.Name
    $InputFile=Get-Content $folder\$name
    ForEach ($Line in $InputFile)
    #Write-Host $Line
    $CurrentUserHashTable = @{}
    $Data=$Line.Split("=")
    #Write-Host "Data: " $Data
    $Label=$Data[0].Trim()
    $Label=$Label.Insert(($Label.Length),"`"")
    $Label=$Label.Insert(0,"`"")
    #Write-Host "Label: " $Label
    $Value=$Data[1].Trim()
    $Value=$Value.Insert(($Value.Length),"`"")
    $Value=$Value.Insert(0,"`"")
    #Write-Host "Value: " $Value
    $CurrentUserHashTable.Add($Label,$Value)
    $CurrentUserHashTable
    Move-Item $folder\$name $OutFolder -Force
    #Label: "ID"
    #Value: "abc00001"
    #Label: "PID"
    #Value: "00001"
    #Label: "Title"
    #Value: "Mr"
    #Label: "Initials"
    #Value: "XY"
    #Label: "Forename"
    #Value: "Mickey"
    #Label: "Surname"
    #Value: "Mouse"
    #Label: "Siteabbrev"
    #Value: "UK"
    #Label: "Status"
    #Value: "STAFF"
    #Label: "BUabbrev"
    #Value: "NOBU"
    #Label: "Department"
    #Value: "Finance"
    Note the commented bits at the bottom are the output of
    Write-Host "Value: " $Value
     and
    Write-Host "Label: " $Label
    Also, if the following are placed within the loop, I see all data items being returned, so I know that they are added to the hash table. If they are added outside the loop, I just get the final entry "Department"
    Write-Host "Keys:" $CurrentUserHashTable.Keys
    Write-Host "Values:" $CurrentUserHashTable.Values
    Many thanks,
    Jon

    Rhys,
    Thanks that was so obvious, I couldn't see it!
    I knew the answer would be simple.
    Made the amendment to my script and can now get at the data in the hashtable, via (e.g.)
    $Department=$CurrentUserHashTable.'"Department"'
    Thanks again.
    Jon

Maybe you are looking for

  • 2.6.18-emission1: Pathological Euphoria

    E-Mission Sources is based on the Lockless Pagecache by Nick Piggin, GenPatches, and CK. The main goal of this patchset is to stay updated with gentoo-sources releases, offer latest features, decrease latencies, decrease overhead, and improve interac

  • Smartforms Page Numbers problem

    Hi All, Can any one suggest me in this issue i need continue to next page<PAGE NO> in the last of smartfoprm pages if there is more than one page for that what to do Thanks Surendra

  • Can't transfer address book or e-mail content from failed G5 iMac to new 21.5" iMac

    A friend's G5 iMac (running OS X 10.5.8 Snow Leopard) failed due to logic board problems. G5 hard drive is okay. A brand new 21.5" 2.7 GHz Intel Core i5 iMac (with OS X 10.9.2 installed) was bought to replace the G5. All G5 data (e-mail, documents, e

  • Trigger workflow by sending XML-Message from a servlet

    Hi Developers, I am currently evaluating WLPI and followed the tutorial provided by BEA. Now I try to create a Workflow which is triggered by an XML-Message that is sent by a servlet to WLPIs JMS. The 'Programming Client Applications' gave me a hint

  • Laptop has problem with Hard Drive need to send back

    Hi There, I brought a Lenovo Essential B50-70 Laptop from Ebuyer though when I received it found the hard drive was faulty, Windows 8 takes forever to boot up and when it does go in programs take ages also. I rang up Ebuyer and they put me through to