LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Generating AO based on the value of AI?

Hello all,

I am new to labview and require help in putting together an application.

I have a PCI-6229 card hooked up with a set of 64pin- BNC converters. The DAQ card has 32 analog inputs and 4 analog outputs. I have an analog input which is pressure data coming from a analog pressure transducer. This pressure data ranges between 0 mm Hg to 140 mm Hg. When the pressure reaches 20mm Hg, I want to generate an analog output on the 4 analog channels and stop this generation once the pressure goes beyond 50mm Hg. This generated analog output is used to control the motion of 4 linear actuators hooked onto each analog output channel.

I would appreciate it, if someone could help me out with this project.

Thanks
Murali.
0 Kudos
Message 1 of 2
(2,465 Views)

Hi Murali,

You will need to use triggering for your application.  In this case, you have a few options of how you want to program it.  Your application is going to require 2 triggers: one to start the analog output and one to stop the analog output. 

You can use the analog input from the pressure transducer as one of your triggers.  You can acquire the pressure as a voltage and trigger the analog output off of the voltage level.  You will have to use software for the other trigger.

For example: you can continuously acquire your analog input data and use a start trigger based on that analog signal to start your analog output.  Then you can use a software trigger to stop your analog output when your analog input voltage reached a defined level. I created an example program by modifying a couple of LabVIEW shipping examples programs to show you this.

The LabVIEW example finder is another great resource.  I recommend looking at 2 examples:

1. Continuous Acquire and Graph Voltage Internal Clock which is located in Help>>Find Examples>> Hardware Input and Output>>DAQmx>> Analog Measurements>> Voltage.


2. Continuous Generate Voltage Waveform Internal Clock Analog Start which is located in Help>>Find Examples>> Hardware Input and Output>>DAQmx>> Analog Generation>> Voltage.  This example will generate an analog output after receiving an analog trigger.

I hope this information helps you with your project.

Regards,
Hal L.

Message 2 of 2
(2,449 Views)