LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

cRIO-9030 value change - old value incorrect

I am working on a cRIO-9030. That is one of the cRIOs with Linux OS. I have a pecuilar problem. I created a cluster with 2 text rings. I created an event that monitors its value change. I watched the old value, and it was showing incorrect information. Instead of showing my values it would show <####>. It wouldn't show '#' but a bunch of numbers. I posted a video of it below and a picture of the block diagram. Does any one have an idea what the issue here may be?

 

EDIT: Apparently I can't post a video. So here is a still of the front panel. You can clearly see the nubmer on the OldVal cluster.

 

I tried running this exact code on the computer instead of the RT, and it worked fine.

Download All
0 Kudos
Message 1 of 8
(3,710 Views)
The display you are seeing is what you get when you select a value in the ring that you haven't defined.

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 2 of 8
(3,679 Views)

All the values are defined. It worked on the computer, and it doesn't show the same problem in the NewVal cluster. But either way here is a screen capture of the ring properties.

0 Kudos
Message 3 of 8
(3,651 Views)
Yes, it's exactly like I said. As your screen shot shows you only have the values 0 through 2 defined. The text in the string doesn't matter. It could be "Tom", "**bleep**", and "Harry".

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 4 of 8
(3,641 Views)
Hmmm. Make that "Tom", "Richard", and "Harry". 😄

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 8
(3,633 Views)

You are right the text doesn't matter. I am just cycling through the defined values {0, 1, 2}. The NewVal cluster shows the correct values {0, 1, 2}, but the OldVal shows incorrect values. I don't allow undefined values so I shouldn't be able to get a number that isn't defined.

 

Edited: Here is another front panel. This time I took out the text rings on the indicators and the OldVal is clearly incorrect.

0 Kudos
Message 6 of 8
(3,630 Views)

What was the cluster's value before you had the Value Change event?  Do you have any parts of your code writing to the control?  You can write invalid values programatically and you will get a display like that.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 7 of 8
(3,620 Views)

It was [0, 0]. I thought maybe it was the first change, but it happens a lot. Usually when I switch to the second choice, but it doesn't matter if I switch to it from the first or third. It doesn't matter if I switch the top or bottom ring, it will occur. Sometimes it will just say [0, 0] no matter what it should be. And I am running it right now and the OldVal says it is [9216, 0]. I am starting to think this is a bug that will require a CAR.

 

Sorry I didn't see your second question. The image of the block diagram above is all there is to this code. The other even case is just to stop the while loop. I kept this simple to probe this issue.

0 Kudos
Message 8 of 8
(3,615 Views)