LabVIEW MathScript RT Module

キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

capture data using mouse

Hi,
 
i have plot a graph using plot(w,block1);
 
am i able to get the data using "ginput" ?
 
[Wu] = ginput;
Tu1=2*pi/Wu(1);
0 件の賞賛
メッセージ1/16
10,567件の閲覧回数
Yes, you can do that.
 
MathScript supports the command of ginput. Below are the syntax and description of ginput.
[x, y] = ginput
[x, y] = ginput(n)
[x, y, b] = ginput
[x, y, b] = ginput(n)
Acquires data points from the current plot by a mouse click. [x, y] = ginput acquires data points until you press the <Enter> key. [x, y] = ginput(n) acquires data points until LabVIEW acquires n data points or until you press the <Enter> key.
Note that if you only specify one output, ginput only returns the x-coordinates of the data points acquired. Moreover, ginput will stop execution of MathScript until you press the <Enter> key to step acquiring.
0 件の賞賛
メッセージ2/16
10,559件の閲覧回数
i have done ask what you have told me, but it doesn't seem to capture my data.
0 件の賞賛
メッセージ3/16
10,557件の閲覧回数
If you want the value of Tu1, you must explicitly change the data type of the output Tu1 as DBL scalar.
 
Also note that ginput only works for the plot window generated by MathScript Window or Node. It does not work on native LabVIEW XY Graph control.
0 件の賞賛
メッセージ4/16
10,555件の閲覧回数
oh i see. so for labview part, the cursor can't be done completely?
0 件の賞賛
メッセージ5/16
10,553件の閲覧回数

Open the attached VI. Move the cursor to verify the value of cursor point.

By the way, what do you really want to do?

matlabscript graph.vi ‏1 KB
0 件の賞賛
メッセージ6/16
10,551件の閲覧回数
i wish to capture data from the graph and use the data for calculation. do version 6.2 have graph cursor?
0 件の賞賛
メッセージ7/16
10,547件の閲覧回数
I have not tried version 6.2. But, I think it should have cursor.
0 件の賞賛
メッセージ8/16
10,537件の閲覧回数
i cant seem to open ur file.
0 件の賞賛
メッセージ9/16
10,531件の閲覧回数
I re-attach the VI.
0 件の賞賛
メッセージ10/16
10,497件の閲覧回数