05-31-2007 03:39 AM
05-31-2007 03:50 AM
@hyenah wrote:
I am trying to plot data that is being acquired from an LVDT and a thermistor, but in my VI, apparently the waveforms plot a single value every time a new data point is acquired. The rate at which data from each instrument is being acquired depends on how often the thermistor sends data, hence the case structure determining when the DAQ device and serial port are being read...the data is essentially being overwritten so the waveforms don't show the "history" of data that I'd like to see. I've attached my code; I suspect that something in the overall structure is wrong, but this is what successfully eliminated framing errors I had reading the COM serial port. Could someone please give a tip or two to a student scrambling to finish her project on time?
Where is the code ?!
I think you have to use a while loop to continuously plot the data & a shift register to show the "history" of data...
Try this out or post your code here for more help.
05-31-2007 03:52 AM
05-31-2007 03:59 AM - edited 05-31-2007 03:59 AM
Message Edited by hyenah on 05-31-2007 03:59 AM
05-31-2007 04:16 AM
Note: Put the charts inside your True case stucture
Also, since you are using charts, you do not need the 'Build array' function. Just assign a large enough ' Chart history length' value and that should do ( this you do be right clicking on chart in front panel and selecting that option from the drop down menu)
Also look at this sample vi to understand how to plot acquired single data points on Graphs and charts
Any further doubts, do ask
Regards,
Dev
05-31-2007 04:22 AM
Sorry, missed attaching the vi
Here you go
Regards,
Dev
06-02-2007 01:01 AM
Dev,
Can you attach the VI in 7.1 ?
love,
lvlover
06-04-2007 01:45 AM
06-04-2007 04:48 AM
Hi Dev,
When I tried to run your VI, I got the Insane Object error. I ve to click OK, then it runs as usual. If I change the Wait time, it aooears twice.
In 7.1...
Can you try it out on your side if it is happening pmly in 7.1 ?
Please see the attached screenshot of the Insane Object error.
06-04-2007 06:13 AM
Partha,
It seems to work fine out here
Let's see if our friend 'lvlover' also experiences the same problem
Regards,
Dev