MATRIXx

cancel
Showing results for 
Search instead for 
Did you mean: 

Include Xmath Functions into SystemBuild

Hello!
Is it possible to call a .msf file from a systembuild model? I need to use the histogram function to compile data... The problem is that the analysis needs to be done between two superblocs.

Thanks for your help... again! This is really appreciated!
Karina
0 Kudos
Message 1 of 4
(7,392 Views)
Karina,
Under User-Programmed you will find the MathScript block. This will let you call a .msf file. You can also look at the Algebraic Expression block and BlockScript block. All three offer user-programmed expressions. The Algebraic Expression block is the fastest but also the most limited. In your case I believe the MathScript block is the right option.

Carl L
National Instruments
0 Kudos
Message 2 of 4
(7,392 Views)
However, I think you can't autocode the mathscipt block?? Am I right or is there a way to do it?
Thanks
0 Kudos
Message 3 of 4
(7,392 Views)
Karina,
Correct, the content of the mathscript block can not be autocoded. The mathscript block is very open which makes it hard to generate code for it. AutoCode will still generate code for the model, but it will warn in the Xmath window:
MathScript Block (blockname): Block not supported

In the code that it generates it will insert a comment in place of the block:
/* ---------------------------- MathScript Block */
/* {blockname} */
/* ===> Block not supported. */

So it would be possible to AutoCode the model, but you would have to replace the comment with code that is equivalent to the MathScript function.

Carl L
National Instruments
0 Kudos
Message 4 of 4
(7,392 Views)