LabVIEW MathScript RT Module

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

How to Use LABVIEW charts with Mathscript

Hi,

   I recently tried to work on Mathscript and it is really amazing. what I tried to figure out is:

  •     Instead of plotting using traditional "plot" statement, how to use LabVIEW chart ( I know how to Add output but the graph were not as expected
  • Is there any mean to get rid of this "Lengthy" delay that "ALL MATLAB User know" for first time compilation?

 

Thanks in advance

Waleed El-Badry MSc.,MCPD, ISTQB Certified Tester
Assistant Lecturer
Mechatronics Department
Faculty of Engineering
Misr University for Science & Technology



View Waleed El-Badry's profile on LinkedIn

0 件の賞賛
メッセージ1/8
9,284件の閲覧回数

Hi,

 

What kind of graph do you expect? Would you please give some examples?

 

In LabVIEW, you can customize the graph control to give better UI.

0 件の賞賛
メッセージ2/8
9,273件の閲覧回数

hi ttr,

       I actually try to plot using LABVIEW chart x from -2 to 2 step 0.1 and y(sqaure x) using mathscript as implementation.

Waleed El-Badry MSc.,MCPD, ISTQB Certified Tester
Assistant Lecturer
Mechatronics Department
Faculty of Engineering
Misr University for Science & Technology



View Waleed El-Badry's profile on LinkedIn

0 件の賞賛
メッセージ3/8
9,243件の閲覧回数

Hi,

 

From your reply, I can not think of any difficulty in using LabVIEW chart.

 

Do you use MathScript Node? Could you please attach your VI? Then, I can exactly know what you want.

0 件の賞賛
メッセージ4/8
9,239件の閲覧回数

VBCoder,

 

If you are creating the vectors x and y then plotting them against each other, you should probably use an XY Graph.  Create two outputs on the MathScript node, one for x and one for y, then bundle them together and connect the cluster to an XY Graph.  The attached VI (saved in LabVIEW 8.5) shows how to do this.  Make sure that you set the datatypes of the outputs to "DBL 1D" from the right-click shortcut menu.

 

Chris M

0 件の賞賛
メッセージ5/8
9,231件の閲覧回数

Well Chris,

         I was about to post the solution, but as I said, I'm in a middle of experts 🙂

 

It took me 3 hours to figure it out. I should've checked your answer 🙂 . I resolved to the same suggesstion of yours. I only added some functionality to get the newbies like me being acquainting with how easy to work with LABVIEW mathscript based on MATLAB knowledge.

 

Waleed El-Badry MSc.,MCPD, ISTQB Certified Tester
Assistant Lecturer
Mechatronics Department
Faculty of Engineering
Misr University for Science & Technology



View Waleed El-Badry's profile on LinkedIn

0 件の賞賛
メッセージ6/8
9,224件の閲覧回数

VBCoder,

 

Good to hear that you've got it working the way you like.  Note that you can remove the "Build Array" and "Array to matrix" functions before the upper MathScript node and get the same result.  If you're interested, here are some demos that might help getting started with MathScript.

 

Chris M

0 件の賞賛
メッセージ7/8
9,207件の閲覧回数
righ click your output, select 1D-array then hook up you xy graph
0 件の賞賛
メッセージ8/8
8,923件の閲覧回数