Executing "bring to center" on a free cursor in a log XY graph brings the cursor to the top rim of the graph (instead of the center)
Dear support,
dear LV users,
selecting "bring to center" for a free cursor in a XY graph does not
bring the cursor into the center of the graph, but instead the command brings it to the
mean/average value. This is not an issue for a linear mapping
of the axis [due to the fact that the center of the axis is equal to
the middle/average value of the end points on the axis]. But when
mapping of the axis is logarithmic, the cursor ends up on the top of
the screen. That is because the average value of the end points
(min(y_axis)+max(y_axis))/2) is not equal to the center of the axis.
Is that a wished behavior, please?
Example: For an y_axis = [1..100], the awaited center position would be at
10 and not at 50.5. The center position for the logarithmic mapping
should be calculated as (log(min(y_axis))+log(max(y_axis)))/2, IMHO.
Kind regards,
Solved!
Go to Solution.
You are right, LabVIEW chooses this form (min(y_axis)+max(y_axis))/2).
You can go to "idea exchange".
Link:
http://forums.ni.com/t5/ideas/v2/ideaexchangepage/blog-id/labviewideas
here you can see how many people like your idea.
Perhaps it will be considered in the next version of LabVIEW.
Similar Messages
-
Costs to be recorded to Internal Order instead of Cost Center
Hi,
My client has created a new Personnel Area and has started hiring people for it. They did not create a cost center for this. Meanwhile, if any costs are to be recorded for the employees in this Personnel Area, the client wants them record to an Internal Order (instead of Cost Center). Later, when they create a cost center, they may transfer the costs from Internal Order to the Cost Center.
What needs to be done to satisfy this scenario.
Best Regards,
Veerahi
create internal order through kO01, which is of type real order, and post all the expenses by keeping this internal order as cost object. later as you want to settle this internal order to cost centre, you should have settlement profile attached to the internal order to settle that. please update settlement profile while creating the internal order
krishna -
Controling the cursor position
Hi all,
I have two x, and y signal outputs from a dll module and I plan to use them to control the cursor position. One problem I'm facing is that my signals are variable enough to cause the cursor to vibrate in stationary setting. So, I use hysterysis (putting threshold) to eliminate these fluctuations but the drawback is that keeping the treshold high enough to eliminate the fluctuations keeps me from getting a nice, smooth movement when the speed of movement (rate of x and y changing) is low. Any ideas or suggestions will be appreciated.
p.s. I am using "SetCursorPos".dll as you might have already guessed.
Thank you,
ElnazThe formula for an exponential filter of degree D is the following:
New Average = (New Value + (D-1)*Old Average)/D
I usually add a special case for startup so that D is never greater than the number of points.
As I said, it is a low-pass filter, much like using a running average. I usually like it because the state is simply a single value (Old Average) instead of the array of values you have to keep around to do a running average.
As to the new question of separating high-frequency noise from your high-frequency signal, that is a bit more complicated (obviously). You should take a power spectrum of the noise to see if there is a characteristic feature you can use (cutoff frequency, strong peaks). -
When I run the cursor over a template it shows several pages but when i select the document it only brings up the first two pages to edit. How do I see them all?
Skimming the templates in the Template Chooser shows you all of the pages available in the template once you open it. You can insert the one(s) you want, even more than one of any of them. Most users don't want or need all of the different pages, especially when they start the document.
-
Center the cursor on the Waveform Graph?
I have a waveform graph where the user can adjust the scale on both the X and Y axes. The "problem" that I am having is that if the scale's range is set too far from where the cursor is at, the cursor will be off screen and not selectable. So, I am trying to center the cursor to the scale when the scale is changed or via a button. Here is the code that I have written for one of the Cursor plots:
Select Case setBlueCursor
Case 1
blueCursorPt.Plot = plotInlineTorque
inlineTorqueMax = yAxisInlineTorque.Range.Maximum
inlineTorqueMin = yAxisInlineTorque.Range.Minimum
blueCursorStartY = (inlineTorqueMax + inlineTorqueMin) / 2
blueCursorStartX = (XAxis.Range.Maximum + XAxis.Range.Minimum) / 2
blueCursorPt.YPosition = blueCursorStartY
blueCursorPt.XPosition = blueCursorStartX
This code will center the cursor like I want but then I can't move the cursor after that as it is "stuck" at the position that I have coded it. The problem appears to be with the last two lines of code here. I do not know of any other way to do this though. I have tried the "moveCursor" method but the end result ends the same way, with the cursor stuck in the center and can't move. Any help on a solution? Is there a better, easier way to do this? I'm new to Measurement Studio and .NET.
Thank youThis code works. It appears that I was calling the subroutine that this code is located in over and over in another part of my program.
-
Profit center line for free of charge items
Hi all
Is it possible to force SAP to write the create a profit center items for free of charge items of SD invoice (positions TANN), of course with zero value but with the quantity data?
Thanks.
DavideHi,
in NewGL I am sure that its not possible as there is no accounting document created (which contains the PRCTR information as well) if the revenue is zero.
And I am pretty sure that its not possible too in old PCA (Ledger 8A).
CO-PA docs. can be created for free of charge items (otherwise the cost of these items are missing in costing-based CO-PA).
BR Christian -
I have lines from the top of the screen to the bottom 4 lines. They are the size of the cursor and the one on the right acts like the cursor. Blinks. The other day I brought compuer up and I have a white transparent line right down the center of the screen about 1/8 inch thick. Does anyone know what is cauing this? Also computer is running slow.
Post a screen shot if you can by pressing cmd+shift+4 for only a certain section or cmd+shift+3 for a full screen shot.
-
Programatically bring the cursor to a numerical control while VI running
Does anyone know how to programatically move the cursor to a particular numerical control while a VI is running?
I have a VI that polls the user for information, and at one point, the user has to repeatedly type numbers into the same numerical control and press enter. For a number of reasons, it is awkward to be messing with the mouse during this particular test. Each time the user presses a paricular button to send data a to file (which I have linked to the Return key on the keyboard by means of 'key navigation'), I would like the cursor to jump to the relevant numerical control ready for the next number to be entered on the keyboard. Does anyone have any ideas how to do this?
I have set up a separate key navigation for thenumerical control in question, so if the user presses the Esc key, this control becomes active and the cursor is in place, but I would like to move the cursor there without this extra user button press if at all possible.
Regards,
WillWill
I'm not sure if this is what you are looking for but it might do what you need.
On the block diagram right click the control in question >>create>>property node>>key focus. Now right click the property node and select Change to write. Wire a boolean true constant to it and place this snippit in the appropriate place(s) in your code depending upon your architecture.
Hope this helps.
Using LabVIEW 2010SP1 and TestStand 4.5 -
Cursor stays arrow on links and brings up ads instead of link
When I am in Firefox sometimes on a webpage the cursor will stay and arrow no matter what link I hover over. I notice that regardless of what link I click an add will come up in a new tab, but only when the cursor behaves this way. When the cursor is a hand as it should be all is well. In addition recently even though I am running firefox 24.0 I keep getting a new tab that opens and says update my firefox to the most recent now. Any help is welcome. I run AVG Antivirus and use Advanced System Care 6 to help maintain my PC they haven't indicated anything yet. I'm certain that somehow my system has gotten malware or that Firefox has been compromised.
hello, could you go to ''firefox > help > troubleshooting information'', copy the contents of that page and paste them here into a reply on the forum? this might give us a clue what is going on...
-
How i can fixup the cursor in the center of plot at any time?
i need the cursor show the data of the points in plot,but i found after the plot zoomin,the cursor can not show .how i can fixeup the cursor at any time?
thanks a lot.Hi Longsan,
So I tried to reproduce the issue you were seeing and I believe I know what is going on. If you zoomin and the max and min of the axes are smaller than the cursor position, the cursor will no longer be in the viewing area of the graph. Therefore, you would want to reposition the cursor after you zoom in. For example, in Visual Basic you could use the command
CWGraph1.Cursors(1).XPosition to change the position. I thiss out and it seems to work correctly. Let me know if try this and you are still having trouble.
Thanks,
Caroline
National Intruments
Thanks,
Caroline Tipton
Data Management Product Manager
National Instruments -
How to determine the cursor record count before the "open cursor"?
Is it possible to determine the record count of an explicit cursor without running a count()? Say, my cursor definition is something like this,
CURSOR cur_vehicle
IS
SELECT os.order_id, os.order_item, vs.part_id
vs.part_num,
vs.iso_num,
vs.model_yr
vs.dealer_cde,
vs.cust_cde,
px.plant_cd
FROM parts_source vs,
orders_source os,
plant_tbl_crossref px
wHERE os.order_id = vs.order_id
AND vs.part_id = os.part_id
AND vs.plant_cde = px.plant_cde
ORDER BY os.order_id;
I want to log the count of records returned by the above cursor prior to the first fetch, without running a count(1) for the query in cursor select.
I know adding " Count(1) over(order by null) " in the cursor SELECT will bring it. But that does not help me log the record count to some log file or table before opening the cursor for processing.
To conclude, my objective is to update the record count of cursor in some table before processingsarvan wrote:
Is it possible to determine the record count of an explicit cursor without running a count()?
..snipped..No. The only way to do it correctly is inside that select.
Each select is a consistent read. Which means that if this is done as 2 select statements, the 1st select can see a different version of the data than the 2nd select statement. does. So if you want a count and that to be consistent and on the same version of the data than the select, it has to be done as part of the select.
Also consider what a cursor is. It is not a result set of sorts that is created in memory upfront - with a convenient interface that tells you the size/number of rows of that result set.
A cursor is basically a program that reads database data as input and produce output. A fetch from a cursor is an instruction for this program to execute and output data.
There's no data set that is created by the cursor from which the count can be determined. The cursor program does have state variables - like +%RowCount+ that specifies how many rows the cursor has thus far output. And you need to run that cursor to the end (no more output) in order to determine the total number of rows output by the cursor. -
Cursor within the cursor showing error
Hi,
I am using a cursor within the cursor to create a procedure.I am getting the below error while compiling this
15/7 PL/SQL: SQL Statement ignored
16/14 PL/SQL: ORA-00942: table or view does not exist
79/10 PL/SQL: Statement ignored
82/31 PLS-00364: loop index variable 'I' use is invalid
84/10 PL/SQL: Statement ignored
84/50 PLS-00364: loop index variable 'I' use is invalid
98/10 PL/SQL: Statement ignored
101/31 PLS-00364: loop index variable 'I' use is invalid
103/10 PL/SQL: Statement ignored
103/50 PLS-00364: loop index variable 'I' use is invalid
Am i using a wrong syntax,Could anyone help me on this..Please find my procedure code below
CREATE OR REPLACE PROCEDURE DM_EIS.YOY_PURGE_PRC
AS
VAR_TEMP NUMBER := 1;
VAR_TAB_NAME VARCHAR2(100);
VAR_TAB_OWNER VARCHAR2(100);
--For fetching table list to be processed
CURSOR CUR_ONE IS
SELECT OWNER,TABLE_NAME,FILTER_DATE,FILTER_VALUE
FROM DM_EIS.NONPART_PURGE_CTL WHERE NVL(STATUS,'NULL') <> 'COMPLETED'
AND PURGE_PREFERENCE='Y';
--For fetching indexs that are to be disabled
CURSOR CUR_IND IS
SELECT * FROM DBA_INDEXES WHERE TABLE_NAME = var_tab_name
AND OWNER = var_tab_owner
AND UNIQUENESS <> 'UNIQUE';
BEGIN
FOR C IN CUR_ONE
LOOP
--CHECK IF TEMP TABLE IS ALREADY PRESENT, IF SO DROP IT.
SELECT COUNT(*) INTO VAR_TEMP FROM ALL_TABLES WHERE TABLE_NAME = 'T_NOPART_PURGE';
IF VAR_TEMP = 1
THEN
EXECUTE IMMEDIATE 'DROP TABLE DM_EIS.T_NOPART_PURGE';
END IF;
---update the columns of Control table
UPDATE DM_EIS.NONPART_PURGE_CTL
SET STATUS = 'RUNNING'
WHERE TABLE_NAME = C.TABLE_NAME
AND OWNER = C.OWNER;
COMMIT;
UPDATE DM_EIS.NONPART_PURGE_CTL
SET START_TIME = SYSDATE
WHERE TABLE_NAME = C.TABLE_NAME
AND OWNER = C.OWNER;
COMMIT;
--Check whether the column value is date or year
IF C.FILTER_VALUE = 'YEAR' THEN
--Move data to temp table and truncate main table
execute immediate 'create table DM_EIS.T_NOPART_PURGE as select /*+ PARALLEL(ext,4) */ ext.* from '||c.owner||'.'|| c.table_name || ' ext where nvl(' || c.FILTER_DATE || ',''01-Feb-2009'') >= ''2009''';
DBMS_OUTPUT.PUT_LINE('Truncating the main table'||C.OWNER||'.'|| C.TABLE_NAME);
EXECUTE IMMEDIATE 'TRUNCATE TABLE ' ||C.OWNER||'.'|| C.TABLE_NAME;
else
--Move data to temp table and truncate main table
execute immediate 'create table DM_EIS.T_NOPART_PURGE as select /*+ PARALLEL(ext,4) */ ext.* from '||c.owner||'.'|| c.table_name || ' ext where nvl(' || c.FILTER_DATE || ',''01-Feb-2009'') >= ''01-Jan-2009''';
DBMS_OUTPUT.PUT_LINE('Truncating the main table'||C.OWNER||'.'|| C.TABLE_NAME);
EXECUTE IMMEDIATE 'TRUNCATE TABLE ' ||C.OWNER||'.'|| C.TABLE_NAME;
end if;
var_tab_name := c.table_name;
var_tab_owner := c.owner;
--Disable the indexes and load data back to main table,
for i in cur_ind
loop
execute immediate 'Alter index '||c.OWNER ||'.'|| i.index_name || ' unusable';
dbms_output.put_line(c.OWNER ||'.'|| i.index_name||' is unusable');
end loop;
---insert back the data into the table from temporary table
execute immediate 'insert /*Append*/ into '||c.OWNER ||'.'|| c.table_name || ' select /* PARALLEL(tmp,4) */ tmp.* from DM_EIS.T_NOPART_PURGE tmp';
commit;
--Rebuild the indexes
for i in cur_ind
loop
execute immediate 'Alter index '||c.OWNER ||'.'|| i.index_name || ' rebuild compute statistics';
dbms_output.put_line(c.OWNER ||'.'|| i.index_name||' is rebuilt');
end loop;
--Gather stats for the table
DBMS_STATS.GATHER_TABLE_STATS(OWNNAME=>c.OWNER,
TABNAME=>c.table_name,
CASCADE=>TRUE,
ESTIMATE_PERCENT=>dbms_stats.auto_sample_size
dbms_output.put_line(c.OWNER ||'.'|| c.table_name||' is analyzed');
---update the columns of Control table
update DM_EIS.NONPART_PURGE_CTL
set status = 'COMPLETED'
where TABLE_NAME = c.TABLE_NAME
AND OWNER = C.OWNER;
commit;
UPDATE DM_EIS.NONPART_PURGE_CTL
SET END_TIME = SYSDATE
WHERE TABLE_NAME = C.TABLE_NAME
AND OWNER = C.OWNER;
COMMIT;
UPDATE DM_EIS.NONPART_PURGE_CTL
SET ELAPSED_TIME =ROUND((END_TIME-START_TIME)*1440,2)
WHERE TABLE_NAME = C.TABLE_NAME
AND OWNER = C.OWNER;
COMMIT;
UPDATE DM_EIS.NONPART_PURGE_CTL
SET LAST_UPDATED_DT = SYSDATE
WHERE TABLE_NAME = C.TABLE_NAME
AND OWNER = C.OWNER;
COMMIT;
dbms_output.put_line('Data Purging is done for '||c.OWNER ||'.'|| c.table_name);
end loop;
EXCEPTION
WHEN OTHERS THEN
RAISE_APPLICATION_ERROR(-20003,' ERROR IN DM_EIS.NONPART_PURGE_PRC'|| SQLCODE||'-'||SQLERRM);
End;
/Oracle is not a Microsoft product. What it appears you are doing is a phenomenally efficient way to bring your database to its knees whimpering and begging that you take a class from Oracle University.
Temporary tables in Oracle are permanent tables and that is the proper design for working with the product. Creating "temp" tables using dynamic SQL in a stored procedure is multiple layers of bad practice layered on top of each other. Something made more obvious by the fact that you appear to not have read that portion of the docs that explain the differences between explicit privilege grants and grants made via roles when it comes to PL/SQL.
My recommendation is that you throw this code away and read the docs. First on the security model, roles, and object privileges. Next on the use of Global Temporary Tables. -
I have just bought the Q10 and realising too late that it does not come with the usual scroll button to move the cursor in up/down and left/ right directions, i have to tap my fat fingures on the screen when i want to edit the text written earlier. most of the time i just delete the whole passage and retype again, can someone please tell me how to solve this problem?
thanksi tap on where i want to edit and then tap the bubble left or right to center it on what i want it on
Click here to Backup the data on your BlackBerry Device! It's important, and FREE!
Click "Accept as Solution" if your problem is solved. To give thanks, click thumbs up
Click to search the Knowledge Base at BTSC and click to Read The Fabulous Manuals
BESAdmin's, please make a signature with your BES environment info.
SIM Free BlackBerry Unlocking FAQ
Follow me on Twitter @knottyrope
Want to thank me? Buy my KnottyRope App here
BES 12 and BES 5.0.4 with Exchange 2010 and SQL 2012 Hyper V -
If I type a moderately long e-mail (I haven't counted the letters/digits to determine how long), then suddenly letters won't appear. If make a typing errors, and backspace over or delete the error/s, the cursor will disappear. It's not anywhere in the body of the e-mail (or anywhere else I've noticed). I can get it to reappear by highlighting every word in the e-mail, then undoing that.
All the letters/digits I've deleted reappear at the end of the e-mail--but only in the e-mail received (by the recipient). If I save the e-mail as a draft, when I look at the draft, the I'll see the deleted letters/symbols at the end of the e-mail. If I click on edit, they disappear. But recipients see all of them, regardless of whether I edit the e-mail or not.
The last time I asked this "question", I was told to update. That was probably 5 updates ago. There has been no change.
I don't know if the problem persists in safe mode because I have forgotten to switch into safe mode every time I use TB. Sometimes I remember to run TB in safe mode but don't have reason to type a long e-mail.
I'm really tired of this problem.
OS is win 7 pro w/service pack 1.May I ask why? Have you learned that that specific problem is solved in a pre-release version? So far I've upgraded once on your advice, now I've upgraded again to 31. Problem's still there. Unless I'm told that the problem's been solved for sure in a latter version, I'm not going to upgrade because sometimes the upgrades bring problems w/them for a low tech user. I don't want to chat, etc., I just want to be able to send and receive e-mails.
I'm still working with the security software people re: some continuing issues w/FF.
I'd like to spend more time doing my work, or communicating w/friends, not dealing w/software problems.
Is there anyway of my finding out what, if any update, includes whatever is needed to solve my specific problem? I use Win7 Pro, SP1, 3.40 Gz processor, 3.19 Gb usable RAM, 64 bit OS. I don't know what other information is needed. -
Problem with ARD3 keeps losing the cursor
I am having problems with ARD3 whereby I keep losing the cursor when controlling another machine. The cursor is still there but you have to click-drag to see it moving. There was a similar problem a few months ago after a system update and pre ARD 3.1. I used to be able to upload the ARD client and that would solve the problem temporarily. But now that won't even work.
Another thing I notice when that happens is that my "Hidden Dock" stops appearing unless I click in the area. That also happens with my menus. And Expose stops working too.
The only way to get around the problem, is to either restart the computer or leave it for anything up to 1 hr, then it will be fine again.
Does anyone have the same problem?
I use a MacBook Pro DC 2G with 2G of RAM. 10.4.9 and all the latest System Updates including Security Update 2007-04. This started happening even before the 2007-004 security update.
MacBook Pro DualCore 2G Mac OS X (10.4.9)I find that this happens only if a tool tip comes up after having it over an item in the toolbar however clicking in the remote computer's windows somewhere will bring the cursor back. Additionally switching windows, to say the main ARD window, and then back again will restore it as well.
Maybe you are looking for
-
White balance for infrared images
Hello there, I love making infrared photos with my digital camera (Canon dSRL). When I take an IR shot, I usually set the custom white balance inside the camera, so that false colours appear correctly. If I open the CR2 RAW file using the software pr
-
My ipad face time will not verify or sign in!
I have reset my ipad 2 ,updated it, tried signing in with a different profile and everything possible! I try to sign in on face time but it wont do it! I put in my apple id and the password and the password is correct but when i click the sign in but
-
Urgent : SSO2 configuration
when trying to execute my WDA component i get an error reading SSO2 config not complete i went to RZ11 transaction to set the parameter values for "login/create_sso2_ticket" and "login/accept_sso2_ticket" but i dont have a change mode there. can some
-
The messages viewer on Mail closes immediately when I open mail. If I quit mail and re open it it seems to be okay. Any suggestions?
-
I am new to JSP. How can I send db2 output to text field/area within the same page? Code sample will be helpful. Thanks