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)
|
![]() |
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
|
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
|
||
|
|
|||
| Ad |
Sep 4 2003, 10:15 PM
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
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 --------------------
|
||
|
|
|||
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
|
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)
|
||
|
|
|||
![]() ![]() |
| Time is now: 22nd November 2008 - 05:44 AM |