LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

PCI-6024E Analog Input

Solved!
Go to solution
Highlighted

Does anyone know how to take an Analog Input Sample at a specified sampling rate (i.e. every 0.5 seconds) using a PCI-6024E, or have an example code that could accomplish something like this?

0 Kudos
Message 1 of 5
(143 Views)
Solution
Accepted by topic author ManuFrais
06-17-2019 01:03 PM

Hi Manu,

 

open the example finder in LabVIEW, then choose any of the more basic example VIs on voltage readings with DAQmx…

 

That task is pretty easy once you learn the DAQmx basics!

Best regards,
GerdW
CLAD expired, using 2009SP1 + LV2011SP1 + LV2017 (+LV2018 sometimes) on Win7+cRIO
Kudos are welcome Smiley Wink

Message 2 of 5
(131 Views)

Hey Gerd,

 

I looked at those examples, but the examples I was seeing only showed how to generate a digital output signal at a specified frequency which only allows for the signal to be on and off for the same amount of time within a given period (i.e. if your frequency is at 1Hz, the period is 1 second, the light would be on for 0.5 seconds and off for 0.5 seconds).  However, I need to be able to generate a code where I can control the length of time the light is on (or how long the digital signal outputs for) and also how long it is off for, which won't be the same lengths of time.  The signal will be high for a shorter length of time than it will be low.

 

And, as I stated, the current examples I've seen only allow me to specify the frequency, which in turn cause the output to be high for the same length of time as it is low.  Have you seen any examples where I can change the two lengths of time, or would you happen to have an idea of how this could be accomplished? So that the signal will look similar to the attached file.  It could be analog or digital output.

0 Kudos
Message 3 of 5
(89 Views)

I'm confused.  Your first message and subject title talks about Analog Input.  But now your message is about how to control a digital output.

 

????Smiley Frustrated

Message 4 of 5
(83 Views)

RavensFan,

 

You're right, my apologies.  When I read his post I was working on the digital output part and I thought that's what I posted about originally but I do need help on both LoL my apologies.

 

I will look for examples of the Analog Input VI's today.

0 Kudos
Message 5 of 5
(63 Views)