LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

calculate startup time with Compact Rio

Hi there.

My company recently purchased some NI CompactRIO devices. 

I have a product that output analog signals for voltage and current.

When the product is programmed to a specific voltage and current, I would like to record how long it takes for the voltage and current to stabilize.

The startup time should usually ranges between 800ms and 1100ms.

Right now I am using DAQmx to trigger data acquisition on a digital edge and then graph it. That works just fine.

My question is how can I start a timer when data acquisiton starts and then stop the timer after the voltage has stabilized (i.e. after 500 stable sample points).

My code is based off one of the NI examples so it very basic. I have attached my VI.

I know there are counter/timers available but I'm not sure how to implement this. And I dont know how I would display on the x-axis of my graph the startup time in milliseconds. 

Any advice or tips would be greatly appreciated! Thank you!

 

What I have:

cDAQ-9174 CompactDAQ chassis (4 slot USB)

NI9205 32-Channel Analog Input Module

NI9264 16-Channel Analog Output Module

NI9401 8-Channel Digital IO Module 

Don't think twice.
0 Kudos
Message 1 of 5
(2,321 Views)

Hello, take a look at the attach VI from this community example. Make your stabilized voltage/current level the stop condition for the loop to obtain the elapsed time. I hope this works for you Smiley Wink

Alejandro C. | National Instruments
0 Kudos
Message 2 of 5
(2,293 Views)

thanks for the information, it does help. I was wondering if I could the same with DAQmx VI's and compactRIO? 

Don't think twice.
0 Kudos
Message 3 of 5
(2,283 Views)

Unfortunately DAQmx and CompactRIO don't mix, however, the idea for the bechmarking remains the same indifferent to the programming.

Alejandro C. | National Instruments
0 Kudos
Message 4 of 5
(2,280 Views)

ok.thanks. How would I tie in the time into my graph?Is there a way?

Don't think twice.
0 Kudos
Message 5 of 5
(2,272 Views)