LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Entering NaN in CVI variables window

Hi,
 
Does anyone know how, or if it is possible to edit a variable value to be NaN in the variables window when debugging?
Not that I need it now, but am curious about entering -Inf and +Inf too.
 
I'm running CVI version 8.0.
 
Thanks,
Darrin.
 
0 Kudos
Message 1 of 2
(2,951 Views)

You can do this in the Watch window. Add a watch expression like the following:

var = 0.0 / 0.0

The above will result in var getting assigned to NaN. You can use similar right-hand expressions to get -Inf and +Inf. After you get the desired value, make sure you delete the watch expression before you continue program execution - this is required to prevent subsequent evaluations of the watch expression.

Message 2 of 2
(2,930 Views)