04-01-2009 10:18 AM - edited 04-01-2009 10:20 AM
Hi,
I have a PCI-6115 board with an external clock source running at ~8kHz and I am trying to produce the following outputs using Labview:
I've attached a basic diagram of the signals I want. I can produce a ramp output timed using the external clock, or I can produce the "wrapper" using a counter, but I can't do both together synchronously!
Anyone have any ideas?
Thanks
04-03-2009 03:53 AM
Hi Grez
I hope you're having a good day. I just wanted to ask a couple of questions about how you are implementing both the measurement of external source and the generation of the wrapper and ramp.
Is the issue that you are unsure of how to synchronise them in the first place? Or do you get any specific error codes when you try to include both the ramp and the wrapper together? Presumably you are using a counter to measure the external source, and that also both your wrapper and ramp require counters. The PCI-6115 has two counters on it, however if you were to use counters for both the wrapper and the ramp you would require three. Given that the ramp and the wrapper have the same start and stop time, there may be some way we could get round this.
Is there any chance you could attach the code you are using? That way I can take a look at exactly how you are creating the outputs and think about ways we can synchronise them.
Kind Regards
04-03-2009 10:14 AM
Hi Jeremy,
I've had another go at this and have found a possible fix/workaround, although I still have a couple of queries (see the end of this post). I've attached the code this time so you can see what I'm talking about. The methodology is as follows:
Thanks for your help.
04-14-2009 04:17 AM
Hi Grez,
I hope you are having a good day. I have taken over this Service Request from Jeremy. I understand you wanted to know if you could do re-triggerable Analog Ouput; I've attached a document here that details how to do this.
I had a look at your block diagram and I am wondering if the problems you are seeing are potentially due to 2 things:
1. There doesn't seem to be a DAQmx Timing VI on the block diagram for the Counter task. I would recommend putting one of these in as this may sort out the Timing skew you are seeing.
2. In the report errors VI, the "OK messages + Warnings" constant seems to be wired to the top of the error report. I think its meant to be wired to the 3rd Node down on that VI instead.
3. My final suggestion would be to check all of your Sample Rates and number of Samples.
Please let me know how you get on,
Many thanks,