03-19-2009 12:19 PM
hey ipshita
The problem with connecting it directly to a waveform chart is that I need to connect the temperature data to the x axis and the depth data going to the y axis, thats why i used the xy graph. I don't know how to approach that with a waveform graph. Here are the Vi's in a zip folder.
Thanks
Moe
03-23-2009 11:29 AM
03-24-2009 05:29 PM
Hello, just to verify, are you looking to plot depth as a function of temperature? If so, the XY Graph definitely makes sense. I still cannot run your code because some of the sub-VIs are missing. You have multiple signals you are trying to graph, are any of them showing up properly on the graph? Could you post a screen shot of exactly what you are seeing with a description of what you expect to see? This would help a lot to make your problem clear. Thanks!
03-24-2009 06:57 PM
hey
Thanks for replying Burt. This is a condensed verison of what I'm trying to do for now. Data are coming out but its not graphing anything at all. I don't know why?
DAQ Input is the program and do reading 1 is a sub vi.
Thanks
Moe
03-25-2009 10:53 AM
Hey Oli,
I still cannot run your VI, but I think I have identified the issue. You have not connected an indicator to the output of the Build XY graph Express VI. You will need to right-click on the XY graph output and select Create»Indicator. Thanks.
03-26-2009 10:05 AM
03-26-2009 10:47 AM
Since you are only passing a single value out of your while loop, you are only plotting a single point. You are also only doing the acquisition just once. So, having a while loop is pointless. You still have not posted the missing VIs so there is no way to tell what they are doing but I suspect they don't do much of anything either. The rest of the code is very confusing as well. I have no idea why you would convert the scalar that comes out of the tone measurement into a 2D array and then to a cluster and then into a cluster. It's my belief that you start from scratch after spending some time taking the LabVIEW tutorials and looking at the example VIs that ship with LabVIEW.
03-26-2009 11:01 AM
why can't you open it dennis? What files does its say you are missing?
I'm not that good in labview but its a project that has to be done soon. Any help from you would be appreciated
Thanks in advance
03-26-2009 11:16 AM
The subVI called Get BathyTemp is missing.
For starters, if you want continuous data acquisition, you need to place it inside the while loop. It's basics like that I feel you have no understanding of. If you want to continuously plot, then the building of the graphs need to be inside the while loop and you cannot pass a reset to the Build XY Graph function. If you want to plot after the acquisition is complete, you need to pass arrays of data out of the while loop - not just the result of the last iteration as you are doing now. You need to redo the Do Reading1 so that you do not have a DBL connected to the case selector. That's because computers (and not LabVIEW) cannot completely represent a floating point number. Because of the conversion of binary to decimal, instead of exactly 1.0, you might actually have .99999999999etc. If you are going to use a numeric wired to a case structure, it should be an integer data type unless you want unexpected results.
03-26-2009 11:34 AM
I want continuous data coming out and I also want a continous plot. The data thats going through i'm creating a fft on it and grabbing the the higest frequency and putting it through the algorithm there to get temp. Also, the depth is another algorithm coming from time hence the graph is going to be depth vs temperature. What I'm trying to do is get an fft, grab the highest peak and that would be the frequency of interest than get another sample and do the same. Also, are you opening the wrong do reading cause its suppose to be do reading1 and that doesn't have Get BAthyTemp.