Constant of the ring: 30 max values? LV 8.0
Hey all,.
I try to use 50 pairs, but you're clipping off at 30. Is there any solution for this? Thank you.
Well, if you did 50 you did better than me!
I couldn't get in eight and could add no more.
As a workaround for you...
(1) copy the constant for a new VI
(2) click right change of control
3) pop up to create the property node > Stirngs
(4) create an array of channels and that wire to the Stirngs
(5) run the VI the ring should have all the values now.
Copy it on your VI and replace it with a constant.
I called you a bug for now.
Ben
Tags: NI Software
Similar Questions
-
the min and MAX values maintain their good values tia sal22
the min and MAX values maintain their good values tia sal22
Hi all
I have problems a little value to stay in their correct min and max values min and max.
Continue to change their values (up and down) trying to get the max value to only display the maximum value at a given time and the same for the min value. I looked at the examples max and min and it seems that it should be in a while loop
http://forums.NI.com/NI/board/message?board.ID=170&thread.ID=359822but I would add another while loop and if so put it in the loop for? or is there a better way to do it.
TIA sal22
Hi sal22,
I thought it was just one example you found somewhere, because it is called red rooster. See the attached example.
Mike
-
SQL, find the MAX value and placing it as a QVariant
I have a database that is loaded and defines the customerID as 0 which is ideal when the database is not be saved and restored, etc. The question I have is that I added the possibility to users to restore a backup in the app, and now I have to do a query to select MAX (customerID) so that there is no duplicate CustomerID when you add or save items. Here is the following code, I knew that I must settle, specifically the 0 highlighted in red. I need zero to be the new customerID max value:
int SettingsStorage::load(int& lastID, GroupDataModel *model) { // number of locations loaded. QSettings settings(m_author, m_appName); int loadedCount = 0; QVariant items; // Get the last customer id first. // ID's will be generated by incrementing this number // Note values coming from settings should be cast to the // required type. lastID = settings.value(m_lastCustomerIDKey, 0).toInt(); items = m_sda->execute("SELECT * from items ORDER BY datefield"); qDebug()<< "the ID" << items; // Load all the locations from the database. foreach( const QVariant& temp, items.value
() ) { Location *p; if (loadLocation(temp.value (), p)) { model->insert(p); loadedCount++; } } return loadedCount; } Ive tried the following, but it doesn't seem to do anything:
int SettingsStorage::load(int& lastID, GroupDataModel *model) { // number of locations loaded. QSettings settings(m_author, m_appName); int loadedCount = 0; QVariant items; // Get the last customer id first. // ID's will be generated by incrementing this number // Note values coming from settings should be cast to the // required type. QVariant endID = m_sda->execute("Select MAX(customerID) from items") lastID = settings.value(m_lastCustomerIDKey, endID).toInt(); items = m_sda->execute("SELECT * from items ORDER BY datefield"); qDebug()<< "the ID" << items; // Load all the locations from the database. foreach( const QVariant& temp, items.value
() ) { Location *p; if (loadLocation(temp.value (), p)) { model->insert(p); loadedCount++; } } return loadedCount; } Any help will be loved and marked solutions.
-Thanks in advance
I was wrong about executeAndWait(). Somehow, I decided that you use the SqlConnection object, but seems his SqlDataAccess. So disregard my previous post. Keep your execute method, but you must change your code to something like this:
QVariant endID = m_sda->execute("select max(customerID) as m from items"); QVariantList vlist = endID.value
(); QVariantMap vmap = vlist.first().toMap(); lastID = vmap["m"].toInt(&ok); So I changed your SQL query slightly and added "that m" so I will have something to refer later.
Then I cast QVariantList because it is where are the results.
Then because we know its going to be the only record, I took the 1st element in the list and converted to QVariantMap.
Last step is to get the maximum.
Should work this time
-
Get the Max values and average of the different cycles in the single channel
Hello
I'm trying to get the Max values and average of the single channel that has different cycles it contains. I tried to use commands such as Chnclasspeak3 and chnpeakfind, but they were not useful for me. What I need is the Max values and average of the different cycles numbers saved in the data channel.
Exampld if the string contains 5 numbers of repetitive cycles, then we must find the maximum values and the average of these 5 cycles in the single channel. Attached reference data. This is the .raw file and I have the plugin for it to use in diadem 11.1.
Kind regards
X. Ignatius
Hello, Ignatius,.
Sorry, it took some time to provide a replacement based on the script for the function. Please take a look at the attached script. I changed the script to use my function if the tiara-version is less than 12. My script function is not as fast and more stable than the implementation of tiara, but for now, it does the job
Andreas
-
How do you replace the values in a control of the ring?
Hello
I have a control of the ring (text values) in Labview 2009 and it is populated by programming with 20 points. The end user selects from the list items or fills with a new item based on a checkbox to add a new item. What I want to do, that's when section 20 is entered and the user selects the check box next to the point 21 to add I want around rap on the first item in the list and crush him. Is this possible and a sample VI would be great demonstrate how this is done. Any help would be greatly appreciated!
Thanks in advance
Charlie
Replace the subset of the table. You need to keep track of the element to replace in a shift register. I would also like to keep the list in a shift register to make your life a little easier.
-
get control of the ring label.value
Hello
I want to read the text of the index selected in control of the ring. I have 5 values(ONE,TWO,THREE,FOUR,FIVE) different in my control of the ring, if I select the 3rd value 3 must be stored in my char variable. If I select the value 2 is returned TWO...
Can anyone suggest...
Works perfectly.
Thanks Roberto
-
How to change the limit Max in the Ring
Hi all
I'm trying to use a ring to implement the 4 different freq form 18Hhz to 20Ghz, but the ring Max limit only 65535. How I change the limit max? Or no matter what way we could set up 4 difference Freq number of user select any person they wish to use.
Thank you
Change the representation of the ring, it is default U16.
-
Extract the value of the ring of text created by program
Hello
I have a spreadsheet I need to extract a single line. The first column of the worksheet has non-espacees values of time and feed these time values in a property node that is introduced in the Strings [] of a ringtone text indicator property node. The purpose of this is because I want the user to select only time for which the data were collected and, ideally, the zero point of time in the list corresponds to the zero line.
However, when the user selects an element of the ring of text, the control passes the chain selected and not the associated value, despite the use of the "Value" property node You have any idea why this is happening? I know I could use the table 1 d of research VI to solve this problem, but I'm more interested in why it does not work. I have attached a few example data as well as the VI in question for reference. Thank you very much for your help!
EDIT: It seems that this can explained by the fact the string, I am animals in the field [] of strings are numbers. When I did, I swapped the hours with random text strings, it works beautifully. Curious and curious...
Jeff and Nathand,
Thank you both for your responses. In fact, I was just able to solve the problem on mine in Exchange for the VI of subset of table with the Index of table VI. It works perfectly now, even with the values not assigned (even if it's an excellent suggestion, Jeff). Nathand, in which your question, select the indicator that I had attached to the control time no was not to display the value (0,1,2...) than I expected but the character string chosen itself, (-800,-750...) which confused me into thinking that something was wrong. I have attached the fixed VI for reference.
-
Get the current value of a control of the ring
I have a control of the ring that has the following values. See attacment. I need to get the current value of this one and use it as input for another function, but First I would like to get the current value and save ina text file. I tried this
if (event == EVENT_LEFT_CLICK_UP) || (event == EVENT_LEFT_CLICK_DOWN) { int p; GetCtrlVal (panelHandle, PANEL_RINGSLIDE_1, &p); FILE *OutFile = fopen("C:\\Users\\Student\\Desktop\\ringtest.txt","w"); fprintf(OutFile,p); fclose(OutFile); }
I need to get the current value of the ring (& p) to write to the file ringtest.txt.
Also, I need to use this value (& p) as another entry in the same program.
IE value of & p must be used in
b = c * 5; where c is the value of the current & p.
Can any 1 help?
You're right: EVENT_LEFT_CLICK_DOWN is not a valid event for the CVI. Valid events are listed in the userint.h file, and are the only events that can be caught in the trap in a point of order. On the other hand, you're assuption on EVENT_VAL_CHANGED is correct: you can trap forget the EVENT_CLICK_UP event.
According to the second question, looking at the definition for fprintf you must pass a string format as the second parameter to the function, then the value to write to the file. In your case, the correct syntax is:
fprintf (OutFile, "%d", p);
-
Hi team,
I have the following query where I need to find the max value
[code]
with t as)
Select 'L1' R_nm, R_Data 'Data', 'Obj' R_Obj, r_prec 'Wd', '2' double val
Union of all the
Select 'L1', 'Data', 'Obj', 'No', '4' double
Union of all the
Select 'L2', 'Data', 'Obj', 'No', '4' double)
Select t.*, max (val) on rk (partition r_nm, r_data, r_obj) of t
[/ code]
My results should be
[code]
r_nm r_data r_obj r_prec rk val
L1 Data Obj 1 2 Wd
L1 data Obj 4 No.2
L2 Data Yes 1 1 Obj
[/ code]
Thank you
Hello
It seems that you are not interested in the MAX at all. Looks like you want to classify the lines, such as one that has the lowest value is assigned the number 1, the 2nd line with the lowest values gets 2,... and line with him gets N-th lowest value N. If is not serious if the MAX is 4, 2 or 420.
Here's a way to do it:
SELECT T.*
, RANK () OVER (PARTITION BY r_nm, r_obj)
ORDER BY val
) AS rk
T
ORDER BY r_nm, r_obj
val
;
Depending on how you want to deal with links, you can use ROW_NUMBER or DENSE_RANK instead of RANK.
-
Need to sum over all coulumns except for the needs of a coulumn max value
Hi gurus,
I have a requirement like:
I have 3 columns C1, c2, c3.
Day 1, Records values are 100,150,200
The day2 Records values are 100,150,300
End result... for the column C1 and C2, I should get sum of them
so the result for C1 according to the above values: 200
C2 = 300
But for column C3, I should get only the maximum value... like 300 (not money)...
Tuition assistance box by setting a flag on the date of the report max... We can do this... Are there others that it is possible. (End ETL or SPR or before)
Thank you.For C3 column rather than display all values like 200, 300, just to show the max value only until you capturing below as and when you sum of value remain 300. Give it a try. It can be by RPD or in the report.
Day 1, Records values are 100,150,300
The day2 Records values are 100,150,300so much sense check
Thank you
-
How to find the max value of scrollV in AS3?
I used the response from Ned to get my 3 fields of scrolling text set based on the value of one of them. Thanks Ned!
The other two text fields scroll to match the text box 'parent', but in the end – you get to the last scroll position - the other two do not update and 3 text fields are out of alignment. It's just at the end of the roll. The rest of the scroll values line up. I think that if I can find the scrollV max value, I can force the two others to scroll one last time when this value is reached by the text field "parent".
The textfield object has a property for this: maxScrollV.
-
How to find the first max value for each item
Hello
I have the me_result of the table as below,
SELECT * FROM me_result;
ID ||| ELITE ||||||||||| FREQ_ITEM | COMBINED_STR | SUP
1 ||; 1; 10; 2; 3; 4; 5; 7; 8. 1 ||||||||||||||; 1; 10; 2; 3; 4; 5; 7; 8 ||| 2
2 ||; 1; 10; 2; 3; 4; 5; 7; 8. 2 ||||||||||||||; 1; 10; 2; 3; 4; 5; 7; 8 ||| 2
3 ||; 1; 10; 2; 3; 4; 5; 7; 8. 3 ||||||||||||||; 1; 10; 2; 3; 4; 5; 7; 8 ||| 2
4 ||; 1; 10; 2; 3; 4; 5; 7; 8. 4 ||||||||||||||; 1; 10; 2; 3; 4; 5; 7; 8 ||| 2
5 ||; 1; 10; 2; 3; 4; 5; 7; 8. 5 ||||||||||||||; 1; 10; 2; 3; 4; 5; 7; 8 ||| 2
6 ||; 10; 2; 3; 4; 5; 8; 9. 1 ||||||||||||||; 10; 2; 3; 4; 5; 8; 9; 1 ||| 1
7 ||; 10; 2; 3; 4; 5; 8; 9. 2 ||||||||||||||; 10; 2; 3; 4; 5; 8; 9 ||| 2
8 ||; 10; 2; 3; 4; 5; 8; 9. 3 ||||||||||||||; 10; 2; 3; 4; 5; 8; 9 ||| 2
9 ||; 10; 2; 3; 4; 5; 8; 9. 4 ||||||||||||||; 10; 2; 3; 4; 5; 8; 9 ||| 2
10 ||; 10; 2; 3; 4; 5; 8; 9. 5 ||||||||||||||; 10; 2; 3; 4; 5; 8; 9 ||| 2
I need to find the first COMBINED_STR max for each element of the ELITE,
I mean, max value is the max REGEXP_COUNT (combined_str,' ;')))
really, I try to write down, but I had a lot of values for each ELITE and I need only the first, that
SELECT * from me_result
WHERE (ELITE, REGEXP_COUNT (combined_str,' ;')))) IN
(SELECT ELITE, MAX (REGEXP_COUNT (combined_str,' ;'))))) ME_RESULT ELITE GROUP);
I need the result to be as below.
1; 1; 10; 2; 3; 4; 5; 7; 8-1; 1; 10; 2; 3; 4; 5; 7; : p
6; 10; 2; 3; 4; 5; 8; 9 1; 10; 2; 3; 4; 5; 8; 9; 1 1
any help please,.
Published by: user11309581 on July 10, 2011 22:03Can be
with t as (select 1 ID, ';1;10;2;3;4;5;7;8' ELITE, 1 FREQ_ITEM, ';1;10;2;3;4;5;7;8' COMBINED_STR, 2 SUP from dual union all select 2 ,';1;10;2;3;4;5;7;8' ,2 ,';1;10;2;3;4;5;7;8' ,2 from dual union all select 3 ,';1;10;2;3;4;5;7;8' ,3 ,';1;10;2;3;4;5;7;8' ,2 from dual union all select 4 ,';1;10;2;3;4;5;7;8' ,4 ,';1;10;2;3;4;5;7;8' ,2 from dual union all select 5 ,';1;10;2;3;4;5;7;8' ,5 ,';1;10;2;3;4;5;7;8' ,2 from dual union all select 6 ,';10;2;3;4;5;8;9' ,1 ,';10;2;3;4;5;8;9;1' ,1 from dual union all select 7 ,';10;2;3;4;5;8;9' ,2 ,';10;2;3;4;5;8;9' ,2 from dual union all select 8 ,';10;2;3;4;5;8;9' ,3 ,';10;2;3;4;5;8;9' ,2 from dual union all select 9 ,';10;2;3;4;5;8;9' ,4 ,';10;2;3;4;5;8;9' ,2 from dual union all select 10 ,';10;2;3;4;5;8;9' ,5 ,';10;2;3;4;5;8;9' ,2 from dual ) select ID,ELITE,FREQ_ITEM,COMBINED_STR,SUP from ( SELECT ID,ELITE,FREQ_ITEM,COMBINED_STR,SUP, ROW_NUMBER() over (PARTITION BY ELITE order by id) RN FROM t WHERE (ELITE,REGEXP_COUNT(combined_str,';')) IN (SELECT ELITE,MAX(REGEXP_COUNT(combined_str,';')) FROM t GROUP BY ELITE) ) where RN=1 order by id ID ELITE FREQ_ITEM COMBINED_STR SUP ---------------------- ----------------- ---------------------- ----------------- ---------------------- 1 ;1;10;2;3;4;5;7;8 1 ;1;10;2;3;4;5;7;8 2 6 ;10;2;3;4;5;8;9 1 ;10;2;3;4;5;8;9;1 1
-
Get the max value with other areas
Hi all
I have a table as below
Value name
- - - - - - - - - - - - - - - -
A1 5
A3 10
A2 7
A2 9
A1 10
What I get is the max (Value) and with the consolidation of its name
Value name
- - - - - - - - -
A2 16
Thank you
Alex
Published by: user8606416 on June 1, 2011 10:17
Published by: user8606416 on June 1, 2011 10:26Depends on how you feel on one of the links of:
SELECT name, value FROM (SELECT name, SUM(value) FROM table GROUP BY name ORDER BY 2 DESC) WHERE rownum = 1 SELECT name, SUM(value) FROM table GROUP BY name HAVING SUM(value) >= ALL (SELECT SUM(value) FROM table GROUP BY name)
among many other methods. The first takes a single arbitrary registration in the case of a tie, and the second shows all the related records.
John
-
How to get the Max value in Essbase
Hello
I have problem to get the max value of 3 years in Essbase.
How can I get the max value of Dec 2009, Dec 2010, Dec 2011.
Suppose the value of Dec 2009 = 1000, dec 2010 = 1500 and Dec 2011 = 2000
I want to get the max value of these three value, how can I do this in the Essbase calculation Script.
Any idea?
Thank you.
Kind regards
JoniYou did not specify if year and period are there separate dimensions, in any case as always a number of different possbilities and I don't have much time today to think about, but only one method can be to use @MAXRANGE
DIFFICULTY (other members to set, 'Dec')
'MemberToStoreAgainst' = @MAXRANGE("MemberToFindMaxRangeFor","2009:"2011");
ENDFIX
See you soon
John
http://John-Goodwin.blogspot.com/
Maybe you are looking for
-
Update of FF 18.0.2, now FF crashes at startup
I upgraded FF 18.0.2. Update immediately after FF crashes at startup. FF is running in safe mode.Crash ID: bp-f138d304-0040-4ac9-b51e-ab8c12130206 Please notify. Thank you.
-
empty space between the scroll bar horizontally and toolbar Add on
A blank grey bar appears at the bottom of my screen/window between the horizontal scroll bar and the bar of State/add-on. The grey area empty is just under 1/2 inch from top and runs the entire width of the screen/window, less the left sidebar. When
-
pavalion g62206tx: g6-2206tx hp pavalion
I cleaned the thermal on the CPU and the GPU when I was cleaning the heat sink what kind of thermal paste I should apply not PC and laptop have different thermal paste
-
How to ACTIVATE Win XP Log on screen?
Win XP Home Edition SP3. The Welcome logon screen does not appear at startup; -PC proceedes directly on the screen in Win XP. I enabled users 'Name' (Administrator) password + Guest; -they appear when I Log off/Log. I would like to see the logon scr
-
Original title: starting Windows Error Message Starting Windows I get the message: error in entry c:\windows\system32\spool\drivers\w32x86\3\DLCCtime.dll RUNDLLentry