A better way to generate a reference?

I am autoindexing by a cluster control array to work with their values.  At the same time, however, I would like to update the value of the front panel control if Boolean value is selected.  Therefore, I also have automatic index through references to the cluster in the same LOOP (see annex VI).  It works, but it seems a little questionable, not to mention tedious if I have several clusters to help index.  Is there a better way to do it?  I was hoping that I could generate a reference of the cluster inside the loop wire, but I suspect that's not possible, because the thread may represent a copy of FP values rather than control FP himself.

Thank you

Allan

You don't need automatic index two.

You cannot get a reference to the thread of the cluster, but you can go somewhere else: get reference cluster data using the "Value" property  See attachment.

Tags: NI Software

Similar Questions

  • Is there a better way to generate the custom timed digital signals

    I'm trying to generate the digital output from the top and down with delays on different lines. Each daq assistant is activate single line on a port USB 6501. There more complex high and lows that I need to generate variable time difference between high and low. There is codebelow that does what I'm trying to achieve, but for a model executing high and low signal is much of your time to do it this way. I'm sure there is a better way to do it, I'm not an expert on labview so I only discovered its potential. Anyone can suggest a more effective and a quick way to do it. I would like to hgihly appreciate. Thank you!

    I've not shown in the code below, but using the DAQ assistant, I initialized lines at low logic level.


  • Best way to generate the software clock for USB-6501 of Measurement Studio for c# VS2008

    Hi all

    I wonder if there is a better way to generate a clock software for USB-6501 of Measurement Studio for VS2008 in C Sharp?

    I have developed a clock using C Sharp "Thread.Sleep (msecPauseTime)"; and statements to switch digital output high and low. There are a few things I noticed in creating a software clock in this way:

    1. The smallest delay by the Thread.Sleep command time is 1 millisecond (which means higher clock period is 2 msec-500 Hz, not holding not ball account no. 2 below).
    2. Sometimes the delay I see on an oscilloscope is considerably longer than the delay that I specified in the sleep command.

    In my application, I create signals (a clock, a latch enable and data series) to control what an attenuator step through the USB-6501 RF connected to a USB 2.0 on my computer. This particular step RF attenuator can accept clocks with frequencies up to 10 MHz, so I would like to generate a software clock (without having to connect to an external clock to a line of input on the USB-6501) which is closest to this maximum frequency, and I think that the USB2.0 line could handle clock speeds over 500 Hz. Also, I would like to know why the delays that I see on the scope are sometimes longer than the time specified by the Thread.Sleep command. Is it caused by the suspension of the execution of my program processor for something else, as I suspect? Of course, this isn't a big deal, because it does not affect the time as my serial data and pieces change compared to my clock. However, I would like to know why it does this.

    I appreciate your help.

    Thank you

    Jonathan Becker

    Doctoral research engineer

    Carnegie Mellon Silicon Valley

    Jonathan,

    Since the USB-6501 DIO is software programmed, you are at the mercy of the planning of the operating system and won't be able to work reliably with an external clock in the software.

    You can try to set the priority of your thread 'generation of clock' to improve performance, however, because Windows is not a deterministic operating system, there are still no guarantees.  Operating systems are not required to honor the priority of threads.  You can find examples and information on the definition of the priorities of the threads in c# here:

    http://msdn.Microsoft.com/en-us/library/system.Threading.thread.priority.aspx

    Kind regards

  • A better way to get all the text style ranges in a table

    I am trying to get all the text varies from the style of my document into one. I'm scripting in JavaScript, which I'm not very familiar with, so maybe that's the problem.

    This is what, in my view, should work:

    app.activeDocument.stories.everyItem().textStyleRanges
    

    The above doesn't give me a text string, not an array of objects of text style than I expected. If I were using Applescript I would ask just for the beaches of text style object reference, but it is not a property that I found in the javascript object model.

    So I resorted to what is slower, but gives me what I want:

    var allStyleRanges = new Array();
    for (var g = 0; g < myStories.length; g++) {
      var storyStyleRanges = (myStories[g].textStyleRanges);
      for (var s = 0; s < storyStyleRanges.length; s++) {
      allStyleRanges.push(storyStyleRanges[s]);
      };
    };
    

    Does anyone have a better way?

    Lev,

    May it as your requirment...

    alert(app.activeDocument.stories.everyItem().textStyleRanges.everyItem().getElements())
    

    Concerning

    Siraj

  • A better way to treat the form as a table with the variable column type?

    I wanted to make a column to return according to the status of a flag column as readonly. I have a column defined as follows in the report query.

    Decode (sys_flag, 'Y', APEX_ITEM. DISPLAY_AND_SAVE 3, TYPE_CODE, APEX_ITEM. SELECT_LIST_FROM_LOV (3, TYPE_CODE, 'LOV_TYPE_CODE_LOV')) AS TYPE_CODE

    To get the SRM process noting that column, I had to put this 'band of HTML code' to 'No', then the column attributes, I put:
    "Expression HTML" to "#TYPE_CODE #
    ' Display under "to"text display (saves the State).

    And then it took me to get new lines of work:
    "Default of Type" to "Expression of PL/SQL.
    'Default' to APEX_ITEM. SELECT_LIST_FROM_LOV (3, NVL(:P18_TYPE_CODE,'LOV_TYPE'), NULL, 'LOV_TYPE_CODE_LOV', ' NO')

    This makes large, however submit that it seems that the checksum of line used by MRU included the raw HTML generated by the APEX_ITEM package and not just the value of the column. I worked around this by including an element hidden checksum and creating a process that replaces the checksum generated automatically with my custom.

    Is there a better way to intercept this checksum, preferably before it is rendered on the page? I now hide the sum of hidden HTML control in the output HTML of another column, so it's a bit ugly. If not, is there an easier way to achieve what I'm looking for? I tried several combinations, and it seems to work better. It's just a shame there's no way to have a standard hidden column included in the SRM process.

    Hello

    I tried different possibilities and seems to run the following:

    Create a report questioning in NORMAL SQL function to help:

    SELECT
    APEX_ITEM.HIDDEN(1,EMPNO) || APEX_ITEM.TEXT(2,ENAME) ename,
    CASE WHEN DEPTNO = 10 THEN
     APEX_ITEM.HIDDEN(3, SAL) || SAL
    ELSE
     APEX_ITEM.TEXT(3, SAL)
    END SAL,
    EMPNO,
    DEPTNO || APEX_ITEM.MD5_CHECKSUM(ENAME, SAL) DETPNO
    FROM EMP
    

    Do not specify something special for column definitions.

    Create a button that submits the page.

    Create a PL/SQL process that runs "On submit - after calculations" and Validations, triggered by this button and using the following code:

    BEGIN
    APEX_ITEM.MULTI_ROW_UPDATE('#OWNER#:EMP:EMPNO,1:,|ENAME,2:SAL,3');
    END;
    

    I've done here: http://htmldb.oracle.com/pls/otn/f?p=55041:35

    Any element with the value of DEPTNO 10 has the value SAL, read-only, as otherwise it's editable. This is done by creating a hidden input field for the actual value, followed by the text version OR by creating a single entry field. This ensures that we have the correct number of SAL elements on the page.

    APEX_ITEM. MULTI_ROW_UPDATE is the "manual" version of the MRU that you would normally get with a form of table and works for above normal as sql based query reports. The format of this very strict is that you must always allow for two primary keys. See the text of presentation here: http://download.oracle.com/docs/cd/B28359_01/appdev.111/b32258/api.htm#CHDFDACC

    Andy

  • Is there a better way to do it?

    Okay, so I try to dial numbers to create a RPG character, and I think I found a way to transfer information from one sheet to the other. The specific cell transferred from sheet 1 (capacity degreasing) differs according to a variable of box chain drop in a cell on the worksheet 2.

    What I have is: = IF (C2 = 'Force', ability Scores: $E$ 2, IF (C2 = 'Agility', ability Scores: $E$ 3, IF (C2 = 'Constitution', ability Scores: $E$ 4, IF (C2 = 'Intelligence', ability Scores: $E$ 5, IF (C2 = 'Wisdom', ability Scores: $E$ 6, IF (C2 = "Charisma", ability Scores: $E$ 7))) )))

    And while this works, I wonder if there is a better way to implement.

    Any ideas?

    HI Durzan,

    This sounds like a job for one of the search functions. Main table on the left, on the right ability Scores.

    Main, column C contains three cells in the context menu.

    Hand, D2: = VLOOKUP (C, ability Scores: A:E, 5, 0)

    Filled down.

    Kind regards

    Barry

  • is there a better way to remove exact duplicates in my iTunes library, clicking on maintain organized the iTunes media folder is not working is not on for me

    is there a better way to remove exact duplicates in my iTunes library, clicking on maintain organized the iTunes media folder is not working is not on for me

    Do not automatically methods automated in the treatment of duplicates. There are several types of duplicates and how they should be solved is different.

    How to find and delete items duplicated in your iTunes library - http://support.apple.com/kb/HT2905

    More posts by turingtest2 on different types of duplicates and techniques - https://discussions.apple.com/thread/3555601 and https://discussions.apple.com/message/16042406#16042406 (Note: DeDuper script is for Windows).

    http://dougscripts.com/iTunes/scripts/SS.php?SP=scanfordoubleentries

    http://dougscripts.com/iTunes/iTInfo/Dupin.php (commercial) There are other similar tools, including a version much sooner this package called "duplicates iTunes Corral", which I'm sure that would reveal a general web search.

    For example, Corral iTunes duplicates a mod. Eric Pugh - http://opensourceconnections.com/blog/2006/11/11/better-itunes-song-deduping/

    May 2014 post on iCloud duplicates - https://discussions.apple.com/message/25867873#25867873

    See the exact replica (Mac and Windows) - https://discussions.apple.com/message/16951281#16951281

  • There must be a better way to do this

    There must be a better way to do this!

    25 separate reports - 1 voltage recorded by chanel every minute for 21 hours (end - times will have to be changed)

    Anyone has ideas/directions

    CC

    The DAQ Assistant reads the tensions based on the timings specified, which means that if I set the number of samples finish say 20 and the frequency of samples to 1, then data acquisition will take 20 seconds to save 20 data points (one second) per channel. Then the DAQ pump data to the loop that creates reports (N number of reports).

    TO answer this question: the DAQ Assistant will do exactly what you suggest here.

    Two questions:

    -the loop will be able to separate the different channels ie first report contains data AI1, AI2 and AI3, then the second contains data AI4, AI5 AI6 etc.. ? What is the purpose of the table screws?

    TO answer this question: If you look inside the front loop, you see I have the sub table value function. I have set the index to the increment and then multiply 3 X. The first time in the loop take 0 and multiply by 3 and I get zero. second time through I multiply 1 X 3 and get 3. The second thing I have on the sub table set is giving him a length of 3. This will make return three matrices. So this will give me the next three tables each time through. So the first time through I get AI0 AI1, AI2 AI3 AI4, AI5 second time or however you have configured channels.

    - and what is the function of painting that the subset of table is wired to (can not find the icon of my pallet table)?

    TO answer this question: Index table. Handel, it automatically becomes a 2D array.

  • Best way to generate a PWM for a stint with LabView2010 and a laptop

    Hello

    as mentioned in the title, I'm looking for the best way to generate a PWM signal to a relay. I want to use a laptop computer and the LabView2010 for she. I have read through several topics, but after a time that he just got more confused. For example the NI USB-6008 OEM case seems to be a solutiion at low prices, but I don't know if I can use for the generation of PWM signals like this thread says is not possible:

    http://forums.NI.com/T5/Multifunction-DAQ/using-PWM-on-NI-6008/m-p/231860/highlight/true#M13339

    But then again this thread right here makes it seem as if it was doable:

    http://forums.NI.com/T5/Digital-I-O/generating-a-PWM-using-USB-6008/m-p/421654/highlight/true#M5527

    Once again in abbreviated form.

    What I need:

    -the best way to generate a PWM signal to control a relay

    What I have so far:

    -LabView2010

    -Laptop

    If possible, it would be good to have two channels for two separate signals, but it is more low importance right now.

    Hey Kambra,.

    The first thread you mention is correct, you can't make output PWM in any deterministic mode with a 6008. The 6008 is strictly software timed, which means that each digital writing that is done in the unit must go through the operating system and down to the device. And there is a lot of jitter of the involved BONE. The second article you mention says the same thing. They emphasized that they could reduce the jitter of some, but still can not remove it entirely. In the second thread, they mention using a M-series USB device do output PWM deterministic (timed material).

    The compromise really down to your application and its requirements. If your application to control the relay requires no determinism, then you can use the 6008. If you need precise control over the relay, try the USB M series.

  • Is there a better way to make this pop up?

    I have a VI that has more than 900 void screw which has been developing since the Labview V5.  It has a control loop and a loop of data.   The vehicle currently has half a dozen or more Windows vi it appears for different reasons.   Most collect all of the data passed to them but don't have to return data.  I called the sub, it opens and the data is passed but he shares time with the main window, so I can not change anything in the main window as the Sub keeps seizing control.

    I came up with this solution attached below, but it seems that there must be a better way?  I don't know that I just lack.   I need to be able to start in a field of the program running on a while loop and sends the data to the it in an another while loop which collects data while giving full control to the main VI.
    Thanks for any help.


  • A better way to make a continuous read/write on a NOR-6008

    Hello

    I use a USB of NOR-6008 module and have a loop of the software configuration where I acquire analog signals, digital signals, then, then put a digital high or low and repeat. I use digital multiplex outside the material so that I can use 6 of the analog inputs to read 12 signals. The digital inputs that I have are connected to the buttons on a panel that are used for the entry instead of the screen of the computer of the user. My loop is also to build a buffer zone of all the signals on the analog and digital lines that I read in so I can on average and this process elsewhere in the program.

    The question that I am running is because this loop is very slow and on the final product is performed on a touch screen, XP Embedded PC and just this acquisition loop begins again as much CPU as the rest of my program. I would say that drops of loops on 4 or 5 cycles per second, which means that my update of 2 multiplex signals or longer than a second time. I would really like to better performance and does not use as much of my CPU resources.

    I use a way simple enough to make the loop of the acquisition, by setting the parameters I, reading, deleting the task, defining the parameters DI, read, erase the task and then by setting the parameters, write about it and delete the task, which gives a slight delay and repeat.

    Any thoughts on a better way to start the read/write that what I'm doing?

    I have attached the code examples in the loop of the acquisition that I use.

    Thank you!

    First of all, the best plan is to move the chain DAQmx before the loop to create and use a start DAQmx, then write in the loop, then clear once the loop ends.  This configuration must be done once, not every time you write the channel.  This should speed things up considerably.

  • looking for a better way to add many groups of

    Hello

    I'm new to G language and I find it quite difficult to figure out how to deal with table in labview. I am creating the over $ 15 consine functions (discrete) each with different frequencies. I use the loop and consine function to generate the table for each COS, but to add each other (adding the element by element), I have to use a loop again? I'm really curious to know if there is another way to generate the sum of all these cosine at a time and convert the result into a single table. Someone suggested using the form and loop for, but I don't understand how to use the form and how to make the result?

    You can create and add in the same iteration using a registry to offset.

    Here's a quick demo, adding five functions sinus with different numbers of cycles. You should be able to adapt it to your problem.

  • Multi-terrain graphs, is there a better way?

    I'm still not good at graphics in LabView, but I think I do a few programs and I can usually get a graph to show with what I want to show him only a few hours of dinking with it autour...

    In any case using graphics certainly made for messy code unless there is a better way to this thread. Basically, this chart shows the four temperature sensors and is updated every minute. A check of stabilization is carried out every 15 minutes. Apparently the only way I could get the multiple locations with time that x-axis it are use an xy graph, but I have my reading on the index individually and each put in it is the own shift register and add it to the chart separately.

    There must be a better way?

    I think that part of your problem is that you are not aware of the option 'Concatenate entries"to build array. You don't need several bays to build the set of clusters, we made connections in graph (pink wire). Just expand the build, wire all clusters, then right-click on the picture of construction and choose 'Concatenate entries. Then, you can use a cluster to store all your berries to graph (orange wire) which will be greatly cleans your diagram.

  • Can anyone suggest a better way to update?

    I've updated a windows 7 32-bit (service pack 1) PC to a new installation.

    I am now on day 3 and still updates are still slow, halt, difficult and not much. I lost at least 8 hours trying several "FixIt" and the windows troubleshooting update just to make things worse, so I had to restore the system and start from scratch.

    There must be a better way to update Windows Update use surely? I can't afford to wait for 3 + days to install an operating system to actually be able to use it safely online.

    Absolutely, it boggles the mind as to how incredibly bad is the whole process.

    The installation process described came from this thread,

    They must be also, and

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-update/Windows-Update-remains-at-checking-for-updates/ff3c442e-79a6-40d3-AC35-29e130cebef1

  • Flash Builder or is there a better way for beginners?

    I am a developer of the theme for a few years, but I would like to create a few apps for my PlayBook. I have never developed an application before, so I'll try to know where to start.

    It seems to me that Flash Builder 4.5 would be the best way to create applications, but I don't want to spend money and time to learn if there is a better way to do it. It's $700 ($1000 for me since I would upgrade my CS3 Suite). My question is, if you're a developer, you would recommend Flash Builder or another way to develop applications for future phones QNX PlayBook?

    FlashBuilder is a very good way to start. There are a lot of samples out there, some are intended for the web or desktop, but often use also apply well to mobile devices.

    Flash Builder Standard edition will do you very well, especially if you are a beginner. That costs $250. I think there may be an updated version to students & teachers in some countries, if this applies to you.

Maybe you are looking for

  • Browse clear history

    How delete/delete all history to browse with a single click?

  • CVI - Windows 10-2015 and beyond

    I'm looking to revive my support CVI and the CVI 2009 update to the current. In order to justify the leap, I would like to learn more about plans for CVI2015: Support for Windows 10 (office only, but for the development platform and for the target pl

  • Multiplot table edge OR tracing

    Hi, I have two sensors to measure, and I would like the two datas of the sensors to display on the chart on the dashboard OR, how do I do so? I tried adding 2 graphics path OR Dashboard, but it shows only one of the sensor data only.

  • printing envelopes c5 HP P3015

    We have just installed a printer laserjet P3015x HP for printing our C5 envelopes. Unfortunately, it is not possible to enter C5 size as a standard paper size in the printer. So we use 'any size' for the parameter for the paper size. The result is th

  • Content can be protected Z5

    Hi my name is Steve. I recently switched from an iPhone to a Sony Xperia Z5. I always get use the phone, but there is a particular problem that I can't solve. I'm taking a screenshot of a page in an application, but I get a message saying "content th