LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

PCI MIO 16E

I need some help for triggering an acquisition.

So my application is:
I must deliver a sinusoid on Analog Output, and begin the acquisition on 2 Analog input with a delay of 5 period of the Analog output. How can I do this.

I am not useful with DAQ, first time I use so...

Thanks.

Greg
Greg S.
CNRS
LV 7.1 8.2 8.6 2009 2011 2012 2013 2014
LPMC - CNRS
N'oubliez pas de complimenter cela fait toujours plaisir.
0 Kudos
Message 1 of 4
(3,013 Views)
Greg,

This cannot be easily resolved, I don't believe.

Here is how to set about figuring out the solution: Build a timing diagram. This will show you, visibly, what signals you have, what you need, and probably, how to get them. Include logic, as applicable.

This can be resolved in a number of ways, and I can help you decide which one. First, if the application is slow, you can use software. If it is fast, you can use software/hardware to a point. If it is very high speed, you will need to resolve it with hardware.

Software: Use your timing diagram to trigger on the signals. YOU are the source of the signal out/trigger, so you can setup the trigger in software.

Software/Hardware: Use your imagination. See Hardware solution for more
info.

Hardware: This is tricky, and may involve some external hardware. Setup a counter to count your analog output (you will likely have to use a transistor or other circuit to resolve the sine wave to a pulse train.) Then, setup a counter on the MIO to output a pulse on the fifth DI. Then, set it up to output your DO 'trigger' and route that signal to the input trigger for your analog input. This will involve some creativity on your part, some serious concentration on signal routing, and a lot of patience.

I have done similar setups, so if you get into a bind, and have lots money to spend, give me a call...or just post here and I will try to help. I will NOT solve the problem for you though. I get paid to do that.

Good luck
0 Kudos
Message 2 of 4
(3,013 Views)
Hi Greg,

you should generate your sin-wave using the continous buffered generation: each buffer should contain the data of one period, then check how many buffers have been generated and start the acquisition after 5.
There's a useful example in LV: Generate Continous Sinewave.vi; you can easily add the acquisition functions in it.
Note that the triggering of your acquisition is software-controlled, this means that you have to consider 10-20 ms of no-determinism in Windows OS.

Let me know if you need more help, good luck,

Alberto
0 Kudos
Message 3 of 4
(3,013 Views)
Let's simply your question.
*You got 1 Analog output and 2 Analog inputs.
*You goal is to be able to generate the output and read the input at the same time.

This is your answer.
First I have been using PCI MIO 16E for over 4 Years now.
Second PCI MIO 16E is not only product I only use for my career.
PCI MIO 16E is a entry level of DAQ devices. There are many DAQ devices out there that got better performance than this one. I will get the the point. As I understand from the manual PCI MIO 16E may have only one circuit to do the Analog acquisition. Then you might only real or write only, but not both at the same time. If you asked me what if I read and reset and write and reset. I is not going to work. When you reset (initialize the device) It takes tim
e to reset the device. It will be my best recommendation that you read the analog inputs from DAQ device and use a very dirt cheap function generator to create a sinusoid signal. By this way you only focus on programming your two analog inputs.
I believe that it is not very hard for you to find the way to read two analog inputs. There are plenty of examples in NI sites and two answer above me. They are very helpful to you.

Good luck.
0 Kudos
Message 4 of 4
(3,013 Views)