LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

PCI-6024E Analog Input

Solved!
Go to solution

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
(2,590 Views)
Solution
Accepted by topic author ManuFrais

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


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 5
(2,578 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
(2,536 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
(2,530 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
(2,510 Views)