03-03-2009 02:57 PM - edited 03-03-2009 02:58 PM
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.
03-04-2009 09:08 AM
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
03-12-2009 12:44 PM
03-13-2009 10:41 AM
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
03-13-2009 11:02 AM
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
03-13-2009 11:19 AM - edited 03-13-2009 11:29 AM
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.
03-13-2009 11:38 AM
Same behavior notedusing DIAdem 11.0 on my Vista Laptop as well as my old XP Desktop at work.
03-18-2009 07:38 AM
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
03-23-2009 12:44 PM