read/write data

Hello

I read the array of strings in a txt file and now I want to compare the first character of the each element of this array and read the corresponding line. How can I do? I have attached a few photos so that you can easily understand.

Hi, I assume you're looking several steps search results.

If not for replace the loop with while loop with the criterion 'stop' is ' I => table size "or search criteria gets any game

Tags: NI Software

Similar Questions

  • Satellite P500/01R reads the data, but cannot write data on CD files

    I recently bought a laptop Satellite P500/01R. I am able to read a data CD, but can't write data on CD files. The CD is read/write.

    Any ideas?

    Hello

    Have you tried different burning software?
    I m using Nero and in my opinion one of the apps better combustion.
    Here, I can choose between CD, DVD, DL or Blueray (only possible if the CD/DVD drive also supports this).

    Have you also checked diffΘrents CDs from different manufacturers?
    You should do this since not all disks are 100% compatible.
    I had several problems with different CD or DVD in most of the cases it was a compatibility issue, I tried TDK and this kind of drive is compatible with my CD/DVD drive
    I m using the standard of R.

  • global variable functional to read and write data from and to the parallel loops

    Hello!

    Here is the following situation: I have 3 parallel while loops. I have the fire at the same time. The first loop reads the data from GPIB instruments. Second readers PID powered analog output card (software waveform static timed, cc. Update 3 seconds interval) with DAQmx features. The third argument stores the data in the case of certain conditions to the PDM file.

    I create a functional global variable (FGV) with write and read options containing the measured data (30 double CC in cluster). So when I get a new reading of the GPIB loop, I put the new values in the FGV.

    In parallel loops, I read the FGV when necessary. I know that, I just create a race condition, because when one of the loops reads or writes data in the FGV, no other loops can access, while they hold their race until the loop of winner completed his reading or writing on it.

    In my case, it is not a problem of losing data measured, and also a few short drapes in some loops are okey. (data measured, including the temperature values, used in the loop of PID and the loop to save file, the system also has constants for a significant period, is not a problem if the PID loop reads sometimes on values previous to the FGV in case if he won the race)

    What is a "barbarian way" to make such a code? (later, I want to give a good GUI to my code, so probably I would have to use some sort of event management,...)

    If you recommend something more elegant, please give me some links where I can learn more.

    I started to read and learn to try to expand my little knowledge in LabView, but to me, it seems I can find examples really pro and documents (http://expressionflow.com/2007/10/01/labview-queued-state-machine-architecture/ , http://forums.ni.com/t5/LabVIEW/Community-Nugget-2009-03-13-An-Event-based-messageing-framework/m-p/... ) and really simple, but not in the "middle range". This forum and other sources of NEITHER are really good, but I want to swim in a huge "info-ocean", without guidance...

    I'm after course 1 Core and Core 2, do you know that some free educational material that is based on these? (to say something 'intermediary'...)

    Thank you very much!

    I would use queues instead of a FGV in this particular case.

    A driving force that would provide a signal saying that the data is ready, you can change your FGV readme...  And maybe have an array of clusters to hold values more waiting to be read, etc...  Things get complicated...

    A queue however will do nicely.  You may have an understanding of producer/consumer.  You will need to do maybe not this 3rd loop.  If install you a state machine, which has (among other States): wait for the data (that is where the queue is read), writing to a file, disk PID.

    Your state of inactivity would be the "waiting for data".

    The PID is dependent on the data?  Otherwise it must operate its own, and Yes, you may have a loop for it.  Should run at a different rate from the loop reading data, you may have a different queue or other means for transmitting data to this loop.

    Another tip would be to define the State of PID as the default state and check for new data at regular intervals, thus reducing to 2 loops (producer / consumer).  The new data would be shared on the wires using a shift register.

    There are many tricks.  However, I would not recommend using a basic FGV as your solution.  An Action Engine, would be okay if it includes a mechanism to flag what data has been read (ie index, etc) or once the data has been read, it is deleted from the AE. 

    There are many ways to implement a solution, you just have to pick the right one that will avoid loosing data.

  • CD rom only reads or writes data

    After several days to burn backup discs, my computer cd rom drive to read data from the drive.

    Hello

    You have disk problems as the CD/DVD is actually 4 discs in 1 case (CD & DVD burning and)
    Playback of CD and DVD). So it is not unusual for parts from 1 or 2 to not work so that others do
    correctly.

    Burning at low speed, or by using the master could help. A CD/DVD cleaner might help.

    Brand of the CD or DVD drive can also be the problem. Low quality (cheap brands) are always problematic.

    CD/DVDs have a tolerance + - and your can read/write on the edge outside these discs
    tolerances. They may be delivered, but it is generally more economical to replace the disk.

    Several good info here:
    http://Club.myce.com/

    CD/DVD units
    http://www.myce.com/storage/

    Notes on the troubleshooting and repair of readers of compact disks and CD-ROM Drives
    http://www.repairfaq.org/repair/F_cdfaq7.html#CDFAQ_014

    ===========================================

    This troubleshooting could not help if there is alignment and/or wear issues however it
    a shot.

    Step 1: Please do all the same underneath if you did some before as is often total
    a process that solves the problem.

    Try this - Panel - Device Manager - CD/DVD - double click on the device - driver tab.
    Click on update drivers (this will probably do nothing) - RIGHT click ON the drive - uninstall.
    RESTART this will refresh the default driver stack. Even if the reader does not appear to continue
    below.

    Then, work your way through these - don't forget the drive might be bad, could be a coward
    cable or slight corrosion on the contacts (usually for a laptop) and other issues.

    Your CD or DVD drive is missing or is not recognized by Windows or other programs
    http://support.microsoft.com/kb/314060 - a Mr Fixit

    Try this fix manually if the Fixit 314060 does not work
    http://www.pchell.com/hardware/cd_drive_error_code_39.shtml

    Your CD or DVD drive is missing or is not recognized by Windows or other programs-
    a Mr Fixit
    http://support.Microsoft.com/kb/982116

    The CD drive or the DVD drive does not work as expected on a computer that you upgraded to
    for Windows Vista
    http://support.Microsoft.com/kb/929461

    When you insert a CD or a DVD, Windows Vista may not recognize the disc
    http://support.Microsoft.com/kb/939052

    Your CD or DVD drive cannot read or write media - A Mr Fixit
    http://support.Microsoft.com/GP/cd_dvd_drive_problems

    CD/DVD drive does not appear in Windows Vista, or you receive this error in Windows
    Vista installation after booting from the DVD (AHCI)
    http://support.Microsoft.com/kb/952951
    Drive CD - R or CD - RW Drive is not recognized as a recordable device
    http://support.Microsoft.com/kb/316529/

    Hardware devices not detected or not working - A Mr Fixit
    http://support.Microsoft.com/GP/hardware_device_problems

    Another possibility is that the cables are loose. Remove ALL power, then make sure that the cables in both
    ends. Remove and replace, do not just tight. For laptops, you can often clean power and
    contacts data with a pencil eraser.

    Some DVD players do not use the Windows default drivers so check with the manufacturer of system and
    manufacturer of device to see if there is a firmware or drivers for your drive if necessary.

    ===============================

    Step 2: You have disc problems as the CD/DVD is actually 4 discs in 1 case (CD & DVD
    Burn and CD and DVD read). So it is not unusual for 1 or 2 operational so that other parts
    do it right.

    Did you follow the Troubleshooting Guide for the reader who still does not work? There are
    the entries in registry that the troubleshooter does not solve and those who "might" be the cause.

    Check with your Maker system and a device for the two possible firmware updates and
    the correct registry entries for your car.

    Here are the keys that I of course are those in question - for the subkeys of the CD/DVD drive
    as there will be other subkeys in these keys. Do not forget to ask specific keys involved as well as
    the parameters.

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\IDE

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Hardware Profiles\0001\System\CurrentControlSet\Enum\IDE

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\ {4D36E965-E325-11CE-BFC1-08002BE10318}

    -----------------------------------------------------------------------

    You can probably find more info here and maybe even the exact registry for your CD/DVD settings
    drive from someone with the same model.

    Forums - a lot of expert real help
    http://Club.myce.com/

    CD/DVD units
    http://www.myce.com/storage/

    Use DevManView to locate the CD/DVD in the registry (be careful and do a prior Restore Point)
    nothing change) - find the DevManView device and then make a right click on it free in RegEdit.

    DevManView - free - an alternative to the standard Windows Device Manager, which displays all the
    devices and their properties in flat table, instead of the tree viewer
    http://www.NirSoft.NET/utils/device_manager_view.html

    I hope this helps.

  • Read or write data in excel

    Hello

    I wanted to know if it is possible to read or write data in excel programmatically? And if possible how to do this?

    I searched a lot on this subject. All forums say how Sung some software. What I wanted to do is, I want to create an application in which I might be able to write data to excel and also read data from excel. Specifically, I can do Java using some jxl. Is there something similar to that?

    Please help me on this since it is a very urgent need for my client.

    Thanks in advance.

    There is no API to write files to Excel on the BB, and I think you will find that this jxl use J2SE functionality that is not supported on the BB, it will be difficult for this port.

    If you plan to be able to put an Excel worksheet on the SD card on the BlackBerry and directly using these data, there still, sorry this is not supported.

    I would investigate export Excel data to SQL and then using SQL on the BlackBerry.

  • Tecra A8 DVD don't read/write DVD-R 1-16 x.

    Using Sonic Record DLA, Tecra A8 DVD don't read/write DVD-R 1-16 x. Ok work on DVD - R 1-8 x and CD DVD - R 1-16 x has tested successfully on the two recent Toshiba Satellite Pro and HP Office. Have updated the Bios, software DVD-RAM and Sonic DLA.

    Hey,.

    What exactly do you mean? This means that you can t burn DVD-r with 16 x speed?
    In this case, you should check the specifications of your CD/DVD drive. Not all models support this speed of combustion. In addition, I recommend using 8 x only, he speed will give you a better quality of the burned data/average.

    You must also use different types of media. I believe that your other computers have different drives in order to test different mediums. I have a good experience with Verbatim DVD-R.

  • Speed USB StorE Art 320gig & read/write question

    Hi all

    I have a HARD 321gig store that has developed a strange problem, first thing I noticed when I was adaptation files and it took much longer than then usual, so I checked the speed drive using HD Tune and every time I read or write data on the disc the speed drops to zero every few seconds This was not the case when I bought the disc. I tried to reformat the drive (Fat32 and NTFS) and the same problem occurs.

    It's a little more than a month and it just started happening about a week ago. I can't think of any changes I made that can have an impact on the HARD drive like this. I am using the supplied USB cable (I also tried others), I tried different USB ports as and other computers, but not luck.

    Any advice would be greatly appreciated

    Thanks in advance

    Hello

    It is not easy to say what the problem is here. All that you have done to test the functionality of the HARD drive is OK and I think I'll try the same.

    I don't really know what else you can do about it except to request a replacement. I recommend you contact Toshiba warranty service.
    Your product is under warranty and you can ask your defective product online.

    Please see the tracking page:
    http://EU.computers.Toshiba-Europe.com > devices & Services > PC Options & Accessories > Support Options & accessories PC > help with warranty > verify what is written under warrant service, especially third stepp.

  • Equium A60 - DVD player does not read the data disks

    Hello

    I'm having a problem with my DVD drive on my laptop Toshiba Equium A60. The DVD drive (Pioneer DVD - RW DVR-K13A) will play store bought movies etc. without problem. He will also read a blank DVD when you put it in the drive, but once the information/data are on the disc, it won t detect the drive.

    I'm not really good with computer so any help would be grateful. The computer used for any play he stopped just do a few months back.

    Many thanks, Phil

    Hello Phil

    It is not easy to find explanations for these issues. What you can try is to create own data CD and check if the drive can read. I recommend buying a blank DVD-R from TDK. Over the past 7 years I never had no problem read/write TDK media.

    Media that cannot be read properly? Is - this DVD-R, DVD - RW, DVD + R or a DVD + RW?
    Please give us more information.

  • Qosmio X 500 does not write data to any CD

    I have a Qosmio X 500 with windows 7 (64-bit) home about this, my CD-Rom used to work fine, now it reads and serious DVD and blue-ray, but it will not read or burn CDs.

    I have no more or less than the registry filter.
    How can I solve this problem?

    Hello

    Have you tried different CDs from different manufacturers?
    Try the CD R TDK.
    I use this kind of CD and never had any problems, but had problems to write data to the other CD.

    In addition, you can try to clean the laser lens you can use a piece of hydrophilic cotton and a very small little alcohol which should be good enough.

    By the way: fire what app do you use? In my opinion Nero is great software, one of the best software in this segment.

  • Control of read/write of FPGA Interface

    I need help on control of FPGA read/write Interface. I would like to connect data TCP Read (String) directly to VI FPGA Read, but the entrance is an FXP... How can I do this?

    Then change your FPGA control to be a byte (U8).  On the side of your host, use the array of strings of bytes, then Index Array to get the specific byte you want to write on the FPGA.

  • Write data to text file generates the error

    Hi all

    I need to write data to a file using TestStand and I configired the entrance and outside like below, but I get the error message like ' an error occurred 'Write' calling in 'ITextStream' of 'Microsoft Scripting Runtime' [error Code:-2146828234].

    I followed the same procedure for reading text that works very well for me.

    Hope others might have faced the problem / or I do something wrong.

    Do what is necessary.

    Found problem while opening a file I used IO Mode ForReading instead of ForWriting.

    Unnecessarily the thread created, but then hope this can help someone later when they deal with a particular issue.

  • How to read/write tdms 2.0 files with the TDM C DLL?

    Hello

    How to read/write tdms 2.0 files with the TDM C DLL?

    How consequently the datas in interlaced with the TDM C DLL mode?

    Thank you

    Confirmation: TDM C DLL always wrote the file in TDMS version 2.0.

  • How to add more variables to a read/write control?

    See how the read/write control is connected to global variables? I want to add more variables, I created the globals (some are listed in the table above), but as you can see that they are not available in the read/write control. How can I add them? I also tried to create a new read/write control, but as you can see that didn't help.

    Any help would be appreciated.

    Hi count3r5tr1ke,

    It seems that you are referencing a particular bitfile in open FPGA reference. I think that even when you save your FPGA VI, VI real time still referencing an older bitfile. Have you tried re - compile and referring to the new bitfile once finished compiling? A sure way to make sure that you have the most up-to-date bitfile is to check the VI option when you right-click on the FPGA Open reference and select Configure the reference open FPGA. When this option is checked, if you make changes to the FPGA code, it will force you to re - compile the FPGA VI before you reference it on the real-time side.

    Best regards,

  • Visa series read write

    Hello..

    I have no problem with reading series. I want to playback multiple visa series... Fist read I want to read the data of 5x8bit uC then if visa data read isnot "NOT" I'm going to send data to the CPU as the character ' end then read data from uC to new but is leght data 2x8bit data...

    Please, help me...

    This is the number of bytes you want to read. You already said you first want to read 5 bytes. If you use VISA set up the Serial Port and the stop character allow to true, you can set a number of high bytes and playback will end when the stop character is detected. The character of default endpoint is a line break. If you set it to false, you can use the bytes VISA to the Serial Port to determine the number of bytes in the buffer is and read this number. This makes the basic example.

    Did you do any debugging serial communication base? I suggest that you use a program like Hyperterminal/Procomm/Putty/.etc before trying to write your own program. It is also difficult to give detailed advice without knowing how you have set the serial communication of the microphone.

  • Try to write data to the file, but error 200279

    I have problems when writing data to a file. 10 seconds in the recording process, I get the error 200279. I did some research on the subject, but I am unable to corect my code. I think I want to increase the size of the buffer, but he prefers, I suppose, to read the data more frequently. The way that I save my file is, before starting the VI, I attribute a location and name of the file (e.g. data.csv). The date and time is added at the end of the actual when file the I start to record the data (e.g. data_07-26 - 13_122615.csv). If the file does not exist, it creates a new file, and then adds the data of this file after each iteration of the loop. The reason why I did this way was so I don't have to worry about running out of memory, but apparently my code is wrong.

    I will include a copy of the faulty section of my code. Any help would be greatly appreciated.

    Thank you.

    Your problem is that the writing on the disk is slow.  It is pretty slow so it causes your DAQ buffer overflow and cause error and loss of data.  What you need to do is to implement a producer/consumer.  This will put the data acquisition and recording on the disc in separate loops.  This will allow data acquisition work at speed, that he needs to deal with incoming samples and writing on disk can run at all what pace, he can.  You send data from data acquisition to the loop of logging using a queue.

    You can also think about changing how you write to the file.  VI is constantly open and close the file, which is a very slow process if you do it inside a loop.

Maybe you are looking for