LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Graph stops displaying readings after a certain value.

Hi

 

I am having a bit of a trouble with one of the graphs I am using to display force values. The graph displays values of force till a particular point. After that value there is no change in the graph and I am able to see only a constant horizontal line. This happens even though a display shows me the change in applied force, if any. Can someone please tell me what I am doing wrong here. 

 

Find attached a file for the code I have used. The particular graph that I am talking about here is 'Vertical Force on Loadcell (N)'.

 

Thanks

0 Kudos
Message 1 of 5
(3,055 Views)

Also I am new to using Labview and new to programming. If there is any other mistake in there kindly point that out as well.

0 Kudos
Message 2 of 5
(3,054 Views)

Hello Rajit,

 

I assume you're seeing problems with your "Vertical Force on Loadcell (N)" graph? I notice that you have a numeric indicator coming out of the line that's attached to that graph. Do you see updates on that numeric indicator when your graph is displaying a static value? You also have a numeric indicator on your horizontal load cell graph. Do you see updates on that numeric indicator?

 

Also, how long does it take before this condition occurs? Does it appear to occur at random times, after the same amount of time, or when a particular event occurs (such as a write to file)?

 

With regards to general feedback on your VI, I have a couple of general points:

1) Your wiring is somewhat confusing. It is generally better to try and reduce wire crossing points for better code readability.

2) You're using a number of express VIs for doing calculator functions. In the express VIs that I examined, you were doing simple operations (input * constant). You can do this function more easily and cleanly using the "Multiply" block. You can find this block in the functions palette under Programming --> Numeric. You can use the multiple block on dynamic data, even if the number you're multiplying the data by is a double or an integer.

3) Your graphs have labels, which is good. However, your numeric indicators do not have labels, which makes them difficult to interpret.

4) None of your error terminals are wired. It is generally better programming practice to handle the errors as they happen, and stop the programming loop if there is an error.

5) You are writing to a file in the same loop where you are gathering data. This is probably OK for your application, but you may want to look into producer-consumer loop architecture (https://www.ni.com/en/support/documentation/supplemental/21/producer-consumer-architecture-in-labvie...) if your file writes are slowing down or interfering with your data acquisition.

Colden
0 Kudos
Message 3 of 5
(3,023 Views)

Hi Colden,

 

The vertical load cell graph displays a constant load at 21lbs and the graph does not show any increase in load after 21 lbs. So if I apply a load of 30lbs(say), the graph will still display that constant load line indicating 21lbs. The numeric indicator for this graph shows that same value. The readings that I get for any load under 21lbs is correct. The graph and the indicator both show cloase to exact readings. But I am not able to figure out why this problem occurs with loads higher than 21lbs.

 

As far as the horizontal load is concerned I don't have any problems with that. I can crank the load upto 700lbs and I still get accurate readings on the concerned graph and indicator.

 

Thanks for the other advice. I will modify my VI accordingly and post again. I appreciate your help.

0 Kudos
Message 4 of 5
(3,006 Views)

Hello Rajit,

 

I believe what is happening here is that your load cell is hitting 10V when it has a 21 pound load. In your code you multiple the horizontal load by a larger number (100) and the vertical load by 2. So in order to get to 30lb load, your vertical load reading needs to come in at a higher voltage (15V). Your express VI indicates that your min/max voltages are +/- 10V, so the value will not come in as any higher.

 

What is the maximum output voltage of your load cell, and what device are you using to measure the voltage?

Colden
0 Kudos
Message 5 of 5
(3,003 Views)