Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Plz help me with this problem

Hi All,

 

I want to implement read message from ez430-rf2500 and display in multi-column box. The other part without mark is worked very well. As ou know, the data transferred from ez430 is not continuously. So I must set a pause function. When data is coming, write it into multi-column box. Otherwise, writing function pause and wait for the valid incoming data. I attach my design. The problem I meet is there must be some problems in the mark area, which probably cause infinate loop (not sure about it) and the backward and forward parts do not working too.

Could you plz point out the problem and give some advice?

 

 

Thx,

Li

Download All
0 Kudos
Message 1 of 7
(3,987 Views)
You have created an infinite loop by wiring a false constant to the conditional terminal of your while loop.
Message 2 of 7
(3,981 Views)

Thanks for your promot reply.

Just make sure i am not misunderstand you. Is it right the "constant" you mentioned is "-1" in main while loop?

0 Kudos
Message 3 of 7
(3,977 Views)

No. It's exactly what I said. A False constant False.PNG and it's in the while loop you have circled. If it was the -1, I would have said numeric constant.

 

You may have other problems and I have no idea why you have the while loop or what condition is supposed to stop it. It's impossible to debug a picture.

Message 4 of 7
(3,964 Views)

Hi Dennis,

 

I add my file. It includes a lot of function. Could you pls point out the problem?

I think there might be infinite loop inside.

 

Thx,

Li

0 Kudos
Message 5 of 7
(3,923 Views)

You got rid of the one loop with the constant but it looks like you added an event structure. Not sure why. Why don't you remove it. All that you need is the VISA Close.

0 Kudos
Message 6 of 7
(3,917 Views)

Yeah. There is a while loop outside for loop. I think make use of this while loop might be better and previous while loop is diffcult to control for the existing buttons. Deleting this loop might be a good choice.

If I do not close the visa, will it cause the problem that does not working next time?

Thx, it is working now.

0 Kudos
Message 7 of 7
(3,907 Views)