08-13-2014 04:59 AM
Hey lynn
Thanks alot it seems to be working now the chart produced by passing points looks good also thanks alot foryour help :).
1.is there a way to clear the plot after a specific time interval just for the better visualization of the data passing.because the plot shrinking until its impossible to see the wave clearly.
2. its supposed to work for a square wave also i just want your openion on the im passing a square wave in the attached vi , looks good to me what do you think.
Thank alot you have been a great help.
08-13-2014 01:40 PM
1. Do two things. Right click on the chart and change the Chart History Length to 1000. I had set it to a much larger value while troubleshooting and did not change it back. Then create a property node: History data. Change it to write and wire an empty array constant to it. Put it in a case structure controlled by the Clear button. Set the machanical action on the button to Latch When Released.
2. Square wave looks OK to me.
Lynn
08-18-2014 11:37 AM
hey lynn
1.did u mean something i did in the attached vi , since it isnt clearing the chart . sory very new to labview .
2. which hardware device would u recommend bcz i want to operate in Khz range, would arduino boards do the job . what would you recommend.
08-18-2014 04:36 PM
1. You need to keep the history property node outside the loop (without the case structure and button) to clear the chart when the VI first starts running. Then you need to put another history property node inside a case structure controlled by the button inside the loop. Why does it need to be insdie the loop? Dataflow! The value of the button is only read when the part of the code containing the terminal is executed. In the VI you posted that read occurs immediately when the VI starts running and then never again until is has stopped and restarted. The only parts of the code which execute more than once are the parts inside the loop.
2. I am not familiar with the capabilities of the Arduino to determine if it can communicate and write to digital I/O lines fast enough to do what you want, but with clean, well designed code, I suspect it is possible. If you want to use a DAQ device from NI, you will need one with hardware timed digital outputs. Most of the low-end (and least expensive) boards do NOT have that capability. I think some of the X series devices sue hardware timed DIO, although not all all ports.
Lynn
08-18-2014 05:04 PM
Thanks alot lynn u have been a great help i think ive got all i wanted thanks again im attaching the most recent vi incase anybody needs it in the future .
08-18-2014 05:16 PM
Yes. That is what I had in mind. It is not necessry to wire the error out to the case structure tunnel since you are not using it (and it is unlikely that that property node would ever generate an error).
Lynn