LAVA Forums Buy cool LAVA gear Forums RSS Feed

Welcome Guest ( Log In | Register )

> Related links

Check out our General Code Repository Files. Also, before posting here, check to see if your post doesn't fit into another subforum by category.


Tags
(This content has not been tagged yet)
 
Reply to this topic Start new topic
> Variant Data: Comparing prior and present values
donroth
post Sep 4 2003, 10:15 PM
Post #1


More Active
**

Member
Posts: 30
Joined: 12-June 03
Member No.: 115
Using LabVIEW Since:1993
LV:8.20 ,8.0 ,8.20
Nothing Selected Nothing Selected Nothing Selected


Hi:

For you VARIANT gurus, have you run into any problems when comparing a present value of a variant (imagine for example a cluster of various types of controls that was converted to variant type) to a prior value and erroneously not sensing a change (when in fact the present value has changed from the prior value). I seem to be running into this problem whether comparing the variant data directly or even when performing a Variant-to-data conversion and then doing the comparison.

Can provide an example if needed. Is this one weakness of using variant data?

Sincerely,

Don


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Ad
post Sep 4 2003, 10:15 PM
Post #















Tags
(This content has not been tagged yet)
Go to the top of the page
Quote Post
Jim Kring
post Sep 4 2003, 10:48 PM
Post #2


Changing the world, one VI at a time.
*****

JKI
Posts: 1692
Joined: 22-October 02
From: San Francisco, CA
Member No.: 17
Using LabVIEW Since:1995
LV:8.2.1 ,8.5 ,7.1.1
United States us_california Nothing Selected My Blog My Gallery


QUOTE
Hi:

For you VARIANT gurus, have you run into any problems when comparing a present value of a variant (imagine for example a cluster of various types of controls that was converted to variant type) to a prior value and erroneously not sensing a change (when in fact the present value has changed from the prior value).  I seem to be running into this problem whether comparing the variant data directly or even when performing a Variant-to-data conversion and then doing the comparison.

Can provide an example if needed.  Is this one weakness of using variant data?

Sincerely,

Don


Don,

Yes please provide an example. I'n not sure why you are having problems. But, there are cases where Variants are buggy (LabVIEW bug) in LabVIEW 6.1 and earlier.

-Jim

--------------------
-----------------------------------------------------------------------------------------------------
| Book | OpenG | LAVA | Champion | VIPM | Builder | Blog | JKI |
-----------------------------------------------------------------------------------------------------


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
donroth
post Sep 5 2003, 02:01 PM
Post #3


More Active
**

Member
Posts: 30
Joined: 12-June 03
Member No.: 115
Using LabVIEW Since:1993
LV:8.20 ,8.0 ,8.20
Nothing Selected Nothing Selected Nothing Selected


Hi Jim:

This was in LV7. I put together a simple example which caused me to figure out the problem (which happened to be brainblock on my part). So in fact the variant comparison worked perfectly (I got a little scared there because I have used this over and over in LV6.1 successfully). I attach the simple example that does in fact work properly.


Sincerely,

Don
Attached File(s)
Attached File  test_variant.llb ( 41.41K ) Number of downloads: 346
 


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

 




Time is now: 22nd November 2008 - 05:44 AM