LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error in Mathscript Fundamentals VI in LabVIEW 8

When I open the Mathscript Fundamentals VI, it first opens OK, but when I save it, or even change just change a value on the front panel or block diagram, the array input ends up with a broken wire, with a message saying the data type is incompatible with MathScript.  What would cause this?
0 Kudos
Message 1 of 15
(4,366 Views)

I opened the example, saved it under a new name, and changed the FP data. No errors!

Can you attach your saved "broken" version so we can test?

0 Kudos
Message 2 of 15
(4,358 Views)

Here's the saved VI and a screenshot showing that it is broken.  (Just in case it works OK on your machine.)  The only thing I did was drop in the "0" constant on the left side.

 

 

Download All
0 Kudos
Message 3 of 15
(4,355 Views)

Seems to be some glitch. just press ctrl+b to remove the bad wire, the rewire the array to the mathscript node.

You can also change the representation of the array to SGL, then back to DBL to fix.

Message Edited by altenbach on 12-22-2005 12:51 PM

0 Kudos
Message 4 of 15
(4,349 Views)
When I try that it doesn't let me wire to it.   It won't let me change the data type on the mathscript variable either.  It gives the error "The wire connects to a polymorphic terminal that cannot accept this datatype.  (Thanks for looking at it though).
0 Kudos
Message 5 of 15
(4,340 Views)
 

@WrightSwri wrote:
It won't let me change the data type on the mathscript variable either. 
I get the same error, but it clears up. I meant to change the datatype of the array on the front panel (make sure to click on an array element, not on the container). (Or you can click on the BD terminal of the array to do the same)
 

Message Edited by altenbach on 12-22-2005 01:04 PM

0 Kudos
Message 6 of 15
(4,340 Views)
Still no dice.  It must be a ghost in my machine.  I get an error as well with the Mathscript fractal vi, and it does not even have an input.  Only when it first comes up, it gives the following error:  "Code could not be generated correctly for this VI."
0 Kudos
Message 7 of 15
(4,333 Views)
Hi,
 
Do all examples in the example finder have these problems or are these errors limited to the MathScript examples? It sounds like you may have some corrupted VIs. If Altenbach's suggestions do not work for you, you may want to do a repair/reinstall to see if this fixes the problem. I haven't heard of any other instances of this. Please let us know if a repair/reinstall doesn't do it
 
Regards,
Chris J
0 Kudos
Message 8 of 15
(4,302 Views)
I am unable to reproduce your problem with the VIs I have here, but I can observe the problem with the VI you posted.  I am able to fix the problem by right-clicking on the diagram, going to "Programming>>Numeric>>Numeric Constant" and dropping another constant on the diagram.  Can you provide any more information on the steps you took to encounter this problem?  For example, to drop the "0" constant, did you right click on the Dot Product indicator, select Create>>Constant, and then drag the constant to the left side of the screen?  Was the VI broken when you created the constant or after you dragged it?

For the problem with the MathScript Fractal VI, was it broken when you loaded the VI and gave the error you mentioned when you pressed the run button?

Also, if you have already done a repair/reinstall of LabVIEW, did this fix the problem?

Let me know and we can work to resolve this issue.

Grant M.
Staff Software Engineer | LabVIEW Math & Signal Processing | National Instruments
Message 9 of 15
(4,271 Views)

Hi Grant-

Either way seems to cause the problem.  Whether I select a constant from the Palette, or I right click on any of the frame inputs and select "Create Constant", it causes an error.  The fractal VI gives me an error as soon as I open it, before running.  The other two (Lorenz Diff Eq and Fundamentals) only break when I make some kind of change.  No other example (that I've tried) does this.

 

I have not tried to re-install LabVIEW yet.  I've been too busy using it for other things.  I will try that within the next few days, unless something else is uncovered.

 

Thanks for the help

M

 
0 Kudos
Message 10 of 15
(4,265 Views)