Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

how to trigger PCI-6110

I am using
 
LabVIEW 8
Windows xp
PCI-6110 card
DAQmx 8.60
 
I have to acquire a single channel of frequency at 1MS/sec having amplitude 5V.
 So I set the Sampling Rate =3Ms/s.
another synch signal for triggering is also available which is connected to PFI0 of ScB-68 terminal block. this signal changes form 0 to 5v and then after some time again 0 and then -5v (as shown in Fig .gif).
our requirement is that if the trigger signal have level or 0v or 5v , the chan1 signal should be writtern to file , and if trigger signal goes to -5v then it should stop to writing file and again if 0 or 5v level occurs it should start capturing and saving to file and so on for several seconds.
Thanks
 
Haider Manager (Electrical)
National Engineering
0 Kudos
Message 1 of 2
(3,076 Views)
Haider,

Writing to a file is on the software side and it might not be able to keep up with the triggering if we tried to tackle this on the software side of things.  I would suggest doing some kind of post processing.  If you are not using the trigger line for anything else, you should be able to set up a seperate digital/analog task and just monitor the channel.  Then you can set up some kind of software logic where, if the signal was zero then you do not save the data otherwise you save the data.

The best way to achieve this would be to use a producer consumer loop and have one loop for acquiring the data and one for all of the analysis and file I/O.  There is a template if you click on file >> New >> Template in the LabVIEW environement where you can see the producer consumer loop.  You will be using queues to pass the data from the producer loop to the consumer loop.

It would be difficult to implement something like this in hardware because the PFI line is TTL logic.

I have attached and example of a producer consumer loop example.  You can utilize this to implement your code.

Hope that helps.

Regards,

Raajit L
National Instruments
0 Kudos
Message 2 of 2
(3,061 Views)