LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

change states of Digital output from analog input

I am trying to Measure two analog signals for 1 second at 1K hz.

I am controlling three digital outputs.

 

At.05 seconds i want Dig output channel #1 to energize. Which causes analog PSI to rise.

When analog output channel #2 reaches 73 PSI. I want the digital outputs #2 and #3 to energize and stay energized. Which drops the PSI.

@ .7 seconds i want digital outputs #2 and #3 to de-energize.

 

My problem is the while loop is taking to long to execute.

This process needs to take place at 1K Hz. Suggestions?

 

0 Kudos
Message 1 of 7
(3,207 Views)

I have tried usign an analog trigger to control the digital line, but recieve an error.

 

 

 

 

0 Kudos
Message 2 of 7
(3,169 Views)

anyone point me in the right direction?

0 Kudos
Message 3 of 7
(3,134 Views)

What hardware are you using? For real time controlled events, you will likely need to look at FPGA devices to ensure the exact timing you require.

0 Kudos
Message 4 of 7
(3,107 Views)

Analog module ni 9205

digital module ni 9401

0 Kudos
Message 5 of 7
(3,096 Views)

Unfortunately, you will not be able to control the timing of this structure closely enough to ever guarantee that it runs exactly at 1 kHz. Even the trickiest coding to ensure close approximations of timing (but not extremely accurate) will result in slower sampling rate of your analog input.

 

As I mentioned previously, the only way that I know of to guarantee the execution timing will be to look at our real time targets using FPGAs. These will allow specific routings for each clock cycle. For more information on our CompactRIO products see the below link.

 

http://www.ni.com/compactrio/

0 Kudos
Message 6 of 7
(3,032 Views)

Here is what you should look at: Analog Triggering of a Digital Signal

 

Here is a general White Paper discussing Analog Triggering.

0 Kudos
Message 7 of 7
(3,022 Views)