05-04-2010 05:03 PM
05-05-2010 09:02 AM
You can create a property node by right-clicking on a block diagram icon (or front panel control) and then create>Property Node>History Data (or whatever parameter you want). [FYI:This will be an implicit property node meaning it's linked "under the hood" to the control or indicator. You can also explicitly link a property node pulled off the palette by directly wiring a reference to it.]
I still can't open your VI but the error message is a classic DAQ timing issue. You have set parameters that are causing samples to be leftover in the DAQ card buffer when the card is asked to collect again (which will overwrite the buffer). Something is set too fast OR you are not buffering out your data correctly. Hopefully someone can look at your code and give you some more help.
05-05-2010 10:05 AM
Thanks, i found the node, somehow I missed it yesterday 🙂 But anyway I tried it out and it might seems to work, am i right with the example, that it is in sec (2sec) the last one?
If this is right, is it then "ok programming" to make a hidden chart and then convert it, like in the example?
05-05-2010 10:48 AM
Your math is correct and this will technically work. I wouldn't call it "OK programming" though. It's probably worse than building an array in a loop as far as efficiency goes. The chart and its history property node have no data flow so you could lose data on the last iteration. I'm sure there are more issues I can't see right now. Again, I thought you needed a way to pull data from a chart and make its timebase correct. If your application is to monitor timebased signals accurately on-the-fly then you should avoid the chart and use a better method for viewing and storing the DAQ data.
I can't provide much more without being able to open your VIs. If I find some general examples, I'll post them up.
05-05-2010 10:55 AM
05-05-2010 12:02 PM
Hi anyone..
If i wanna stick to the chart is it then possible to "convert" x-axis into a timeline? I tried to convert the number of samples, but I think that its wrong to multiply. Is there any chance that its possible to get the chart to show fx 2sec, like the above graph, or should I forget about the chart?
The graph in the middle seems to add the signals, and that is not the purpose.
I dont get it 🙂
05-05-2010 12:07 PM