Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Performing A Set Of Actions After Recieving A Digital Trigger

Hello,
 
I'm using the NI 6025e board and would like to write a program which would do the following:
 
after getting a digital trigger -
                                                 1. read one sample from the analog channel.
 
0 Kudos
Message 1 of 4
(3,020 Views)
I'm sorry, I've sent the massage before completing it and accidentally 2 times.... Smiley Sad
 
Anyway, my question is this:
 
 
I would like my program to receive a digital trigger and only then to :
 
 
1. read a single sample from an analog channel.
2. to move a motor onto a certain location.
3. send a trigger out to tell that the program is set to receive another trigger in again.
 
I've already written analog acquisition programs before, but this time the incoming trigger does not only take care of of triggering acquisition as I'm used to but also other actions - the motor and the trigger out. Should I use the PFI's again or a simple digital input ? How do I take care of the motor and the trigger out part ? An example will be more than appreciated.
 
Thank you.
 
 
0 Kudos
Message 2 of 4
(3,018 Views)

Hello Mic_Scale,

It would be nice for us to know what hardware and software you are using so that we understand the capabilities that are available. 

It sounds like you know how to acquire a sample when a trigger is received.  If not, please look at the shipping examples that install with the DAQ driver. 

What does your motor require to move?  Do you need to provide it with a DC voltage from your analog output?  Or a pulse train from a counter?  You could start this operation as soon as the analog input was finished.

I would use a digital output line to send out a digital signal.  What sort of timing constraints do you need in your program?  It would be fairly easy to setup all of this using software-timing no matter what hardware you are using.

Please post back with more information.

Regards,

Laura

0 Kudos
Message 3 of 4
(2,998 Views)
Hi Laura,
 
I thought that this thread would be lost because of the mess, so I've written a new one (I'm usually vert neat, I'm sorry for this). Anyway I've added all the information I could, I would love to have your look at this.
 
Thank you very much, the thread is:
 
 
0 Kudos
Message 4 of 4
(2,987 Views)