LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

using the delayed pulse function to trigger analogue acquisition

Hello all,

I would like to use the delayed pulse function to trigger an analogue acquisition. Keeping in mind that the value of the pulse delay and pulse width is used actuate a solenoid for an exact amount of time ie. the pulse width determines how long the solenoid is actuated. In other words, can the delayed pulse function be used to both send a pulse to a piece of equipment and to trigger an analogue acquisition?


Please have a look at the acompanying code,
cheers,


Ash.

Please note that I have also posted this question in a comment to a reply to a previous question I had asked, entitled, 'time taken to recieve an analogue input'. It hasn't been answered yet and i just thought
that since the question was off the topic of the original question I should put it in a new thread.
0 Kudos
Message 1 of 4
(2,666 Views)
Hi,

you should use lower level DAQ functions to control the analog acquisition by a digital trigger.
There's a couple of example in LV: Acquire N Scans Digital Trig.vi, Acquire N - Multi-Digital Trig.vi that shows how to use digital triggering for analog acq.

Refer to the vis documentation for connection of the digital signal that should start the acquisition.

Take a look also at Chapter 8 of Data Acquisition Basics Manual.

Hope this was helpful,

Alberto
0 Kudos
Message 2 of 4
(2,665 Views)
Hi ash,

sorry but I was 2 days not in the dev zone, but I have seen your reply.

You have to use the intermediate AI functions to do that. You can use two steps:
1: configure your analog input and start the acquisition.
2: At the end read your data.

I have changed your VI and attached it.

You have to set the slope of the trigger, if the default is not right.

You have to connect one of the pulses to the trigger input of the AI. This is normaly PFI0.

Waldemar
Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
Message 3 of 4
(2,665 Views)
Thanks very much for your help Waldemar, the program now performs as it was intended. Without your help I was very lost as I didn't know how to modify the intermediate Al function examples for my own purposes. So, thanks again.

Cheers,

ash.
0 Kudos
Message 4 of 4
(2,665 Views)