04-07-2006 06:07 AM
04-07-2006 06:08 AM
Hi,
I tried running a stripped down version of your code here, and see what you mean about it only returning data once. Have you tried removing the Start DAQmx vi (the one with the greeen arrow) from the Initialise case? It seems to work here.
I haven't got your analogue limits trigger VI in the zip file you posted. How are you getting on with getting pre-trigger data working in finite samples mode?
Cheers,
Mark
04-07-2006 07:03 AM
04-12-2006 03:57 AM
04-12-2006 05:39 AM
04-12-2006 05:55 AM
04-12-2006 07:39 AM
04-12-2006 11:15 AM
Hi Griogair,
Sorry you couldn't open the previous post. I had a quick look for easy ways to force an integer number of cycles in LabVIEW, but couldn't find anything suitable straight off, so I created my own sub-vi for it (called zero-crossings) It searches for all the zero crossing points and then returns the position of the n-th zero crossing point. This means that you can then take a subset of the readings corresponding to 0 up to the nth crossing point, hence returning an integer number of cycles.
I've left it with a control so at the moment you can specify the number of cycles you want - you could obviously replace this with a constant if you only ever wanted 10. Remember that if the waveform never actually equals 0 you won't see it touch 0 at the start and end of your trace - it will appear closer and closer to a zero cross the higher your sampling rate is relative to your input signal.
Please let me know if this helps (I hope this one opens OK!)
Best wishes,
Mark
04-12-2006 11:33 AM
04-12-2006 11:43 AM