DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

calculator error recovery

When running through the exercises in DIAdem 11.0 I have found that if I get the syntax wrong on a calculator function and the result line shows that "THere was an error in the calculation" that ANY subsequent calculation request that I type into the field continues to show Error in calculation.  Is there a way to reset the calculator other than shutting it down and restarting (closing the calculator and opening again?)

 

For example, I was using PNO("Roll 3", 100) - a command that works to find the closest first index to 100 in the channel data for Roll 3.  If I made a mistake and left off one of the quotes, press <calculate> and am told there was an error, correcting the error and pressing calculate again still indicates an error.


Thank you.

Message Edited by RVallieu on 03-03-2009 02:58 PM
Ryan Vallieu CLA, CLED
Senior Systems Analyst II
NASA Ames Research Center
0 Kudos
Message 1 of 9
(5,013 Views)

Ryan,

 

You should be able to clear Error during Calculation by typing in the correct Syntax. Does the error disappear if you delete the function completely and type in something very simple that does not require the use of channel data, such as Char(3)?

 

-Adri K

Adri Kruger
National Instruments
LabVIEW Product Marketing
0 Kudos
Message 2 of 9
(4,993 Views)
No matter what I did in the calculator the Error response persisted after it was first generated until I closed and reopened the Calculator.
Ryan Vallieu CLA, CLED
Senior Systems Analyst II
NASA Ames Research Center
0 Kudos
Message 3 of 9
(4,955 Views)

Ryan,

 

If you create a new channel and set the values equal to the data you obtain through running a channel calculation does the data display properly in the new channel. The reason I am asking this is because I am curious if the calculation is being done properly and the calculator error display is incorrect or if the calculation is not being done correctly and the calculator error display is correctly indicating that there is a problem. 

 

-Adri

Adri Kruger
National Instruments
LabVIEW Product Marketing
0 Kudos
Message 4 of 9
(4,942 Views)

Hi Ryan,

 

Also, do you see this issue on only one computer or on multiple computers?  Would you please check and let us know if it occurs on at least one other computer?

 

Thank,

Brad Tupin
DIAdem Product Support Engineer
National Instruments

0 Kudos
Message 5 of 9
(4,938 Views)

Ok - using the same method as before and doing a PNo("Channel", Condition) search and leaving off one of the quotes I was able to recreate the problem of not being able to run subsequent calculations.

 

When I made mistakes in a couple other simple assignments the calculator recovered on its own without closing and opening it (before doing recreating the PNo error).

 

After correcting the PNo syntax error and not being able to run a calculation again I did the channel creating that you asked about and it ran fine and created the channel.  I did a simple Ch("new")=Ch("old")+10 after getting the previous syntax error.

 

It seems that certain syntax mistakes are not self clearing?

 

Doing a simple assignment after getting the non Clearing PNo error did work.  It's only when I add back the missing quote and try to run the Calculate on the PNo.

Message Edited by RVallieu on 03-13-2009 11:29 AM
Ryan Vallieu CLA, CLED
Senior Systems Analyst II
NASA Ames Research Center
0 Kudos
Message 6 of 9
(4,935 Views)

Same behavior notedusing DIAdem 11.0 on my Vista Laptop as well as my old XP Desktop at work.

 

 

Ryan Vallieu CLA, CLED
Senior Systems Analyst II
NASA Ames Research Center
0 Kudos
Message 7 of 9
(4,931 Views)

Good Morning Ryan,

 

I was filed a corrective action request with the National Instruments research and development team. In this request, I documented the behavior you are experiencing so that the R&D team can better determine if this is a bug in the implementation of the DIAdem calculator.

 

-Adri K

Adri Kruger
National Instruments
LabVIEW Product Marketing
Message 8 of 9
(4,868 Views)
Thanks for the update.
Ryan Vallieu CLA, CLED
Senior Systems Analyst II
NASA Ames Research Center
0 Kudos
Message 9 of 9
(4,819 Views)