취소
다음에 대한 결과 표시 
다음에 대한 검색 
다음을 의미합니까? 

Question about using referencing

Greetings All
 
I am working on someone else's code and came across this part in the VI where the indicators (as shown in red box) are getting updated somehow by referencing. The problem is when I make a property node of any one of the indicators shown in the redbox and try to read the current value it only reads it once when the program starts . Both the indicator and its property node are placed inside the same while loop.
 
For sure I know that these indicators are getting updated because I can see my graphs going up and down but when I add a property node for one the same graphs and select cursor position and try and get value from it, it only shows the one value where cursor was placed when the VI was started and then never gets updated on moving the cursor.
 
I think I am missing something over here.
 
Any ideas.....?????
 
Ankit


Message Edited by ankit on 06-27-2008 03:43 PM
0 포인트
1/10 메시지
4,105 조회수
From the portion of the code you are showing, it appears they update the values by using references. 
 
Right click the control(s). At the top you'll have a selection called Find >   Then you'll see all property nodes or locals that either read or right to that control.  You have to be careful that no race conditions are created by that type of programming.   Whoever wrote the code tried to implement it as a text-based language and to create variables and pass by reference...  Unfortunately, that is not how Labview works.  It follows a dataflow, and the wire is the variable.
 
RayR
0 포인트
2/10 메시지
4,076 조회수

Hi Ankit,

It is very difficult to tell what is going wrong in your VI from the screenshot.

Can you post the VI here?

- Partha ( CLD until Oct 2027 🙂 )
0 포인트
3/10 메시지
4,059 조회수

Hey Partha

I am sorry but I will not be able to post the VI as it can get me in trouble.

Thanks & Sorry......

Thanks RayR: I will try what you said......

Ankit

0 포인트
4/10 메시지
4,056 조회수
Now that's geting a bit annoying.. Spammers hijacking threads.. 😠
0 포인트
5/10 메시지
4,018 조회수
I think the moderators were on leave over the weekend. 윙크 이모티콘
- Partha ( CLD until Oct 2027 🙂 )
0 포인트
6/10 메시지
3,977 조회수

You also noticed all the spam... 😉

 

0 포인트
7/10 메시지
3,952 조회수
For those reading this and not knowing what we were talking about, there was a spam message within this thread.  It was removed. 😉
0 포인트
8/10 메시지
3,880 조회수
But the 1-star rating on the thread is still there. Looks like that bug is still there, but given the ratings system change that is coming (hopefully soon), it doesn't really much matter. So I ask myself: "Why do I bother mentioning it?". Beats me.
9/10 메시지
3,875 조회수
The 1 star rating appears on the spam message.  That seems to indicate that it is not deleted, but rather hidden.. 😉
You get the 5 stars to offset the overall rating of this thread 🙂
10/10 메시지
3,857 조회수