LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to make a double null?

if you wire a constant 0 to it it sets the value as 0. i need it to be deleted, set to null. what do i wire to it?
0 Kudos
Message 1 of 22
(5,154 Views)

Numerics in LV do not have the concept of a null value. The closest is NaN which is an invalid value. You can get it simply by typing that into a numeric constant.

What is it exactly that you want to delete?

To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here, here, here, here, here and here are a few you can start with and here are some tutorial videos. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).


___________________
Try to take over the world!
0 Kudos
Message 2 of 22
(5,149 Views)


@unknown00 wrote:
if you wire a constant 0 to it it sets the value as 0. i need it to be deleted, set to null. what do i wire to it?

What is "it"??? (binary string, formatted string, numeric, etc.)
How is "it" formatted?? (\-codes, hex display, hex format, ...)

0 Kudos
Message 3 of 22
(5,150 Views)
i tried using NaN but doesn't work. it just shows up as a string "NaN"

it refers to a double numeric indicator in an array. altenbach remember you kind of helped me out with this before, but instead in the past i needed to know how to set a string as null instead of a string as a blank value in an array? kinda the same thing but now instead of a string it's a double


//EDIT: i want to delete a numeric double value. 0 is still a value so it will still be analyzed i need it so it's "null" so it won't

Message Edited by unknown00 on 07-05-2007 02:48 PM

0 Kudos
Message 4 of 22
(5,148 Views)
Right click on the element and under the Data Operations submenu select Delete Element.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 5 of 22
(5,137 Views)
The showing of NaN in the array means that the value is NaN ( a IEEE xxxx standard), what you most likely need is a 'delete from array' function.
Since NaN generates errors on a lot of functions.

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 6 of 22
(5,134 Views)
mike that is exactly what i need but is there a way to do that without having to manually follow those steps?

//EDIT: oops my bad. it's not an array it's a cluster

Message Edited by unknown00 on 07-05-2007 02:56 PM

0 Kudos
Message 7 of 22
(5,135 Views)
Yes, there is also a delete element function under the array function menu.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 8 of 22
(5,129 Views)
again sorry it's not an array. here is a pic
0 Kudos
Message 9 of 22
(5,126 Views)
For what it's worth, NaN does not generate errors in a lot of functions. Rather it propagates itself in very predictable and standardized ways. For example, any calculation where NaN is an operand will result in NaN - maybe inconvenient, but not an error. This is the way it is supposed to work. Likewise any comparison involving a NaN will evaluate to false - again, the way it is supposed to work.

Working with floating-point data requires care if you are to avoid getting into trouble. So if NaN causes an error in my code, that is my fault. I should have written it better. Smiley Wink

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 10 of 22
(5,120 Views)