06-13-2019 12:17 AM
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?
Solved! Go to Solution.
06-13-2019 12:51 AM - edited 06-13-2019 12:51 AM
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!
06-16-2019 08:32 PM - edited 06-16-2019 08:37 PM
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.
06-16-2019 11:44 PM - edited 06-16-2019 11:45 PM
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.
????
06-17-2019 03:02 PM
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.