01-27-2014 04:17 PM
Hello I am trying to make a report with different signals on the y axis and I created a curve coordinate to show selected points.
I am not sure how to make it show the current point value of all Y signals plotted while the curve coordinate is moved by the user. I know I can do it pragmatically once the report is loaded but I don't think report has event signaling when the coordinate is moved.
I tried to use the following formula in the text editor and it works separately but when I try to nest them both to extract the index of the x value and match it with the y value, it throws an error. Which brings me to my question...
Is it possibly to nest these two functions ChD and PNo?
Is it possible to call an outside function to be executed from the text editor?
Is there a work around?
I will appreciate your help..
Here is the nested function
This works...
@@PNO("[12]/[1]",CurrXValue)@@
@@ChD(1,"[12]/[2]")@@
This does not...
@@ChD((PNO("[12]/[1]",CurrXValue)),"[12]/[2]")@@
Solved! Go to Solution.
01-30-2014 05:49 AM
Bertha
A feature exists call "User Commands" that allow you to make your own vbs function that can be called in the view or report with the @@ prefix and suffix.
Use of this feature should allow you to put both of your commands into one vbs function that can be then called in your new command.
Use Help to search for "Using User Commands" for more details.
Paul
01-30-2014 03:23 PM
Hi Bertha,
You use the word "report", but then you talk about moving the "curve coordinate". It sounds like you're in VIEW and moving the cursor. In either case, where do you want to display this Y value information?
Brad Turpin
DIAdem Product Support Engineer
National Instruments
02-03-2014 11:26 AM
Thanks for the response.
I wanted to use a Report coordinate marker in the Report tab. I know the cursors are available in View but I was trying to get the same function in report tab.
I will look into the User Commands thanks for the help
02-04-2014 01:32 PM
Hi Bertha,
There are a number of things we can do to automate the display of horizontal or vertical lines in REPORT, but there is no way for the user to interactively move them. There are no "cursors" in REPORT, only static lines which could be programmatically shifted. You say in your original request that the user will be moving cursors around. That just can't happen in REPORT. Is there something else we can help with? We could add icon bar icons or a non-modal dialog with which the user could cause those lines to be shifted interactively, but there's no way to "grab and move" a plotted line in REPORT.
Brad Turpin
DIAdem Product Support Engineer
Natinoal Instruments
02-04-2014 04:26 PM
Thanks,
I know there aren't any cursors in Report but I am using a free curve coordinate object that is used in report and calling a User Command like Paul recommended to make it somewhat behave like a cursor. I think it works now so thanks for the help