Scrollable cluster arrays as control, writing programmatically at the same time?

I would like to have a cluster array (just an example, you may suggest better solution), where each row (cluster-element) contains signal selection from combobox, and its value and unit.
I would like to have a signal list, where in each row, I can select which signal I want to show e.g. "motor speed", "motor torque", "motor power". And when signals are selected, the value of the
signals are automatically updated elsewhere. So basicly, I want to select which signals I monitor, and then watch them change over time. I use single cluster array because I want it to be scrollable. The problem is:
* let's say I have one row in the array. Then I add a row by editing the control in the GUI (now the array control has size 2).
* I have property node (write: array control -> value) to update the values and units in my software.
* I use array control output as the input in the subVI where I read my selections and write updated signal values.
* It can happen that I use that array control output when it still has size 1, and while I have added the second element, the software updates the control, and overwrites my new element addition.
So, I run into writing conflict. Only single user, just this problem. How should I avoid this?
(e.g. how can I know that user is not interacting with the control, so that I can update its value and unit fields)

First suggestion is to post the code you have.
But that being said what you want to do can be done.  I think the problem you are having is a race condition between the user and the software.  Where the user chagnes the value and the software changes it back.  I suggest reading the value of the control and replacing its value but keep the signal names the user entered, then write that back to the control.
Another suggestion is to have two separate arrays, one that is signal selection, and one is values.  Then you only need to update the values table with the new data and the signal names never get overwritten.  You'll likely want to couple the two arrays so when one index value changes the other changes with it.  This can be done with an independent scrollbar control.
Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

Similar Messages

  • Has anyone used switch control and siri at the same time?

    Has anyone used accessibility switch control and siri at the same time?

    Using Xmarks and Sync simultaneously will create a mess.
    You can create a new profile, import the bookmarks from your main profile, and set up Sync for the new profile.
    The flip side is, bookmarks from your main profile would not get synced with your new profile.
    Alternatively, Xmarks is also available for Android.
    https://play.google.com/store/apps/details?id=com.xmarks.android&hl=en

  • Using airport utility to control multiple speakers at the same time

    Can I use the aiport utility on my Ipod to control multiple speakers/airport express units at the same time?  I am able to do this directly in ITunes but when I use my Ipod as the "remote" by using the airport utility it only seems to allow me to play music on one set of speakers at a time.  If I stream music to one set of speakers and then select a different set it stops the music that was going to the first set in order to stream it to the second set.  I hope that this is just user error and not a limitation of the airport utility because I just purchased a brand new Ipod in order to be able to do this (airport utility wasn't compatible with me 2nd Gen).  Thanks in advance for any help!

    If you have not already done so, now would be a good time to perform a complete power cycle of the entire network.
    Power off all devices...modem, routers, computers, etc....in any order that you wish
    Wait a few minutes
    Power up the modem first, and let it run 2-3 minutes by itself
    Power of the wireless router connected to the modem next the same way
    Power of the other AirPort routers one at a time about a minute apart
    Keep powering up devices one at a time about a minute apart until the entire network is back up
    Check the network

  • Need help on making desktop application to web application having individual controls for users at the same time

    Hi,
    I have an desktop application and the following are the functionalities of the same.
    1. User inputs the data file with path (log file) to parse the required data.
    2. Once the user enters the path and starts the tool with start button, the tool parse the required data in terms of records and gives the records (creates output file containing all the useful records).
    3. Have popup window to display a group of data.
    4. Have popup to Plot graph. When a button is pressed in main GUI, the popup is opened giving scroll bar menus to choose the data for the graph. User after selecting the data (multiple Y axis) press another button to plot the graph. The input to this popup is the output file generated by this tool.
    5. The main GUI has buttons (play, step forward, step backward, reverse play, pause, stop, 1st record, last record - like tape recorder buttons) to play the records one by one.
    This application is used by many people and since its a desktop application (created in labview 2009), the user every time has to manually install the newer version.
    "So it is required to make the application into web based so that, the user can individually access the tool at the same time (different instances same as desktop app) and run their own data files from their system. The output files to be stored in the respective user's system."
    Can this be done using Web Publishing or Web Services present in LabView?
    I tried using Web Publishing but it gives control to only one user at a time and loading the files from the client path to run the tool is not possible.

    Simple. 
    If all you are worried about are updates, just put the EXE on a shared network drive and have your users launch it from there.

  • How to read two counters and writing AO at the same time with 6024?

    I use Labview to read two quadrature encoder outputs and I use the two
    counters
    of 6024E for this. I can read the encoders continuously. I also want to
    send an
    analog output with a period of 30 miliseconds
    while the reading of encoders is continuouing at the background. How can I
    do
    this. I searched the NI discussion forums and found that my device have
    only 1 DMA channel. Is it possible to overcome the problem using
    interrupt??(set device information.vi) Is there any example code about this
    problem?
    Thanks a lot.."

    Hi Ress,
    I think you might have asked this question twice by mistake. Following is the link to the one that was answered:
    http://exchange.ni.com/servlet/Redirect?id=12017430 .
    Thanks!
    Serges Lemo
    Application Engineer
    National Instruments

  • How to control more than one instrument via different interfaces at the same time

    Hi, I am new to Labview.  I am working in a project where I have to make a Automated testing tool . So, here is the set up -  I have a Chip on a board to which there are several instruments connected namely Agilent power supply, Agilent pattern generator, oscilloscope,Dmm and Thermotron. All these instruments will be connected to the host computer via ethernet, GPIB or RS232. I have to write a program on Labview where the program  should be able to communicate with these  instruments  at  the same time  and show the ouput  on display unit . I have to run the program once, should be able to view the ouputs. So, Is it possible to write such program in Labview??.  I have  downloaded  few instuments  drivers. Is it possible to combine those intrument drivers and construct a new VI which would be able to control all this ??   Will it be easier to program this on Labview or  I should  go for Labwindows/CVI  ??.
    Please mention some useful sites or tips (if u know) for writing program.
    Thanks in advance
    shasanka

    Hi Shasanka,
    ofcourse it's possible to control more than one instrument at a time.
    You should use the VISA routines to access all your devices. Every device get it's 'address' as 'VISA resource name'. This resource name contains information on the used bussystem and the (internal) device address (i.e. GPIB devices have an address number).
    So I suggest to read the manual and to look at the examples that come with LabView!
    And (from your question) it seems you should take the 3 or 6 hour seminar as well! (Look at www.ni.com -> academics.)
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • [Bug] Writing to the same trace in Citadel from two Sources at the same time

    Howdy
    I am experiencing an issue and am looking to get some NI support:
    I have two distributed applications that can write to a Citadel database at the same time.
    And I am investigating the possibility of what would occur if both of them were writing to the same variable at the same time, with possibly the same timestamp data.
    I did this in the attached VI by using the same timestamps with a constant for the data (either #1 or #2).
    This generates an error, as expected, stating you cannot have two references open at the same time.
    The data file, dumped from Citadel, contains 1000pts with all data from only one of the arrays (in this case #2) and everything looks fine:
    However, what appears to be happening randomly tho, is that the same portion of code can also returns no error.
    When the data is dumped from Citadel this file contains 2001pts - 1000pts from each array and one separator (or break) point:
    You cannot write an older timestamp to Citadel without it throwing an error, but from further testing it seems you can write the same timestamp repeatably. So I am guessing what is happening above is race condition that is somehow allowing two references to be opened to Citadel which should throw an error but it does not and this is somehow allowing both sets of data to be written by both loops??
    The data, IMO, is now corrupted.
    Is being able to write to the same timestamp a desirable feature?
    Or is this a known issue or a bug?
    What about acquiring two references - bug?
    Is there a workaround to protect the data from multiple distributed-application writes?
    Cheers
    -JG
    Attached VI was coded and tested using LabVIEW 2009 SP1, DSC 9.0.1, MAX 4.6.2f1
    Certified LabVIEW Architect * LabVIEW Champion
    Attachments:
    dual_databaseWrite.vi ‏21 KB

    Ben S wrote:
    The race condition of opening the refererence in two places at once should still apply to two different VIs running at the sametime.
    Will a CAR be lodged for this?
    Ben S wrote:
    If you open up the code and save it as a .vit, you don't get any missing VIs. Only when you change the extension without the aid of LabVIEW.
    No VI should have missing members by simply renaming its extension outside of LabVIEW???
    I think there is an issue with the VI.
    Can you replicate the following and verify what I am seeing?
    Attached is a Project with Main VI (contains a call to the Open Trace.vi polymorphic only), a Class and a Build Spec
    If you Build the spec with the Main VI outside of the Class it works
    If you place the VI in the Class, save then Build, the Spec fails with the error:
    Visit the Request Support page at ni.com/ask to learn more about resolving this problem. Use the following information as a reference:
    Error 1003 occurred at AB_Application.lvclasspen_Top_Level_VIs.vi -> AB_Build.lvclass:Build.vi -> AB_Application.lvclass:Build.vi -> AB_EXE.lvclass:Build.vi -> AB_Engine_Build.vi -> AB_Build_Invoke.vi -> AB_Build_Invoke.vi.ProxyCaller
    Possible reason(s):
    LabVIEW:  The VI is not executable. Most likely the VI is broken or one of its subVIs cannot be located. Select File>>Open to open the VI and then verify that you are able to run it.
    Visit the Request Support page at ni.com/ask to learn more about resolving this problem. Use the following information as a reference:
    Error 1003 occurred at AB_Application.lvclass:Open_Top_Level_VIs.vi -> AB_Build.lvclass:Build.vi -> AB_Application.lvclass:Build.vi -> AB_EXE.lvclass:Build.vi -> AB_Engine_Build.vi -> AB_Build_Invoke.vi -> AB_Build_Invoke.vi.ProxyCaller
    Possible reason(s):
    LabVIEW: The VI is not executable. Most likely the VI is broken or one of its subVIs cannot be located. Select File>>Open to open the VI and then verify that you are able to run it.
    Next place a disabled structure around the Polymorphic VI (as Class Member or not, it doesn't matter)
    Save the VI
    Close the VI
    Open the VI - the Open Trace.vi polymorphic is "missing"
    Cheers
    -JG
    Code in LV2009
    Certified LabVIEW Architect * LabVIEW Champion
    Attachments:
    DSC.zip ‏341 KB

  • Advice on having a control file (online) on the same disk as backups

    The following database files layout provides a no data loss configuration if the DiskArray #1, which stores the database, fails.
    I have every think I need in the flash recovery area (DiskArray #2): backups, archived logs and online redo.
    DiskArray #1:
    - datafiles
    - control file (mirror copy 1)
    - Online redo log (mirror copy 1)
    DiskArray #2: (flash recovery area)
    - control file (mirror copy 2)
    - Online redo log (mirror copy 2)
    - archived logs
    - backups
    But some one raise the following scenario:
    What happen if the diskArray #2, which has one control file copy, fails?
    The instance should abort. Can it corrupt the current online redo, controlfile or a datafile?
    If it does I would be in a dead end; of course I have regular offsite backups, but I may lose up to two weeks.
    Lossing the database because the backup array fails is not acceptable.
    Should I avoid any control file in the backup array?
    Oracle recommend having control file copies in separate disk location and one of it in the flash recovery area.
    Anyone have suggestions.
    I am a bit scared

    Can it corrupt the current online redo, controlfile or a datafile?Could that someone tell you why he thinks so ? I have seen loss of controlfile and loss of mirrored (duplexed) redo logs but that doesn't corrupt the good controlfile and redo logs and datafiles. unless someone or some process copies the corrupted files over to the good array !
    You'd have to restart the instance with that controlfile excluded from the parameter file.
    You'd lose your archivelogs and backups. If you have no tape backups you'd lose the ability to restore as well (being another "someone", I will ask "What happen if the diskArray #1 fails at the same time or 5 minutes after or 6 hours after diskArray #2 ?").
    Hemant K Chitale
    http://hemantoracledba.blogspot.com

  • Can I control iTunes via the the remote on multiple iOS devices at the same time?

    Hi, I know this is probably a no brainer but I have an iPad and an iPhone on one apple id both with the remote app on them. Problem is the app only seems to run on my iPad at the moment! Ideally it would run on both and on a third iPhone (my wifes and different apple id) at the same time so that we could all control the music... Is it possible?

    Have you looked at the previous discussions listed on the right side of this page under the heading "More Like This"? Ones with a green checkmark are solved.

  • Can I view the same pdf on multiple iPads at the same time with 1 iPad operating as the master (controlling page turns etc)?

    Would like to use 4nr iPads as an autocue system. Can I view the same pdf on multiple iPads at the same time with 1 iPad operating as the master (controlling page turns etc) and the others operating as slaves? Can this be done without the use of 3G or a remote Wifi hub? I would appreciate your input.................

    Open the document in Acrobat Reader and use the menu Window > New Window.

  • How to make two PCs (one local, one remote) control the same running vi at the same time?

    Hi Labviewers,
    I have a vi running, and two PCs are monitoring it, one is local and another one is remote.
    I can see the remote front panel at the remote machine by using application property node, but it seems only one of the two PCs has the control of the running VI at the same time.
    Is there any way to make the two PCs both have the control of the same vi at the same time?  Switching back and forth the control between two PCs is really annoying.
    Thanks a lot for any help.
    Anne

    What exactly are you trying to control?
    Perhaps another approach? You could use "Shared Variables" from LV 8.0 and have a copy of the writer VI on each of the control PCs edit the value on the host PC. But as soon as I post, someone is going to talk about multiple writers to shared resources being a bad idea.... so just be careful or you may try to edit a value that has already been changed.
    Matt Holt
    Certified LabVIEW Architect

  • I would like to do a program that have one string control and one string indicator, any character that I type in the string control in the same time it will be appear in another string (indicator). How can help me?

    I would like to do a program that have one string control and one string indicator, any character that I type in the string control in the same time it will be appear in another string (indicator). How can help me?

    Why not use an event
    Add a While Loop, inside the loop add the Event Sructure.
    Now in the event structure selecd the String Controls.value change event to
    react
    and the new value inside the event that you get,( connect to the String
    indicator box.
    On Sun, 10 Aug 2003 15:58:47 -0500 (CDT), WiltonFilho wrote:
    > I would like to do a program that have one string control and one
    > string indicator, any character that I type in the string control in
    > the same time it will be appear in another string (indicator). How can
    > help me?
    >
    > I would like to do a program that have one string control and one
    > string indicator, any character that I type in the string control in
    > the same time it will be appear in another string (indicator). How can
    > help me?
    >
    Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

  • How do I move all of the control points at the same time at the Path Text preset?

    I'm doing motion typography, I used the Bezier Shape Type, it has 4 control points, I saved the custom preset I made, but the problem is, is it possible to move them at the same time? I'm animating per letter to form a word.
    Additional Question: Is it possible to add more control points? If then, how?
    Thanks in advanced.

    Double-click the path shape to invoke the transform box. Read up on how to use the path tools to insert and modify points.
    Mylenium

  • Control two different parameters at the same time

    Two motors were connected each other rigidly. One motor controlled torque and the other motor controlled speed. I generated some torque and speed data which represented one cycle of motion from a motor simulation. I like to send these two different data sets (torque and speed) to two different motors at the same time. Torque data sends to one motor and speed data sends to the other motor to see the response of the load profile. In order to do this, I thought about using multithread, but I am not sure it will work for this application. Usually multithreading delay the CPU time so the overall control process might be delayed, right? If you have better idea, please let me know.

    If you are using one motion controller to control both motors, you will probably run into problems if you try to use multithreading on the PC. However, you can execute up to 10 programs (threads) at a time, in addition to host communication, using on-board programming. For more information on on-board programming please refer to the following tutorial: Developer Zone Tutorial: On-board Programming in FlexMotion
    Best wishes!
    Dawna P.
    Applications Engineer
    National Instruments

  • How to control 8 current sources in the same time with labview?

    Hi,
    I'm a French student who have to create a program which is able to control 8 current sources in the same time.the aim is to plug the currents sources in the input of a laser.
    If someone has an idea, it would be very nice to inform me !!!
    Thanks in advance.
    Nico31dcu

    Is it really Tektronik or is it Tektronix. Tektronix is a major test equipment manufacturer. I can't find any reference to that model number on their site, though.
    There are several resources for learning instrument control. One good place to start is http://zone.ni.com/devzone/cda/tut/p/id/4357.
    Assuming that you have a NI GPIB controller for the pc, you will be using the Instrument I/O Assistant or the VISA commands to send/recieve data from the current sources. Without having access to the programming manual, I can't give specifics on what commands you need to send. Your topic mentions controlling them at the same time. Truly simultaneous control is possible in only a few situations. If you have a couple current sources in the same mainframe, you may be able to send a single command to set them all. It will really depend on the commands that the vendor has implemented. With separate mainframes, you will send commands first to one, and then another, etc. Again, depending on what the vendor has implemented, it may be possible to sequentially program all sources to a ready state and then trigger all simultaneously.

Maybe you are looking for