Dispaying a waveform graph with control of the cursor in the document.
I would like to be able to control the cursor when I save my waveform graph in html. I'm currently saving the graph through the report vi's
I am not sure I understand your question. Do you want to simply control where the cursor is on the picture you are appending to the html report. If so then when you use the Append Control Image to Report VI it basically takes a snap shot at that moment and displays it. Therefore you just need to place the cursor where you wnat it before you add the image.
To programttically control the cursor you will need to use property nodes of the Waveform Graph. A good start would be the property cursor>>cursor position>>all elements.
Similar Messages
-
Looking up the values in a waveform graph with a mouse click
Hi,
Does anyone know how to look up the values in a waveform graph with a mouse
click but... without the cursor legend on, if i press in the waveform graph
nothing happens, i must search my cursors and only then i can see the values
of my signal data?! Isn't there any other way?
Best regards,
Thijs BoeréeDear Chad,
I know of the function "bring cursor to center". I also figured out that
when i use a property node of the cursor array of clusters, that i can see
that some values change when i move the cursor (i can see the X and Y scale
value change of the graph and also the values of the mouse pointer (in
points due to screen resolution)) But in this cluster i can't set the mouse
position. I allready made a VI where i can see the bounds of my
waveformgraph and I have the Xscale (min and max) and the Yscale (min and
max), with a linear fit i can translate my mouse position to X an Y scale
values and when i click on my waveform graph the cursor go's to that
position (property node of the cursor position), only disadvantage is that i
only have the bounds of my plot area and not the position, i do have the
position of my waveform graph but the plot area isn't allways in the center,
if i could extract the position of the plot area i may find a solution to
solve this problem.
And to file a product question:
I would like to see the function that with a mouse click a little menu
appears and that there are options to for example set a marker on that data
and when you right click on it, that there are options to remove it or to
add comment, a 2D array could make a list of the different channels with
it's markers (time stamps and comments).
Best regards,
And thank you for your help.
Thijs Boer�e
"Chad AE" schreef in bericht
news:[email protected]...
> Dear Thijs,
>
> Thank you for contacting National Instruments.
>
> To address your question, there is no direct VI, command, or property
> node that will allow the cursor snap-to-mouse functionality.
>
> I notice a problem you may be occuring is trying to find where the
> cursor is on the graph. If this is an issue, you can select Bring to
> Center from the Formatting Ring on the Cursor Legend to move the
> cursor to the center of the graph.
>
> Let me know if you have any further questions or if this does not
> resolve your issue, as I would be happy to file a product suggestion
> so that LabVIEW is improved in future versions.
>
> Thanks again and have a great day!
>
> Chad AE
> Applications Engineer - National Instruments -
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.
-
Clearing waveform graph with my VI
I know how to clear the waveform graph using feed back array .But my case is different .I attached the VI with which I need help.
Basically I will be reading voltages from Yokogawa 200 which I used random number generator in the program .I need to plot the waveform graph between 3 and 4 mins once the program is started.
Please let me know how can I clear my history.
Attachments:
simulated.vi 23 KBYou continue to make this much more complicated than it needs to be. You are eligible for the Rube Goldberg thread. You've ignored the modifications I made to your VI in this thread where you asked the same question. Here's a modification with a graph. If you want to ignore suggestions for your problems, maybe you should stop asking for help.Message Edited by Dennis Knutson on 08-14-2007 08:23 AM
Attachments:
simulated_mod2.vi 15 KB -
Hi,
how to have a vertical grid line on the waveform graph indicator for every 10% percent of the maximum X axis value, so the x axis will split into 10, the vertical grids line in total will be 11 (including first and last)
Example if the maximum X axis value is 11.56, first vertical grid is at the origin(0), second vertical grid is at 1.156 and continue to last one 11.56Thanks JohnM and Evan,
the increment work great and i modify it to pass the 10% into "start" too, so it will start at the point of 10% of maximum range
attached file to let people download in future, if they met the similar situation
Attachments:
10percent.vi 31 KB -
How to position the cursor at the end of the text with EDIT_TEXT?
Hello, it wanted to ask to them if somebody could make work the module of function EDIT_TEXT so that it positions the cursor at the end of the text that is visualizing in the text editor. In the documentation it says that passing a ' X' to him in the field scrollend of the parameter Control is obtained that operation. Nevertheless, I did this and the cursor continues appearing at the beginning of the text that visualizes.
Somebody could help me please?
Regards,
Gabriel
PD: The code that I use is the following one:
FORM f_ingresar_comentarios.
DATA: l_action,
l_result LIKE itcer,
l_pedido LIKE thead-tdname,
li_coment_save LIKE i_comentarios OCCURS 0,
li_coment_aux LIKE i_comentarios OCCURS 0 WITH HEADER LINE,
l_lines TYPE i,
l_lines_save TYPE i,
l_lines_insert TYPE i,
l_index TYPE i,
l_index_aux TYPE i,
l_insert,
lwa_control LIKE itced.
CLEAR: l_action.
CLEAR i_comentarios.
REFRESH: i_comentarios,
li_coment_save,
li_coment_aux.
l_pedido = v_pedido.
Leemos el texto si es que existe
CALL FUNCTION 'READ_TEXT'
EXPORTING
client = sy-mandt
id = v_id_text
language = sy-langu
name = l_pedido
object = c_ekko
IMPORTING
header = wa_cabecera
TABLES
lines = i_comentarios "Lineas de texto leídas
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
IF sy-subrc <> 0.
Armamos la cabecera por primer comentario para el pedido
CLEAR wa_cabecera.
wa_cabecera-tdobject = c_ekko. "Objeto en tabla TTXID
wa_cabecera-tdname = v_pedido. "Nro de pedido
wa_cabecera-tdid = v_id_text. "ID en tabla TTXID
wa_cabecera-tdspras = sy-langu. "Lenguaje
wa_cabecera-tdlinesize = 70.
ENDIF.
Salva comentarios originales
li_coment_save[] = i_comentarios[].
lwa_control-scrollend = c_x. " c_x = 'X'
Abre el editor de texto
CALL FUNCTION 'EDIT_TEXT'
EXPORTING
header = wa_cabecera
save = space
control = lwa_control
IMPORTING
newheader = wa_cabecera
function = l_action
RESULT = l_result
TABLES
lines = i_comentarios
EXCEPTIONS
object = 1
id = 2
language = 3
name = 4
linesize = 5.
Si cambio los comentarios, actualiza comentarios
CASE l_action.
WHEN c_unchanged.
WHEN c_delete.
WHEN c_update OR
c_insert.
Obtiene cantidad de lineas de comentarios originales y modificados
DESCRIBE TABLE li_coment_save LINES l_lines_save.
DESCRIBE TABLE i_comentarios LINES l_lines.
Si se insertaron lineas...
IF l_lines > l_lines_save.
Calcula cantidad de lineas a insertar para luego calcular valor de
indice a partir del cual insertar los nuevos comentarios
l_lines_insert = l_lines - l_lines_save.
l_index = ( l_lines - l_lines_insert ) + 1.
Controla que al menos una de las lineas insertadas sea diferente de
blanco
l_index_aux = l_lines.
l_insert = c_n.
DO l_lines_insert TIMES.
READ TABLE i_comentarios INDEX l_index_aux.
IF sy-subrc = 0 AND
i_comentarios-tdline <> space.
l_insert = c_s.
EXIT.
ENDIF.
l_index_aux = l_index_aux - 1.
ENDDO.
IF l_insert = c_s.
Carga comentarios originales y agrega lineas insertadas
li_coment_aux[] = li_coment_save[].
APPEND LINES OF i_comentarios
FROM l_index
TO l_lines
TO li_coment_aux.
Setea variable para indicar actualizacion de comentarios.
v_comentario = 'S'.
Agrega usuario y fecha del comentario
CONCATENATE sy-uname
sy-datum
INTO li_coment_aux-tdline
SEPARATED BY space.
li_coment_aux-tdformat = '*'.
APPEND li_coment_aux.
Grabamos el texto
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
client = sy-mandt
header = wa_cabecera
savemode_direct = c_x
IMPORTING
newheader = wa_cabecera
TABLES
lines = li_coment_aux
EXCEPTIONS
id = 1
language = 2
name = 3
object = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDIF.
ENDIF.
ENDCASE.
ENDFORM. " f_ingresar_comentarios
In addition, I made another program simpler that it uses the same functions and also have the same problem:
*& Report Y_GVA_TEXT *
REPORT y_gva_text .
DATA: wa_cabecera LIKE thead,
i_comentarios LIKE tline OCCURS 0 WITH HEADER LINE.
DATA: l_action,
v_comentario,
l_result LIKE itcer,
v_pedido LIKE thead-tdname VALUE '3',
l_pedido LIKE thead-tdname,
c_a05 LIKE thead-tdid VALUE 'A05',
c_ekko LIKE stxh-tdobject VALUE 'EKKO',
l_lines LIKE sy-tabix,
lwa_control LIKE itced.
CONSTANTS: c_x VALUE 'X',
update VALUE 'U', "Langtext verändert
insert VALUE 'I', "Langtext eingefügt
delete VALUE 'D', "Langtext gelöscht
modify VALUE 'M', "Kein Langtext, Inlinezeile veränd.
unchanged VALUE ' '.
CLEAR: l_action.
CLEAR i_comentarios.
REFRESH i_comentarios.
Leemos el texto si es que existe
CALL FUNCTION 'READ_TEXT'
EXPORTING
client = sy-mandt
id = c_a05
language = sy-langu
name = v_pedido
object = c_ekko
IMPORTING
header = wa_cabecera
TABLES
lines = i_comentarios "Lineas de texto leídas
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
Armamos las cabecera para mostrar los comentarios
CLEAR wa_cabecera.
wa_cabecera-tdobject = c_ekko. "Objeto en tabla TTXID
wa_cabecera-tdname = v_pedido. "Nro de pedido
wa_cabecera-tdid = c_a05. "ID en tabla TTXID
wa_cabecera-tdspras = sy-langu. "Lenguaje
wa_cabecera-tdlinesize = 70.
ENDIF.
lwa_control-noendlines = c_x.
lwa_control-scrollend = c_x.
Abre el editor de texto
CALL FUNCTION 'EDIT_TEXT'
EXPORTING
header = wa_cabecera
save = space
control = lwa_control
IMPORTING
newheader = wa_cabecera
function = l_action
RESULT = l_result
TABLES
lines = i_comentarios
EXCEPTIONS
object = 1
id = 2
language = 3
name = 4
linesize = 5.
Si cambio los comentarios, actualiza comentarios
CASE l_action.
WHEN unchanged.
WHEN delete.
WHEN update OR
insert.
Agrega usuario y fecha del comentario
CONCATENATE sy-uname
sy-datum
INTO i_comentarios-tdline
SEPARATED BY space.
i_comentarios-tdformat = '*'.
APPEND i_comentarios.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
header = wa_cabecera
IMPORTING
newheader = wa_cabecera
TABLES
lines = i_comentarios.
ENDCASE.Murugesh,
I believe that you have mis-read Gabriel's problem.
Gabriel,
The cursor is not positioning at the base of the editor as you have cited.
In order to get this functionality to work, you must set the LINE_EDITOR import paramter to 'X'.
data: hdr like THEAD.
data: l_itced like itced.
hdr-tdobject = 'VBBP'.
hdr-tdname = '4000029521000030'.
hdr-tdid = 'Z005'.
hdr-tdspras = 'E'.
hdr-TDLINESIZE = '100'.
hdr-TDTXTLINES = '3'.
l_itced-SCROLLEND = 'X'.
CALL FUNCTION 'EDIT_TEXT'
EXPORTING
DISPLAY = ' '
EDITOR_TITLE = ' '
HEADER = hdr
PAGE = ' '
WINDOW = ' '
SAVE = 'X'
LINE_EDITOR = 'X' " here !!!
CONTROL = l_itced
PROGRAM = ' '
LOCAL_CAT = ' '
IMPORTING
FUNCTION =
NEWHEADER =
RESULT =
TABLES
LINES = lines
EXCEPTIONS
ID = 1
LANGUAGE = 2
LINESIZE = 3
NAME = 4
OBJECT = 5
TEXTFORMAT = 6
COMMUNICATION = 7
OTHERS = 8
Don't forget those points !! -
Hello, LV 8.2.1 notes indicates the following bug fix:
43SAIR2A Fixed an issue where LabVIEW crashes when you run a VI that contains a mixed signal graph with a multi-plot cursor.
I am running this version, and still have this behavior. Is there anything I may be missing, and/or certain circumstances that may still be causing this?
thanks in advance,
DarrenDarren:
I looked at the CAR ID that you mentioned and the issue has been resolved in LabVIEW 8.2.1. To verify something similar, I ran the attached VI and things worked just fine. Please feel free to send me the steps to follow to reproduce the issue you are running into in 8.2.1.
Regards,
Rudi N.
Attachments:
MixedGraphs.vi 15 KB -
PS CS5 Extended on Windows
When trying to use the clone stamp and/or healing brush as soon as I move the cursor from the toolbar over to the image I get an exact copy of the existing layer that moves around the window with the movement of the clone stamp/healing brush. This just started tonight. What's causing this weird behaviour?What are the settings in Window > Clone Source?
-
I can't see the cursor on the logon screen with my MBP when using it in bright sunlight.
I have a 15 inch MacBook Pro with an anti glare screen. I am running Lion 10.7.3.
It is being used in bright sunlight in southern greece very sucessfully apart from the fact I cant see the cursor on the logon screen to select the user I want to log in as. .
Setting the cursor to a larger size using the universal access options works really well once I have logged in but at the moment I have to dash for the nearest shade to be able to see the screen to log in.
Any suggestions? A key sequence to swap between users on the logon screen would do (there are only two)If you're using it in bright light, you may be getting sunlight through the back of the machine which can wash out the display. The Apple logo on the back of the lid is actually a cut-out that uses the systems back light to make it glow. Bright light (especially sunlight) can actually shine through the back. As the users in the login are typically in the middle of the display, this is the area most likely to be washed out as that is where the Apple logo is. You can try just putting your hand over the Apple logo on the back to block the sunlight when trying to log in.
-
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. -
This problem started about 4-5 days ago.
After i scroll down a bit on a longer page, the scroll bar is still near (not at) the top. The page is scrolling at that point based only on me continuing to move the cursor in the scroll bar vertical column - even though not in line with the actual scroll bar itself. Then when I put the cursor on the actual scroll bar the page jumps back up to near the top of the page.
Thanks for any help.Are you using code in userContent.css or Stylish?
Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
*Do not click the Reset button on the Safe mode start window or otherwise make changes.
*https://support.mozilla.org/kb/Safe+Mode
Firefox Safe mode also disables the customizations in the userChrome.css and userContent.css files.
See also:
*[https://bugzilla.mozilla.org/show_bug.cgi?id=787465 bug 787465] - scrollbars don't update sometimes -
After transition on Windows 7 there was a problem with Firefox. At work with the text at allocation by the cursor of the big fragment of page it is necessary to shift all time it downwards, "against the stop", but the page automatically does not start to rise upwards as it was earlier and as occurs in other browsers. It is necessary to press other hand a key "downwards" that is the extremely inconvenient. Reinstallation on earlier version (8.0) earlier irreproachably working, has given nothing. I ask the help
You need to enable the Add-ons bar (Firefox > Options or View > Toolbars; Ctrl+/) or the Find bar (Ctrl+F) to make Firefox scroll the page while selecting text.
-
i am experincing difficulties with my touch pad.? whenn i try using is the cursor on the screen doesnot obey commands, sometimes it doesnot move.
Reset PRAM. http://support.apple.com/kb/PH4405
Reset SMC. http://support.apple.com/kb/HT3964
Choose the method for:
"Resetting SMC on portables with a battery you should not remove on your own". -
Safari status bar disappears. I have tried clicking on show status bar, under the View tab and it will only appear when I move the cursor to the top of the screen. I can not minimize the open page, only full screen or close the browser. Any idea how the rectify this issue?
One enters and exits full-screen with control+command+F keys. This is on the View menu in Safari. Optionally, the green traffic light in your browser title bar, if you roll over it, has the full-screen control it it. While in full-screen mode with Safari, moving your mouse pointer virtually up, and off-screen reveals the Safari title bar again, and you can click the green traffic light to exit full-screen mode.
You can hide/show the status bar by simply typing command+/. This too, is on the Safari View menu. and in 10.10.1 — it works reliably for me. -
How can I replace the cursor in the below query?
I have this below query which calls a stored procedure that takes only 1 item's attributes at a time. But because of performance problems we are
required to remove the cursor. How can I replace the below cursor logic with set operations or CTE? Please advice.
DECLARE db_cursor_ava CURSOR
FOR
SELECT t.[agent-id],
t.[start-date],
t.[end-date],
t.[monitor-days],
t.[monitor-start],
t.[monitor-end],
t.[timezone-offset]
FROM @tmpAgentPeriodTimeRange t
OPEN db_cursor_ava
FETCH NEXT FROM db_cursor_ava INTO @agentID_ava,
@stDateTime_ava,
@endDateTime_ava,
@monDays_ava,
@monSt_ava,
@monEnd_ava,
@offset_ava
WHILE @@FETCH_STATUS = 0
BEGIN
DELETE
FROM @tmpMonitorPeriod
DELETE
FROM @tmpFinalResult
SET @runID = 1
IF(@endDateTime_ava>DATEADD(MI,@offset_ava, GETUTCDATE()))
BEGIN
SET @endDateTime_ava=DATEADD(MI,@offset_ava, GETUTCDATE())
END
INSERT INTO @tmpMonitorPeriod
EXEC core.usp_GetMonitoringPeriod
@startDate = @stDateTime_ava,
@endDate = @endDateTime_ava,
@monitoringDays = @monDays_ava,
@monitoringStart = @monSt_ava,
@monitoringEnd = @monEnd_ava
SELECT @maxID = MAX(tm.id)
FROM @tmpMonitorPeriod tm
FETCH NEXT FROM db_cursor_ava INTO @agentID_ava,
@stDateTime_ava,
@endDateTime_ava,
@monDays_ava,
@monSt_ava,
@monEnd_ava,
@offset_ava
END
CLOSE db_cursor_ava
DEALLOCATE db_cursor_ava
mayooran99You've been down this path before - and the response is exactly the same.
how to replace cursor logic
And I'll suggest that you post the entire code - since you repeatedly delete 2 table variables but only populate one. The setting of @maxID also seems to have no purpose. And perhaps the issue here isn't the cursor but the general approach. Who knows
- but it appears you may have prematurely assumed that the cursor is the problem.
Maybe you are looking for
-
Reading in one line at a time.
How can I read one line at a time? String sData = "One large string" StringReader reader = new StringReader(sData); StringBuffer buf = new StringBuffer(); String line = ""; while ((line = reader.toString()) != null) {//This line does not read one lin
-
Data needed for upload of PP master data
Hi, Can any one tell me what all the important things required to upload the PP masterdata for BOM,Routings,Workcenter and Prod Versions.?? Tell me for each master data in detail. Regard's, Uday.
-
SQL Server 2012 Physical vs. Hyper-V Same Query Different Results
I have a database that is on physical hardware (16 CPU's, 32GB Ram). I have a copy of the database that was attached to a virtual Hyper-V server (16 CPU's, 32GB Ram). Both Servers and SQL Servers are identical OS=2008R2 Standard, SQL Server 2012R2 St
-
Unlocked nokia 3230 memory card
Pls i need ur help now
-
Mixed screen ratios in iDVD - problem
I'm using iDVD to make a DVD with mixed content - some is 16:9 some 4:3. Problem is when the 4:3 content plays iDVD puts grey padding either side to make up the widescreen. Is there any way I can change this padding to black? iDVD 7.1.1, Macbook Pr