Manipulate the subdashboards with a loop for?
Hi all
Here is a picture of what I'm trying to do: basically, I want to choose the (3 x 3) A subarray, manipulate data, then
Select the subarray B (2 x 2), manipulate data, and finally select the (4 x 4) C subarray and manipulate its correspondent
data. In my real problem, I have more than A, B, C. I have a number any variables.
I have a 1 d table, below, that I use to make a kind of mapping to my 2D table so I can choose the appropriate sub-table.
Please see the VI attached and see if my approach is logical. To be concrete, the end result of my VI must be a 2D array containing
A, B, C and for each variable, I want the sum total of all the numbers corresponding to this sub-table.
For example, for A, I want 1 + 2 + 2 + 2 + 1 + 5. My real data manipulation would be more complicated, but if I can understand this simple case,.
the real case will follow.
I do not know where to store each subbarray in my loop and WHEN to do my manipulation of data, it must be inside of the inside of the loop, outdoors, where? See the attached VI.
Thanks in advance.
I think you need a boot and wiring through the case of fake.
Note that the output is a table to a dimension. Because pages can be of different sizes, the pages 'A' and 'B' contain empty elements. If no match is found fo a 1 d, a full page table element will be empty. To see this 'B' to replace in the table 1 d with "D".
To make your number a string number followed by conversion table amount works well.
Lynn
Tags: NI Software
Similar Questions
-
Help with the efficiency of the program, stop a loop for?
Hi all
I need some advice programming General to help my VI to operate more effectively. I have a table in which the program runs each point and 2d compares the value for the surrounding points. The user can select the range of cells to inspect range, so if the user selects 1, then, it will compare the point (0,0) to all cells in a single cell. If the user selects 2, then all the cells in a range of cells 2 and so on. If the point (0,0) is superior to everything around him, then he writes this point in a table.
I made more notes in the VI to explain what is happening, but I think that the program would be more effective if I could stop a for loop to run as soon as it detects a false condition, i.e. the point (0,0) is not more than one of the surrounding points. As it is right now, it compares at all points around him, writing TRUE/FALSE for a table, then checks if all conditions are TRUE. That takes a lot of time if the user selects a value of 8, for example. It would reduce a lot of processing time if he just threw to the next point as soon as it finds a FALSE condition.
Any other advice would be appreciated as well. Try to be a more effective programmer!
Thank you!
AlexI do not attach the data file, because it is too big.
In versions before the invention of the loop For with conditional stay terminal, you can do it, but you have over what a while loop to stop when your condition is True, OR when the terminal i is equal to the size of the incoming array - 1.
-
Write to the file of measurement with a loop For using the value of the dynamic data attributes
I looked and looked, but couldn't find a solution for this.
I currently have 15 points of different data that I try to write in an Excel file. I have all combined in a table and lie with the function "write into a file position. However, the column names are always "Untitled", "Untitled 1" etc. I then used the function 'Set the Dynamic Data attributes'; but for this I have to do 15 different functions "set data dynamic attributes. It was suggested to use a loop with the function 'Set the Dynamic Data attributes' inside of her, but I can't find how do.
I have several arrays consisting of 15 different values for 'Signal Index' 'Name of Signal' and 'Unit', but also a unique 'get Date/Time In Seconds' related to 'Timestamp '. The problem is that the error I get when I try to connect the output with Scripture at the entrance to measure file:
The source type is dynamic data table 1 d. The type of sink is Dynamic Data.
How can I fix it? I have attached a picture of my installation; Sorry if this is gross (I'm new on this!). Thank you!
It will get rid of the error, but it is not quite correct. What you need to do after that is to click on the output or the tunnel entry and select 'replace with the shift register. In addition, the array of values that you have wired to the Signal Index is wrong. Arrays are 0 based. Just wire the iteration Terminal here. And, finally, take the size of the table and this connection to the N terminal are stupid. Don't wire nothing to this.
-
In any case, to use transform activity with a loop for storage of the iterative purpose?
Hi all
I have a question about the processing activity. As I am new to BCI, I want to learn more about the processing activity. If we use a transformation inside a loop activity, all other records other than the last ones will be overwritten. I want to avoid this situation and s output
Scenario of
-------------------------------
(1) inside a loop for, I keep a DB adapter that will choose 1 row of table. So in each loop iteration for, we will get a line.
(2) in the same loop, we maintain another DB adapter which will retrieve multiple records.
(3) these values, I need to map it to an output variable (output xsd is able to contain multiple records) in the following order.
< 1Adaptateur out >
< data1 > < / data1 >
< data2 > < / data2 >
< 2 adapter output >
< data > < / data >
< data > < / data >
< / 2 adapter output >
for example)
< Person > - 1 adapter Db I st iteration
< name > xx < / name >
< 23 > < / Age >
< address > - 2nd iteration of st adapter 1 DB
home address < address > < / address >
address of the < address > < / address >
permanent address < address > < / address >
< address >
< / person >
< Person > - 1 adapter Db iteration nd II
yy < name > < / name >
< 23 > < / Age >
< address > - 2nd iteration of st adapter 1 DB
home address < address > < / address >
address of the < address > < / address >
permanent address < address > < / address >
< / book >
< / person >
How can I pass the data that we have read from the db adapter in the above format
Pls suggest a solution for this.
Published by: user_ds on June 15, 2011 02:38
Published by: user_ds on June 15, 2011 02:47HI'.
1.) initialize a new variable 'counter' of type int, and assign inside initialize counter = 1
2.) put the card1 DB and DB map2 invoke the of inside a while loop, then put it
condition (that you want to use) for the number of times you want to hit the DB again and again
3.) use affect the activity and inside this use Add and put the [$counter] on the expression of xsl to map to the next node
4.) now use a beneficiary within an Assign activity where increment you counter + 1Yatan-
-
How to manage the structure of the event with two loops
I have a question about the structure of the user event with 2 buttons?
key 1: START LOGGING DATA
key 2: STOP LOGGING DATA
How do I control my
structure of the event so that it will work? because now that the loop is save data... I can't stop the loop, when I clicked on buttons.
super_saiyans wrote:
the problem with moving it is that I don't have control of the DATA RECORD STARTING?
Of course, you do. When you get your press conference button, you say your state machine to move to the State of logging. You must also make sure that you return to visit the State to wait for the event to check out the events of the stop button.
-
OSB: Replace the action inside a loop for
Hi all
She seems like a simple question but I'm breaking my head for now quite sometimes.
I have a recurring element in my diagram. I need to get the value of this repetitive element and convert it to uppercase.
For example:
I need to change the value of using phone uppercase (reminder and Contact)My XML <Telephone> <Telephone Number> <phoneUsage>Contact</phoneUsage> <phoneNo>767676</phoneNo> </Telephone Number> <Telephone Number> <phoneUsage>Callback</phoneUsage> <phoneNo>767676</phoneNo> </Telephone Number> </Telephone>
For this I use a loop For:
I do not know how to move the index value in the Xpath expression replace $body, phone, TelephoneNumber, phoneUsage.For variable TelephoneNumber in ./Telephone/TelephoneNumber of variable body Indexed by variable TelephoneNumberIndex with total count in variable TelephoneNumberCount Do ( Replace $body/Telephone/TelephoneNumber/phoneUsage in variable body with fn:upper-case($body/Telephone/TelephoneNumber[xs:int(i)]/tro:phoneUsage) )
Can you help me please on this? I tried $ phone/body/TelephoneNumber [xs:int (i)] / / phoneUsage, but it generates an error.
Thanks in advance for your time and support.For each [TelephoneNumber] in [. / phone/Tel...] ./Telephone/TelephoneNumber
[body]
Indexed by [undefined Variable] with countdown in [undefined Variable]
Do)Replace [content of the node] [. / phoneUsage]. / phoneUsage
in [TelephoneNumber] with [fn:upper - case ($...)] fn:upper-case($TelephoneNumber/phoneUsage/text()))
Kind regards
Anuj -
Help with a loop For passing parameters...
Hello
I am creating four cubes in Papervision using a loop for. The cube class requires, as the first parameter, a MaterialsList. I created four different MaterialLists in my code with the names materialsList1, materialsList2, materialsList3 and materialsList4. In a loop for, I'm trying to pass these variables as MaterialsList parameter. It does not work. If I use the variables themselves in the code, it works fine, so I know that my problem has something to, with how I'm data, type the dynamic name (see Actionscript below). Can someone please? Thank you!
The Actionscript code:
for (var i: int = 1; i < 5; i ++) {}
var cube: Cube = new Cube like MaterialsList (("materialsList"+i), 396, 40, 494, 8, 8, 8);
container.addChild (cube);
Cube.x = i * 430;
cube.rotationY = 180;
Cube.Name = "the cube" + i;
trace (cube. (Name)
cube.addEventListener (InteractiveScene3DEvent.OBJECT_OVER, objectOverHandler);
cube.addEventListener (InteractiveScene3DEvent.OBJECT_OUT, objectOutHandler);
cube.addEventListener (InteractiveScene3DEvent.OBJECT_PRESS, objectDownHandler);
}
You are welcome.
If you're still able, please mark this thread as answered.
-
How to use the user with event loop event
Hello
I want to communicate between 2 VI, so I have a global variable (boolean) who gives the order to an event tool to run. The problem comes from the fact that event loop accepts no global variable, I found on the forum that I can use the user event. Of course, the second VI works normally when I push the button (boolean) in there to run the event loop. Please can someone explain me how to do this, I am a chemist.
Thank you.
You enter the receiver structure of event for the event you want to receive.
To do this in two screws, you will have to share the user between them event reference.
-
Work of what SSD the best with iMac 2013 for After Effects CS6 Max
Hello
I'm running Ae CS6 version 11.0.4 on one
iMac
27-inch, late 2012
3.2 GHz intel Core i5
32GB DDR3 1333 MHz Ram
Hard drive 7200 RPM
Graphics - NVIDIA GeForce GTX 1024 MB 675MX
I have a 64 bit OS
OS X 10.9.5 (13F34)
When I try to use 3D drawn with RADIUS my computer is practically useless.
Is there a way I can set it up to work as what?
Or,
Do I need an SSD for the max?
If so,.
Please give me some suggestions of good compatible SSD for my iMac?
Unfortunately C4D Lite does not come with CS6. CS6 options include Boris FX, Zaxworks 3D element and a few others. If you make a life with AE then one of these plugins will allow you to save more than their cost in a few projects. I would like to try the demo versions to see which suits you best and who do the job with the least amount of fussing around.
-
Ajouter.1 with a loop for?
I tried to add du.1 increment a value using a loop for, but the for loop has not added to the value of the specific increments.
So instead of se.1,.2,.3,.4, etc., I got the following when I traced it the loop:
0
0.1
0.2
0.30000000000000004
0.4
0.5
0.6
0.7
0.7999999999999999
0.8999999999999999
0.9999999999999999
This throws my code completely because it causes the loop to execute unnecessary once and the returned value causes other functions are not working well. Please advise on how to solve this problem. I note that this is not a problem once you get a.25.
use .toFixed (1); After the value
-
How to use the select statement in loop for
Hi all
My question is can I use a select statement in for loop like as follows.
for the key in the selection of one_table key.
When I use this am getting an error as found select invalid I ID
How to select a statement use in loop for
Please suggest me.
Thank you
SreeHello
You can use code below
For key in (select button from table_a)
loop
If key.key = 1 then
-insert statement
on the other
-Select statement
end loop;Thank you
Naveen. -
Assign variables with a loop for
Hi all
I'm variable loading for a quiz of xml using Ajax:
$.ajax({) type: 'GET ',. URL: "loadVars.xml", data type: "xml." success: {function (xml)} The data that I get are the following:
word1 = $(xml).find('word1').text ();
word1distracter1 = $(xml).find('word1distracter1').text ();
word1distracter2 = $(xml).find('word1distracter2').text ();
word1distracter3 = $(xml).find('word1distracter3').text ();
There are about 20 words and I want to use a loop for assign variables on both sides of the equation.
for (var i = 1; i < 20; i ++) {}
What's the syntax? I tried:
"word" + i =
eval("word'+i) =
etc.
Any help much appreciated.
OK found!
window ["word" + i] = $(xml).find("word"+i).text ();
-
Timeline question on how I can change the time in a loop for
In the following code segment:
How can I make the time to be 15 + 2 * index seconds, for example, instead of 15 s always?for(index in [0..3]) Timeline { keyFrames: [ KeyFrame { time: 0s values: cars[index].translateX => 0 } KeyFrame { time: 15s values: cars[index].translateX => 800 tween Interpolator.LINEAR } ] }.play();
Any input would be greatly appreciated!
Thanks in advance!I imagine something like (not tested)
var duration: Duration; var tmp = bind index on replace { duration = Duration.valueOf((15 + 2 * index)* 1000); } : : KeyFrame { time: bind duration values: cars[index].translateX => 800 tween Interpolator.LINEAR }
To get help sooner, after a NBS.
Note that I'm not JavaFX and the suggestion is the API reading.
DB
Edit you get coffee and complete your registrations pending. Answering questions on a forum should be identified as such, for those who come across them in a search.
Published by: Darryl Burke
Published by: Darryl Burke - added the necessary: between the lifetime and the
-
shorten the few lines of codes with a loop for?
Hello, I have a few lines of code I want to shorten.
, Someone has any idea how to make this right?
Thank you!
:
-
go to the next iteration of loop for and continue execution of the previous iteration
Hello everyone,
I want to run a loop with an offset to each iteration. I explain: I want to run a task multiple times (for loop), but with a variable delay in each iteration.
Thus, if we put t = 0 before you run the loop and I use 3 iterations. I put a writ of execution to the first ieration after 3 sec then skip to the next iteration of course without waiting the end of the previous iteration and run the current iteration after 1.5 s and go to the third ieration (once again without waiting for the latest iteration).
I conclude: this is a simultaneous execution of a for loop (10 to 50) from different eras (variable time between t = 0 and each running of each task.
The problem I found in the loop is the fact that I have to wait the end of the time delay in each iteration bfore going on to the next.
Best regards
In all languages, a loop iteration FOR happens AFTER previous. However, go with the parallelized FOR loop can happen to you.
Maybe you are looking for
-
Hello eveyone, Does anyone know why the download for iOS 10 via iTunes takes a 2.31 GB download all live only 1.1 GB? Thanks in advance
-
DesignJet 1055 cm prints cyan bands constantly any help would be much appreciated
Hello world First, I want to mention that I am a technician in the field for all 20years on the road. My question here is that one of my clients have HP DesignJet 1055 cm that prints strips cyan on everything you send to the printer. Including test i
-
Update of Acquisition of tension over on front panel
I have this simple motor driver program that communicates with a stepper motor controller. I now have to combine this vi with person who acquires a finite number of data points of tension. I found an example of tension over who works with my daq (usb
-
NO tab "speed up" on Intel RST MISTLETOE on U310
Hello I'm not able to see "speed up" tab on my ideapad u310 Intel RST GUI. Is this usual somehting wrong with my system, or is?
-
Is it possible to install a compatible XP G/A to a Win7 PC?