LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

graphs problem

I wil just give a brief overview of what I am trying to accomplish with the vi (attached) .

1. I want the current temperature when the user presses 'current temp'.
2. Same thing goes for the humidity.
3. Now the critical part lies in the part where the graphs will be updated at regular intervals (time interval option on the front panel) when the user specifies the target time. As long as the current time is less than the target time, data should be plotted on to the graph.
4. Now when the timer is running and if the user presses the current temp./current humidity switch, the  continuous plotting of graph should be disabled for that fraction of second. This is done because same port is used to access the temperature/humidity/robot control operation.
 
 
The data points do get updated on the digital display of the temperature and humidity chart, but nothing is plotted on the graph. If you try to run the vi, and set the target time to a time higher than the present time, temperature data should be plotted on the temperature chart at the rate of the time interval until the current time surpasses the target time. But no data is plotted in the chart, it is only displayed in the digital window of the waveform chart.
 
Any help is appreciated.
 
Regards,
Mozill

0 Kudos
Message 1 of 18
(4,038 Views)
Can you clean up your VI some (actually a lot) and repost it? It's too big to view all at once and the wiring leaves a lot to be desired. A quick glance shows several problems. One is that you have the acquisition and plotting in the false case. That means that if anyone presses those front panel controls, nothing happens. You also have the charts outside some case statements. When the case is True, you'll just be passing a default value (0) to the chart and I don't think that is what you want at all.
Message 2 of 18
(4,004 Views)
Hi Dennis,

I am using same serial port for data aqusition from the serial port when I press the 'current temperature', 'current humidity', or the output of the timer values. When I set the target time to a time greater than the current time, I want the data to be updated at regular time intervals as speicified by the 'time interval' control on the graph. Now during this continous data acquisition, if I press the 'current temperature' or 'current humidity' switch, I wanna make sure that the continous acquisition is halted as I dont want to write to the serial port at the same time which will mess up the readings. Because of this problem, I have place the graphs showing the continous acquisition in false case. Also, just because of the requirement I have no problem in plotting zero on the graphs during false case structure. Its not even plotting zero when the case is false.

I am posting the vi again for your convenience. I just wanna let you know that the x-axis of the charts do  not show at all. As far as I know, that indicates something which is preventing the x-axis parameter on the chart disallowing it to plot.

Thank you for your time.

Regards,

Mozill
0 Kudos
Message 3 of 18
(3,985 Views)
No. Not at this time. It would take me many hours to shrink your diagram to something viewable and to straighten out all of the goofy wiring that is going on. And, since I don't have the test equipment to just run the program, all I could do (or anyone else) is look at the diagram. Sorry.
Message 4 of 18
(3,982 Views)

Hi Dennis,

Here is the compressed vi. Sorry for the last one.

 

Regards,

Mozill

0 Kudos
Message 5 of 18
(3,956 Views)
Hi M

I can fully understand Dennis commentsSmiley Surprised

I would suggest that you read the guide lines in how to present your code.

Use sub vi 's as well

I have made a  quick attempt to clean up you vi. However after starting I realise that it would take  more time than I can allocate Smiley Wink
The attached png shows you how to change your math code into G code. Note it is only the start of the maths alogrithm. From Level, Voltage , Resistance. If you continue then you need to
G code the last section of the False statement in Frame 1 of the top case selection.

Note also that you serial communication needs to checked. I have quickly amended the first coms  using visa, see how there is more structure to the code. It is thus easier to follow and debug.

xseadog


0 Kudos
Message 6 of 18
(3,948 Views)
0 Kudos
Message 7 of 18
(3,947 Views)

 

 

Message Edited by Mozill on 03-15-2007 03:05 PM

Message Edited by Mozill on 03-15-2007 03:06 PM

0 Kudos
Message 8 of 18
(3,930 Views)
Did you preview your post?Smiley Very Happy
xseadog
0 Kudos
Message 9 of 18
(3,910 Views)
Hi Dennis and xseadog,
 
Actually I tried compressing the vi using sub-vi option. But when I press the current temperature option, it gives me a scan from string error. I am just zipping the files.
 
Thank you for your time.
0 Kudos
Message 10 of 18
(3,897 Views)