01-06-2016 12:38 AM
So I am making a TDR file and I want to place a cursor (or something that looks like a cursor) on my 2d axis from a channel property that holds the x position of the cursor in a TDMS file. I can see how to do this from the VIEW panel but I'm having a hard time finding out how to adjust the cursor (or even place one) from the Report panel.
Any advice on this would be greatly appreciated.
Thanks,
James
01-06-2016 02:19 AM
Hi James
That is no build in funktionality. So you have to use events. This topic in the help gives you a good starting point:
Hope this helps
Winfried
01-06-2016 01:21 PM
Hi James,
Interactively "placing" a cursor in REPORT with the mouse would require a custom event, as Winner mentioned. But if you just want to automatically show a configured vertical line based on the X value stored in a property, you can use the "Constant" curve type and place your @@ expression into the X value column of its configuration.
Brad Turpin
DIAdem Product Support Engineer
National Instruments
01-07-2016 11:56 AM
Thanks Brad, I think that will do what I need!
01-13-2016 12:31 AM
So, for some reason this works:
@@Val(Data.GetChannel("[1]/Leg 2 Return Signal").Properties("Cursor_").Value)@@
But this always produces an "invalid character" error
@@Val(Data.Root.ChannelGroups(1).Properties("Control_Response_Start").Value)@@
The property stored there is a value something like 0.11732453465456
Interestingly, when I post
Data.Root.ChannelGroups(1).Properties("Control_Response_Start").Value
into the cursor field, I get the .1173 (etc) value, but it turns into the number, the equation is gone. Surrounding the equation with double @@'s produces invalid character. I'm not sure what I'm missing here.
01-13-2016 05:51 PM
Still having trouble though I have new data. For some reason one TDR file accepts cursors just fine, but the other won't accept them at all. Strangely, when I copy a 2d axis with two 'cursor' curves on it into the non-working TDR file, the axis system actually shows up without any error message or warning, but the two constant channels with expressions are completely removed. Additionally, if I make a new constant curve and put say "@@4@@" into it, I get a bad character error (but only on the TDR that stripped out the curves and won't seem to take any expression in the axis systems).
Super weird. Any thoughts?