3d plot cursor reversed axis
I recently started investigating the use of 3d plots in LV2010 for presenting data on a project. I need to label a data point and have it's position updated through time. I figured that a cursor would be the easiest way to accomplish this. However, when I inserted the cursor and placed it at the same coordinates as the data point via a properties dialog the cursor was not near the data point at all. The z position seemed fine, but the x and y position were at the opposite corner of the plot. After some frustration I determined that the problem is that I have the x and y axes inverted in the plot. Apparently the cursor doesn't recognize that the axes are inverted and is placed in the plot as if the axes were not inverted.
Now that I know the issue I can accommodate it by calculating a new position for the cursor and get the label to follow the point through time as I want. I just though that I would share my discovery and see if anybody else has seen a similar issue.
Hi sdfgdfgs,
Thanks for the post. I haven't seen this before but feedback for issues like this are always appreciated. Thanks for including how you made your workaround as well.
Sarah Y
SDR Product Manager
National Instruments | Ettus Research
Similar Messages
-
Dear All,
I am working on Mixed Signal Graph with Multi plot cursor.
My target is to move the cursor on X axis time scale and get the y axis values of all the plots.
i got some ex. on forum but i am facing a typical problem explained as follows:
By chaning the cursor plot i am getting the y axis values for each plot.
The problem is that the values are continuously changing of the plot y axis value automatically, ans also the values of the respective plot does'nt match all the time, it changes.
I have attached a example, in that the values of the respective plot changes every time.
Am i missing anything, please guide.
Regards,
Shrek
Attachments:
Mixed Signal Cursor.vi 34 KBHere is a quick mod .. don't know if it solve your problem, but I get constant values
Will work only if all plots have the same lenght ...
Greetings from Germany
Henrik
LV since v3.1
“ground” is a convenient fantasy
'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'
Attachments:
Mixed Signal Cursor.vi 27 KB -
Hi,
I am trying to reverse the order of my 2D plot's y axis (make it decreasing).
I am using Diadem 2012.
I see that in the older versions there was a "mirror.." selection, but in Diadem 2012 I couldn't find it..
Any suggestions?
Regards,
Solved!
Go to Solution.
Attachments:
koray kinik question.JPG 129 KBHi Koray,
Ah, you're right. The "Scaling Type" property is either "DateTime" or "Inverted", not both. You can set it to "Inverted", but then you have to set the "Display format" property of the DateTime channel in the Data Portal to "Numeric" in order for the "Inverted" setting to stick. Then your axis displays the number of seconds since 0 AD proceeding from top to bottom. In order to display inverted date time values, you'd need to additionally create a UserCommand that uses the RTT() command and invoke it as an @@ function expression, passing it the CFV variable, in the Numbers Format field of the Y axis. I can help you do that, but it's not easy or obvious.
Still interested?
Brad Turpin
DIAdem Product Support Engineer
National Instruments -
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 -
Multi plot cursor in Mixed Graph
If Digital waveform and normal waveform graph is plotted in a mixed graph, and if I choose watch all plots(multi plot) in cursor, LabVIEW closes immediately with an error popup dialog
I have attached the print screen image of that error popup
Attachments:
error.JPG 188 KBHi Stephen,
I found a considerable solution to overcome that error.
Build all the array data at first and then generate digtal
waveform in single instance.
ie., With number of numerical array data, build a 2D array of
numerical data and make a transpose and then generate a waveform.
It generates number of digital waveform equal to that of the
column size of 2D Array.
Do not build generated digital waveforms. This creates an error
while using multi plot cursor--> watch--> All plots.
I have attached the modified, bug removed Vi with this message for
your reference.
Regards,
Raja
Project Engineer
Soliton Technologies
www.solitontech.com
Attachments:
Mixed Graph Modified without Error.vi 25 KB -
I am using an XY graph with 5 curves which belong to one of two y axes each. All curves share the same array of x values. I do not like the cursor legend so I want to read out the values of the one cursor programmatically. I can create a multi-plot cursor which watches all the 5 curves but I cannot find how I can read out the 5 corresponding y values of my cursor. Any help?
Thanks,
LX (using LV2014)Use the cursor index property value and wire that to an index array function for each y array.
-
Mixed Graph - Multi Plot Cursor Problem
If I plot both Analog Waveform and Digital Waveform in a single Mixed Graph, and when I choose watch all plots in cursor legend, LabVIEW crashes with an error message.....
I have also attached the Print screen image of that Error
Attachments:
error.JPG 188 KBJared Boothe,
I found a solution to overcome that error.
Build all the array data at first and then generate digtal waveform in single instance.
ie., With number of numerical array data, build a 2D array of numerical data and make a transpose and then generate a waveform.
It generates number of digital waveform equal to that of the column size of 2D Array.
Do not build generated digital waveforms. This creates an error while using multi plot cursor--> watch--> All plots.
I have attached the modified, error free Vi with this message for your reference.
Regards,
Raja
Project Engineer
Soliton Technologies
www.solitontech.com
Attachments:
Mixed Graph Modified without Error.vi 25 KB -
Single-plot cursor tree -- how to programmatically collapse it?
How do you programmatically collapse a single-plot cursor tree?
I am saving and restoring waveforms to a waveform graph. Sometimes loading the waveform causes the cursor tree to display collapsed (Example 1), which is desired so the coordinates for both cursors are visible in the legend. However, some waveforms cause the cursor tree to display expanded (Example 2), hiding the lower cursor. I can't even figure out how to collapse it manually. Clicking the minus sign has no effect.
Example 1.
Example 2.I've made a mistake!
I assumed the cursor-legend was really just a tree, but as it turns out NI has removed our ability to grab the cursor-legend reference since LabVIEW 7.1. Without a reference to the cursor-legend, we can't really do anything like what youre asking. Unless you can find a better answer, I'd recommend circumventing the cursor legend like suggested in this article:
https://decibel.ni.com/content/docs/DOC-6495
(you may want to rearrange the data into a tree control instead of a cluster array, in which case you'll be able to use my posted code, and you'll be able to manually expand/contract the nodes).
Matt Kirk
Inventor of ImageJVI -
Errors with multi-plot cursors on Mixed Signal graphs
Using a Mixed Signal graph, it seems that a multi-plot cursor does not snap correctly if XScale.Multiplier is not set to 1 - it seems to ignore it altogether. A single-plot cursor on the same graph does not have this problem. Am I missing something?
In the attached VI, XScale.Multipler = 0.1, and Cursor 1 (Single-Plot) shows the correct value, but Cursor 2 (Multi-plot) does not.
Attachments:
MixedSignalCursor.vi 14 KBHello,
The behavior I see is that the multi-plot cursor which is snapped to plot 0 seems to generally follow an "imaginary plot" which corresponds to a scaled version of plot 0, where the scale factor is the value wired to the XScale.Multiplier property. I don't think this is desired behavior so I have filed a corrective action request to R&D to have this addressed. I am sorry for the inconvenience - hopefully you can live with an X-scale multiplier of 1, or the single plot cursors for the time being. It also takes the offset property similarly, offsetting the "imaginary plot" by whatever value is set there.
In any event, if this poses a significant problem with additional contingencies, please let me know and I'll be sure to include any updated information in the corrective action request!
Thank you,
Best Regards,
JLS
Best,
JLS
Sixclear -
Problem changing TrackMode from Plot&Cursor (TrackAll) to ZoomXYRectangle
I'm using a CWGraph control from Measurement Studio 6.0 in a C# application.
I want the user to be able to switch between tracking modes on the fly - I use Plot&Cursor mode to allow them to right-click on a point and get more information. But when I switch to ZoomXYRectangle mode, it does not work (it does not allow me to zoom).
Am I missing something? The same functionality works fine on the 3D Graph (switching from TrackAll to TrackZoomPanRotate).
Thanks,
NatalieThis is pretty strange ... I played around with the project for a while and there seems to be something about bringing up the context menu that throws something off. If you comment out the line of code that shows the context menu, the problem doesn't reproduce anymore. Also, if it's not working after you switch to zoom mode, you can right-click anywhere on the graph and then try to zoom, and it'll work.
Off the top of my head I can't think of a good reason why this is happening. Since it will work again if you right-click anywhere on the graph, you could hack a workaround by sending a message to the AxHost that's hosting the ActiveX control to make it think that it received a right-click. It's a total hack to fix it, but it does work. Here's some
sample code that shows how to do this:
// Place this code somewhere in the form class:
[System.Runtime.InteropServices.DllImport("user32.dll")]
private static extern int SendMessage(IntPtr hWnd, int msg, int wParam, int lParam);
private const int WM_RBUTTONUP = 0x0205;
private const int MK_RBUTTON = 0x0002;
private static int MAKELPARAM(int low, int high)
return ((low & 0xffff) | ((high & 0xffff) << 16));
// Change the CheckedChanged event handler for the zoom radio button so that
// the message is sent when the track mode is changed.
private void zoom_CheckedChanged(object sender, System.EventArgs e)
if (zoom.Checked)
axGraph.TrackMode = CWUIControlsLib.CWGraphTrackModes.cwGTrackZoomRectXY;
SendMessage(axGraph.Handle, WM_RBUTTONUP, MK_RBUTTON, MAKELPARAM(1, 1));
- Elton -
I am trying to analyze flight data, and I would like to analyze plots of certain parameters so that they share an x axis. It is necessary to view these using two different y axis, on the left and right. How do I do this in DIAdem (version 11.0) in the VIEW tab? Is this possible to do in the VIEW tab?
myocom,
You can highlight random points in DIAdem as well.
Here is an example:
Use the cursor to move to the point you wish to highlight.
Press the "Set Data Point and Flag" icon on each data point you wish to highlight
When you are done selecting points, press the "Flags: Copy Data Points" icon - that will copy all X/Y coordinates into two new channels
I created a REPORT Layout using the original data and the highlighted random points (I added the actual point Z-value above the point, they look strange when written at the exact point). I attached the layout for your reference.
The complete task took 3 minutes from loading the data to finishing and exporting the REPORT layout. If you have a REPORT layout already, this will take less than 30 seconds ...
I am not familiar with Matlab, so I can't compare how this works in DIAdem vs. Matlab. You can add the combine the complete process in a Script and it will automatically create this kind of report after simply selecting a few data points in VIEW and then pressing a button ...
Otmar
Otmar D. Foehner
Business Development Manager
DIAdem and Test Data Management
National Instruments
Austin, TX - USA
"For an optimist the glass is half full, for a pessimist it's half empty, and for an engineer is twice bigger than necessary."
Attachments:
Report with highlights.zip 5 KB -
Express XY Graph Multi-plot Cursor point
Hi,
In mixed signal graph >> Property >> Cursors Tab >> Enable Allow dragging here if we select Multi-plot, it will show X scale and all Y-scale value in Cursor legend.
How can I get these same options in Express XY Graph?
Sivaraj M.S
CLDYou need to use a property node and find the curser position and then plot those points in a seperate xy plot (only it will be one point instead of an array). You will still have to plot it as an array of one point.
Tim
Johnson Controls
Holland Michigan -
Mixed Signal Graph: Cursor Position Property for Multi-Plot Cursor
I'm working 6 waveforms on 3 different plot areas in a mixed signal graph in LV2009. When I try to pull the Cursor.PosY property from my cursor (in which Watch All Plots is True, and is set to Multi-Plot in the graph properties), it returns the value of only the first plot in the cluster of waveforms fed into the graph. I've tried changing the active plot, active plot area, nothing changes. I am able to retrieve each value via the cursor legend, but I cannot pull each of those values into another portion of my program. Also, I noticed that when setting events in an event structure, any events relating to a cursor drag aren't present as they are in a waveform graph. My workaround is to create an indicator for the Cursor.PosX property and monitor when that value changes, but I feel there should be an easier way. Any help is appreciated.
Thank you in advance!Jeanius,
I am not quite sure why the cursor pos in the Wavegraph reference does not change when you change the active plot, but if you grab a reference to the specific cursor and then change the active plot things you receive the expected behavior.
Ben J.
National Instruments
Applications Engineer
Attachments:
MODDEDmixed graph cursor ex.vi 41 KB -
I can't seem to get the cursor(s) to function on the 3D Surface Plot. I right-click on the front panel plot, go to properties, and select cursor - but then I get an error and LabVIEW crashes. Has anybody had any sucess with this? I've tried it in both LabVIEW 6.1 and 7.1
Hi,
I have used the cursors in the 3D graph a couple of times with no problem. There are a couple of advices that I can give. Place the 3D graph strait form the pallet, do not create an ActiveX container and add the 3D graph. Open one of the 3D examples and see if you can add the cursors to a graph that was previously created. You can also try to unregister and reregister the ActiveX control for the 3D graph to make sure that the OS registers the control correctly. You can find the ActiveX control in the system32 folder (cw3dGraph.ocx) and here is a document on how to register the control.
I'm also including here an example that uses cur
sors, see if you can open it and run it. The second attachment is a style file for that 3D graph that includes a cursor. You can load this file by right-clicking on the graph and select "Import Style..". Hopefully you'll be able to load the style and start to work from there.
I hope this helps.
Let me know if you have any further questions.
Regards,
Juan Carlos
N.I.
Attachments:
Torus_with_3D_Cursor.vi 312 KB
3DGraphStyle.cwx 3 KB -
Reverse axis values in xy chart - is it possible?
Hi gurus,
It seems like Xcelsius Enterprise SP3 doesn't give the option to reverse the values on my xy chart.
Default, the chart looks like this:
5 |
4 |
3 |
2 |
1 | _ _ _ _ _
--- 1 2 3 4 5
But I want to make it look like this (reversing the y-axis):
1 |
2 |
3 |
4 |
5 | _ _ _ _ _
--- 1 2 3 4 5
I know that line charts can sort the data, but haven't seen this option on the xy chart!
Have any of you managed to get this working?
Best regards,
MortenHi Eddie,
Here are a couple of white papers for you. This might be of help.
1. [Chart Changes from Crystal Reports 8.5, 9 and 10 to XI|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/707c1977-891e-2b10-f7a3-a669e59b67ea]
2. [Charting on Print-Time Formulas|http://resources.businessobjects.com/support/communitycs/TechnicalPapers/cr9_charting_print_time_formulas.pdf?recDnlReq=Record&dnlPath=cr9_charting_print_time_formulas.pdf]
Please do ket us know if this helps.
Cheers!
Abhishek Jain.
Maybe you are looking for
-
I use active trader pro and have an error message that browser is not supported in when I do research and some other areas. How can I fix this is there an up grade?
-
Migrating issues! please help. At the moment I have two identities and my apps adobe and microsoft office 2008 do not work. I migrated from a macbook to a pro and everything seems crazy. I'm not an It guru so some of the solutions proposed at other
-
Can you send a code for iTunes and have it still work
Can you send a code for iTunes and have it still work
-
Where to buy Lion for Macbook?
I have a Mac mini early 2008, running Snow Leopard. I never upgraded to Lion because my Internet connection was too slow. Now my connection is fast enough, but I can no longer buy Lion? My Mac will not run Mountain Lion. If I have to order over the p
-
Crash due copying between files
Hello everybody, I got the following problem: In Adobe LifeCycle Designer ES4, we created an interactive pdf, used files in this case were Numeric, Text and Image (to paste images for a report). Having multiple reports for the same customer, we wante