epravi Posted September 5, 2004 Report Share Posted September 5, 2004 Hello everybody! I get some values of pressure and enthalpy (not array) depending on time and want to make an XY graph Pressure-Enthalpy but as far as I can it always needs arrays to work. Does anyone know how can I represent this graph?? Thank you very much! Epravi Quote Link to comment
Norm Kirchner Posted September 7, 2004 Report Share Posted September 7, 2004 Do you mean that you receive multiple points for pressure and enthalpy all at once, just not in an array, or you recieve 1 pressure and enthalpy point at a time at random intervals? But just to get you off and running. Look at the array pallet and the Build array function. You can make a single value a 1-d array w/ 1 value by simply wiring 1 element into it. Quote Link to comment
epravi Posted September 8, 2004 Author Report Share Posted September 8, 2004 Just so, I recieve 1 pressure and enthalpy point at a time at random intervals, but I don't know how to build an array with all these values and to represent it in XY Graphs. Quote Link to comment
PJM_labview Posted September 9, 2004 Report Share Posted September 9, 2004 Just so, I recieve 1 pressure and enthalpy point at a time at random intervals, but I don't know how to build an array with all these values and to represent it in XY Graphs. 1691[/snapback] Check the attached example (LV7.0) PJM Download File:post-121-1094694806.vi Quote Link to comment
epravi Posted September 9, 2004 Author Report Share Posted September 9, 2004 Sorry PJM but I can't open the file. Don't know why. When I try to open it, says that I have to look for the name of this file, and so on. Could you help me?? Quote Link to comment
PJM_labview Posted September 10, 2004 Report Share Posted September 10, 2004 Sorry PJM but I can't open the file. Don't know why. When I try to open it, says that I have to look for the name of this file, and so on. Could you help me?? 1716[/snapback] Odd, there no call to anything in that file (only labview primitive). What version are you running ? Meanwhile here is a screenshot of the block diagram. PJM Quote Link to comment
epravi Posted September 10, 2004 Author Report Share Posted September 10, 2004 I'm running v7.0, but I'm also a beginner. Quote Link to comment
PJM_labview Posted September 10, 2004 Report Share Posted September 10, 2004 I'm running v7.0, but I'm also a beginner. 1718[/snapback] Well, the file work fine for me (and is in LV7.0). I just redownload it from the forum. Just in case I attached a 6.1 version (should not make any difference but who know). I any case, you have the screenshot to get you going PJM Download File:post-121-1094771598.vi Quote Link to comment
epravi Posted September 10, 2004 Author Report Share Posted September 10, 2004 Thanks. I'll try it again. Quote Link to comment
Norm Kirchner Posted September 10, 2004 Report Share Posted September 10, 2004 Ok Mr. Beginner, Here's your crash course. The XY Plot will only display the data currently input into the control. So every time you get a new point, you must merge it with the previous data and push that to the XY plot control. The way to access previously acquired points is to use shift registers. Here's the methodology, like in PJM's example. Acquire an x point and a y point use the build array feature to merge the current x point with an array of all previous x data and do the same w/ the y point. Then after the new points are merged bundle them together and then push the new cluster to the XY plot. Hopefully this combined w/ PJM's code you understand how to handle the data you are getting -Norm Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.