Add DAQmy Read data (analog 1-d NChan NSamp Wfm) to the shift register

I have problems when you try to add Reading of DAQmy (analog 1 Wfm NChan NSamp d) data to the registry to offset inside the structure of cases the timeout event. DAQmy Read data 1 d table 3 waveforms (I use 3 channels). I tried with build table (also with additional and for loop, to generate the data for each channel separately), but without success. Suggestions, ideas?

As I am having some problems attach file .vi, I posted a link where to get the files zip package:

https://DL.dropboxusercontent.com/u/12580896/vibration_meas_V7.zip


Tags: NI Software

Similar Questions

  • Read data from table of $ E and insert in the staging table

    Hi all

    I'm new on ODI. I need your help to understand how to read data from a table ' E$ "and insert in an intermediate table.

    Scenario:

    The name of two columns, in a flat file, the employee and the employee id must be loaded into a data EMPstore +. A check constraint is added so that the data with the employee names in capital letters only to load in the data store. Check the command is set to the static movement . Right-click on the data store, select control , then check. The lines that have violated the check constraint are kept in E$ _EMP+ table.

    Problem:

    Problem is I want to read the data in the table E$ _EMP+ and transform in capital letters in the name of the employee and move the corrected data of E$ _EMP+ EMP+. Please advise me on how to automatically manage the 'soft' exceptions in ODI.

    Thank you

    If I understand, you want to change the columns in the tables of $ E and then load into the target.

    Now, if you notice how ODI recycles the error, there is an incremental update to the target using the E table $ after he filled the I$ table.

    I think you can do the same thing by creating an interface using the table of $ E as source and implement the business logic in this interface to fill the target.

  • How to read data from a worksheet to a chart in the form of wave at intervals to simulate real-time data

    Hi I have measured data using a SELF-DIAGNOSIS device and that you have downloaded the log files as a .csv I have attatched below.  I'm trying to read the 7th column of data (RPM) and display it on a waveform graph, read line-by-line to simulate driving real-time data. The interval between readings, I'm trying to achieve is 500 Ms because it is the time interval of readings on the worksheet. I'm finishing the two loops when rpm is equal to zero, as happens when the car is off. I have attatched the relevant section of my program below. Any suggestions would be greatly appreciated.

    Thank you

    Michael

    There are two errors in your block diagram.  First of all, as you read the entire table 2D in all at once (which is fine), you make a clumsy (pardon my language) job to make a line of programming.  Once you take the first line of headers, you have the ideal substrate for a loop, which is made of elements of an array (lines) process, one at a time, using its tunnel of indexation.

    The second mistake is to forget data flow.  The loop, I mentioned, or the While loop you use, produced one at a time and points it at 2 Hz thanks to your expectation of 500msec.  You want to give each point to your chart, but the picture is out of the loop, which means that there is No point until the loop ends.

    Here's an easy Question - where you put the indicators in table of waveform?  [Council - I said that "outside the loop is bad"].

    Bob Schor

  • Can't add placeholder text data merge for all blocks of text on the document

    I'm trying to put together a script that loops if all pages in an indesign file, search all text frames label caption1, caption2, caption3... (whenever you get to a new page, the number of text images label starts again from 1) and add a placeholder in the text data fusion: caption1, caption2, caption3... but this time, when you get to a new page the number continues to go... caption4, caption5 and so on.

    Page 1 - image text = caption1 = tag > data merge placeholder = < < caption1 > >

    Page 1 - image text = caption2 = tag > data merge placeholder = < < caption2 > >

    Page 1 - image text = caption3 = tag > data merge placeholder = < < caption3 > >

    page 2 - text = caption1 = image tag > data merge placeholder = < < caption4 > >

    page 2 - image text = caption2 = tag > data merge placeholder = < < caption5 > >

    Currently, the script is adding placeholder text merge data only for the two text frames first (out of 6) on a page (about 8 pages) and just the first image of text on the page two (out of 3)

    Any help will be greatly appreciated

    Here's the script:

    myDocument var = app.activeDocument;

    -SOURCE DATA CALLS FUSION

    main();

    main() {} function

    myDataSource var = File.openDialog ("Please select a datamerge source", "text files: * .txt");

    If (myDataSource! = null) {}

    myDocument.dataMergeProperties.selectDataSource (myDataSource);

    myDocument.dataMergeProperties.dataMergePreferences.recordsPerPage = RecordsPerPage.MULTIPLE_RECORD;

    }

    }

    -MERGE OF DATA FIELD

    function get_field (captionString, myDocument) {}

    fields var = myDocument.dataMergeProperties.dataMergeFields;

    for (var f = 0, l = fields.length; e < l; f ++) {}

    If (fields [f] .fieldName == captionString) {}

    Returns the fields [f];

    }

    }

    Alert ("error: did not find all the fields with the name" + field_name);

    }

    THE TEXT - ADD PLACEHOLDER DATA MERGE

    var countFrames = 1;

    for (i = 0; i < myDocument.pages.length; i ++) {/ / TOTAL NUMBER OF PAGES in the DOCUMENT}

    var capPerPage = 1;

    for (x = 0; x < myDocument.pages [i].textFrames.length; x ++) {//COUNT TEXT TOTAL IMAGES PER PAGE

    If (myDocument.pages [i] .textFrames [x] .label < 0) {}

    Alert ('can not find any image caption');

    } ElseIf (.textFrames [x] myDocument.pages [i] .label == 'caption' + capPerPage) {//IF IT IS A TEXT LABEL of IMAGE 'caption1' EXECUTE

    var captionString = "caption" + countFrames;

    var myTextFrame = myDocument.pages [i] .textFrames [x];

    var myDataMergeProperties = myDocument.dataMergeProperties;

    var myTextFrame.parentStory = monarticle;

    var myStoryOffset = myTextFrame.parentStory.insertionPoints [-1];

    var myNamePlaceHolder = myDocument.dataMergeTextPlaceholders.add (monarticle, myStoryOffset, get_field (captionString, myDocument)); ADD DATA FUSION TEXT HOLDER TO THE TEXT BLOCK

    countFrames ++; INCREASE THE NUMBER TO ADD DATA FUSION TEXT PLACEHOLDER FOR THE NEXT BLOCK OF TEXT

    capPerPage ++;

    }

    }

    }

    Hello

    To verify this change (replace for...) loop)

    var countFrames= 0, currLabel, capPerPage;
    
    for (i=0; i
    

    Notice countFrames starts at 0.

    Jarek

  • CD DVD player: can not read data DVD discs that burned same machine

    Laptop with Windows Vista cannot read data DVD discs that burned same machine.  The discs work on another computer.  My laptop will read CD disks, he did, and it will play DVD movies. What's wrong?

    Hello

    You have disk problems as the CD/DVD is actually 4 discs in 1 case (CD &)
    Burn DVDs and CDs and read DVDs). So it is not unusual for 1 or 2 parts to no function
    while others are doing so correctly.

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

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

    CD/DVDs have a tolerance + - and your can read/write on the outside edge
    tolerances of the disks. They may be delivered, but it is usually cheaper to replace
    the reader.

    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 might not help if there are problems of alignment and wear it
    is worth it.

    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 check the cables
    both ends. Remove and replace, do not just tight. For laptops, you can often clean the
    power and data of the contacts with a pencil eraser.

    Some DVD players do not use the Windows default drivers so check with the system manufacturer
    and the manufacturer of the 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 &)
    Burn DVDs and CDs and read DVDs). So it is not unusual for 1 or 2 operational parts while
    others do it properly.

    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.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • How to make shift register init happens only once, so that the data can persist across multiple tracks of a loop?

    Here's the situation:

    We are repeatedly followed eight real-world signals and comparing them to a threshold value.  We do this via a loop For inside a While loop.  The loop For runs eight times per pass.  We have implemented a binary table 1 d and the use of the index of the loop For as the array index, by putting a Boolean result in the table using the function replace table subset.  We want to keep the data in the table to be 'sticky', in the sense that any True value is locked, so even if a fake comes later, this array element true.  However, since we initialize the array in order for the replacement to the work table, we see that whenever the loop For again, it resets the table and destroys the history.

    I have attached a simple VI to illustrate the concept, using a random number generator as a stand-in for the real world signals.  How we change this VI do and entered real lock through multiples for loop runs, indefinitely?

    In case it is not obvious, I am a relative beginner, so please keep count in your response.

    Thank you

    B

    scottbbb wrote:

    For B, although I love the simplicity of it, I have a question: it solves the problem of the re-initialization?  What the shift of the While loop register get initialized - only once during its launch?

    Yep, the shift register Initializes only at the beginning.  You could say that every time the while loop is called (not each iteration) the shift register is reset with the wrong table.

    And, Yes, GOLD will always keep a REAL when it is TRUE.

    Usually, the simplest solution is the best.

  • Medium-sized dynamic data analog input read DAQmx read

    Hi, I'm new to labview. Is there an easy way to index using the dynamics of data returned by a readout DAQmx x samples to calculate a moving average? My thought was to read the analog input for X samples pump with the data in another loop through the data, but I can't quite understand how index using the returned data set to extract the measurement value double returned for each sample.

    Any ideas on that?

    Thank you...

    If you get a type of waveform data, why did you ask on dynamic data? No, of course not would you use the conversion of dynamic data on a waveform.

    If you want only one channel, then your DAQmx Read could be changed to 1Chan NSamp. If your channel list only has one channel, you will get a table 1 d with a single element that can be indexed. To get the average of a waveform use the statistical function with the waveform. You use the average Point by Point, and not the average function that has a table for an entry.

    Make sure you always have context-sensitive help on. You can avoid many of these rookie mistakes simple.

  • How to read 3 analog inputs simultaneously with 6070E?

    Hello

    I wanted to read 3 analog signals simultaneously using cards of acquiring data NI PXI-6070E and Labview 2010.

    I can with success read and record the 1 signal (which you can see in the attachment), but do not know and can not find examples on how to read 3 signals simultaneously. Any help, especially a simple example would be great.

    Thank you!

    Just click on = pull down from the constant physical channel, select Browse and shift-click or Ctl-click here to add other channels. You can also type in new channels with the ai0 syntax: 2 for three continuous channels for example.

  • Error-200279 was held at lu DAQms (analog 1 Wfm NChan Nsamp d) .vi2

    Hello

    IM taking technical temperature (thermocouples of type J) with the SCB-68 using PCI-6229. When I run for a relatively long time I get this error.

    It is said

    "Error-200279 took place to read DAQms (analog 1 Wfm NChan Nsamp d) .vi2"

    Possible reasons:

    Measurements: Tried to read samples that are no longer available. The example of requestred was already available, but has since been replaced.

    Increases the size of delete, reading data more frequently or specifying a sets of samples read instead of all samples available moght correct the problem.

    Thank you

    First of all, you should always label on the block diagram control terminals so we know what the purpose of each terminal.

    The problem is the misuse of the Express VI.  They are perfect for something to get up and running quickly, but they have such high overhead and cannot be modified for more advanced features, there are problems quickly.

    Writing on file inside the loop of data acquisition could be a problem.  If you have a slow down in writing file, it will slow down the whole loop.  It's a good idea to use producer/consumer architecture to pass data to the other lines for writing file.

    I think your main problem is the express VI build Table.  Why you see thousands and thousands of datapooints in a table.  Because the table developing the table of handling inside that Express VI will quickly slow as LabVIEW as for finding still more large blocks of free memory to contain the growing table moving constantly in memory.  The global loop slows down as well, and until you know your buffer DAQ as overwhelmed because you couldn't keep with reading the data.

    Get rid to build Express VI Table and table and try it without the people.  Your problem will probably go away.

  • Error-200524 occurred at .vi:2 DAQmx Write (analog 1-d NChan DBL 1Samp)

    I'm trying to generate a signal to usb-6009 of simulated signal.

    However, he keep poping errors:

    Error-200524 occurred at .vi:2 DAQmx Write (analog 1-d NChan DBL 1Samp) if I choose "1 sample on request" in mx data acquisition.

    If I have chaged to "continuous sample", the error has become

    Error-200077 during the property Node DAQmx Timing (arg) 1 DAQmx Timing (sample clock) .vi:3-> 1.vi:Instance:0:1-> Untitled 1 Untitled. VI

    Can someone could take care of my problem?

    Very appreciate

    The limitations of the analog output of your device is documented in the manual and has been considered on several occasions. Because it supports at the time of the application, you can only pass a single value to a moment, not a waveform. The timing is only the software and you can not generate a signal without a lot of jitter and the max frequency will be by the spec.

  • Urgent: How to get data analog sbRio 9632?

    Hi ~
    I have new in Labview.
    I want to ask how to get analog data of the SbRio-9632 with FPGA?
    Example of
    I want to get the voltage/current of a solar panel.
    So I connect the unit to the analog input.
    But how to write a program to read the data?
    Need urgent help ~ thanks ~

    Hi GTHao,

    I think you can consult this manual for sbRIO 9632. There the guide step by step on how to extract data from sbRIO (although it says about RIO that includes cRIO but they are more a less the same thing in regards to getting analog data for your case)

    Please take note the voltage and current that the analog input sbRIO pines can take before you plug.

    It will be useful.

    Thank you

    Warm greetings,

    Lennard C

  • Reading data SCXI-1600

    Hi Experts,

    I'm new to this interface SCXI. Kindly help me in the framework

    I'm developing an application that will be using the SCXI-1125 and SCXI-1600 controller module. In the application, I want to allow the user to configure the different tasks in the front panel.

    What are the necessary controls in the front panel to allow the user to configure the task

    How to read the data of the SCXI-1600,

    How to differentiate the eight channel data from 1125 SCXI thro SCXI-1600

    Thanks in advance

    True, you can't simulate the SCXI-1600. This means that you will not be able to run your code without the hardware. For simulation purposes, you can, however, use another device that would work in the same way for the SCXI-1600 in terms of triggering, resolution and the frequency of sampling.

    In regard to programming, would use it DAQmx as I'd mentioned. There is no specific examples for the SCXI-1600, but you really do not need them. The SCXI-1600 is basically a data acquisition module, which is located in a SCXI format with a USB connection. Your software is concerned, you will use DAQmx to read data from it. Then, take a look at DAQmx examples as data on data acquisition devices.

    Your task will define how many channels you will read. Since you are reading a mixture of measures (temperature, pressure and tension may be simple), you will need to decide whether to create separate tasks for each of these measures that are configured to be specific to this type of measure, or to create a task that reads simply all channels not adjusted values (i.e. raw tensions) and then put you in the scale of values in your code. If you open the example Finder and navigate through the input and output hardware tree-> DAQmx-> Analog measures you will see different categories for types of measure. Many of them have graphics.

    If you have not already done so, you can start here: http://zone.ni.com/devzone/cda/tut/p/id/3116

  • How to read data from a QVariant

    I have a multi select list, and I need to get a list of the people selected.

    QML

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

    {To ListView
    ID: lv_ingredients
    horizontalAlignment: HorizontalAlignment.Fill

    dataModel: _app.ingredientDataModel

    multiSelectAction: {MultiSelectActionItem}
    }

    {multiSelectHandler}
    actions:]
    Add the actions that must appear in the context menu
    When the multiple selection mode
    {ActionItem}
    Title: "search people".
    onTriggered: {}
    _APP.search (lv_people.selectionList ());
    }
    },

    ....

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

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

    Search in _app method:

    void classname::search (const QVariantList & list)

    {

    QVariant nlist = personDataModel-> data (list.at (0) .toList ()); //
    qDebug()< "list:="" "=""><>
    }

    ----------------------------------------------------
    Results in

    List: QVariant (QObject *, Person (0x857c310))

    That means I can see this list of Person objects, but I have no way to read! How can I get this picture out of the QVariant?

    Hello

    The code looks OK, but the variables are named confusedly.

    QVariant tlist = personDataModel->data(list.at(0).toList());
    

    This line actually returns a first person in the selection list. Where none have been selected,. at() function throws an exception and the application will crash.

    Row is a list of section number, line, etc. Data() method returns a single object for a given row.

    QVariant is a type that can wrap any primitive type, a map, a list or a QObject. It can also wrap pointers to custom classes derived from QObject declared using Q_DECLARE_METATYPE. More details on this here (Qt 5 docs it's should apply as well to Qt 4.8):

    http://Qt-project.org/doc/Qt-5.0/QtCore/qmetatype.html#Q_DECLARE_METATYPE

    Line that you use for the conversion to the person seems correct. To retrieve all people (untested code, but it work, I divide it into several lines for simplicity):

    foreach (QVariant indexPathV, list)
    {
      QVariantList indexPath = indexPathV.toList();
      QVariant personV = personDataModel->data(indexPath);
      Person *person = personV.value();
    }
    

    In the .h file where the person is found make sure you declare metatype its pointer, otherwise that it cannot be used in QVariant except flows manually to / of QObject, which isn't practical:

    class Person: public QObject
    {
      .............
    }
    
    Q_DECLARE_METATYPE(Person *);
    

    Also, I suspect that there could be something wrong with dataModel. If the above does not work, please copy - paste the header file where it is declared.

    If there are compilation errors, please paste entirely including context around them, it could also give us some tips.

    UPD. qobject_cast can be used to cast QObject * to another type (returns NULL if impossible), but is not going to extract a value from QVariant. Use of QVariant .value<>() function instead.

    QObject *x;
    ...
    MyType *y = qobject_cast(x);
    if (y)
    {
       y->...
    }
    

    ...

    QVariant v;
    ...
    MyType *t = v.value();
    
  • How to read data in Adobe Flash and align it to look like it's column?

    I am doing an application that already exists, but I add a few improvements. I'll explain what this app is. There is a server and client side. The client side adds data to the Access database (the columns are time, name and surname). On the other computer is an application that displays this data (I don't know if he reads a database or another type of file, but I did a database). I know that server-side plays an .swf Flash file. This screen stays for about 30 seconds and then the application plays videos in the video player installed (ads, this model is connected to a TV) for some time and then the screen goes back to the display of the data.

    I'm 18 and I have very limited knowledge of Adobe Flash (I learned something at school). I've done completely client-side app. I now how to create server-side. My main problems are: how to connect to Adobe Flash to the database (is it possible to transfer this data to any other file that can be connected to the Flash?), how to read data from database for Flash and how to display it. I don't want to display the data in the grid. In the application that already exists, each word is like a new text (tool in Flash) and it is aligned. Is it possible to add a loop that creates new texts and plays database cell? How to refresh the Flash screen?

    I know it's a very complex issue, but your help would be very appreciated. I did on the client side in Delphi. If you need more information or if you do not understand something of my explanation, don't bother to ask. Thank you!

    You can transfer data back and forth between Flash and database on a server with PHP as the intermediary.  If you are looking for Gioogle use terms like 'AS # PHP MySQL tutorial' (fillin 2 or 3 for the ' # '), you should be able to find something to help you along there.

    What about adding new textfields and harmonizing, it depends on what version of as you use.  In AS3, you use just...

    var tField = new TextField();

    tField.x = a value to match.

    addChild (tField)

    As far as refreshing goes, this would require removing all Textfields you added and re-create new ones like you did the first time.  Yet once, it depends AS version that you use.  In AS3, you can use removeChild()

  • Reading data from a text (JS CS3) file tabs-delimited

    Hi - I'm working on a script to read data from a text file and use in a dialog box. But I hit a wall.

    I used a script from a previous post that defines a variable text document when the user script he chooses from a drop-down list.

    var myDialog = app.dialogs.add({name:"Map",canCancel:true});)
    {with (MyDialog)}

    {with (dialogColumns.Add ())}
    {with (borderPanels.Add ())}
    staticTexts.add ({staticLabel: "choose the location :"});})
    {with (dialogColumns.Add ())}

    var file = File("~/Desktop/myPlacesfile.txt");

    leader. Open ("r");
    var str = file.read ();
    leader. Close();
    var myPlaceList = str.split (/ [\r\n] + /);
    var myPlaceMenu = dropdowns.add ({stringList:myPlaceList, selectedIndex:0});})
    }
    }}}
    Ditto var = myDialog.show ();
    if(myResult == true) {}
    If (myPlaceMenu.selectedIndex == 0) {}
    myPlace var = ' - undefined ";
    } else {}
    myPlace var = myPlaceList [myPlaceMenu.selectedIndex];
    Alert (myPlace);
    }

    myDialog.destroy ();
    }

    That's what I do now:

    The text file is in this format:

    Value1 value2 [TAB]

    Value1 value2 [TAB]

    Value1 value2 [TAB]

    I need to have the drop down dialog box show only the value 1, and after that the user selects, the script returns only the value 2. (The alert is just there to test - I'm doing something else with the variable).

    Is there a way to view the first part of a tab-delimited line in the menu drop down and return the second half as a variable?

    Any help would be greatly appreciated.

    Thank you

    One of the possibilities is that it. Create a table to the left of the values of the tab of the dialog box. Then create an object that you use it as a table of correspondence. Roughly as follows:

    same thing as what you have

    leader. Open ("r");
    var str = file.read ();
    leader. Close();
    var array = str.split (/ [\r\n] + /);

    'pairs' are the table of correspondence

    pair of var = {};

    as before, 'myPlaceList' will be used for the menu drop-down
    var myPlaceList = [];

    var v;
    for (var i = 0; i)< array.length;="">
    {
    v = table [i] .split ('\t');
    pairs [v [0]] = v [1];
    myPlaceList.push (v [0]);
    }

    Add the drop-down list as before:

    var myPlaceMenu = dropdowns.add ({stringList:myPlaceList, selectedIndex:0});})

    the table of 'pairs' correspondence is used as follows: pairs ['value1'] returns 'value2 '.

    so in your script that would be:

    myPlace var pairs = [myPlaceList [myPlaceMenu.selectedIndex]];

    Peter

Maybe you are looking for

  • Lost images

    I recently upgraded to El Capitan and find that all my .doc, .docx and pdf files have lost their photos and other images. Any advice, please?

  • All of a sudden, I can't open a tab, even if I see the sign +...

    All of a sudden, I can't open a tab by clicking the sign +. I can only open a tab if I click with the right button on a bookmark and choose "open in a new tab.

  • Convert a Macintosh HD to the MBR to the schema GUID

    My drive hard macintosh is installed on a 1 TB drive that has a MBR partition scheme. Currently, I run snow leopard 10.6.8. you want to upgrade to el captain. When I click the installer I get a msg "this disc does not use the GUID Partition table sch

  • ThinkPad sl510

    Used to be cousins high school tower he has messed up so they wiped while installing new software messesed just so locked security code after the departure when it displays think pad intel. Then goes to a black screen with a small lock in the left co

  • signal names

    I use SE 2013 and I would like to know how to change the names of legend for thermocouples in the table in the data view. The signals currently posted under the names of the particular module channel.