12-28-2022 10:06 AM
Hello,
I'm new to NI myDAQ and LabView. I am trying to test the different acquisition modes, I was able to work with the 1 sample On Demand, but once I am unable to work with 1 Sample on Demande (HW timed). Can I have a basic example on how to use for a voltage acquisition ?
Thank you in advance.
12-28-2022 10:15 AM
Help > Example Finder - Use the browse tab and click down to: Hardware Input and Output > DAQmx > Analog Input > Voltage - HW-Timed Single Point Input.vi
Here is the path on LV2019 Windows:
C:\Program Files (x86)\National Instruments\LabVIEW 2019\examples\DAQmx\Analog Input\Voltage - HW-Timed Single Point Input.vi
12-28-2022 10:21 AM - edited 12-28-2022 10:24 AM
If you're new I would start here: Learn 10 Functions in NI-DAQmx and Handle 80 Percent of Your Data Acquisition Applications - NI
Also, try to avoid any use of the DAQ ASSistant, Express VIs or those stupid blue combined signal wires. You'll thank me later. 😉
EDIT: Just saw that yo are also new to LabVIEW itself. Be sure you understand the basics of programming before you dive too deep into hardware. You CAN learn both at once, but you need to know programming basics and de-bugging or you will struggle a bit with DAQ functions.
12-28-2022 11:19 AM
Thank you for your answer.
I'm sorry I am this new, but I'm unable to get over this error concerning the sample clock as shown in the picture below.
Thank you in advance.
12-28-2022 11:38 AM
Hardware-Timed is a special acquisition mode used for control, typically in Hardware-In-Loop. Only some hardware support this mode. See Hardware-Timed Single Point Sample Mode and DAQ Devices with Hardware-Timed Single Point Sampling Mode Support.
If you are not doing any closed-loop control, I would recommend you to stick with shipping examples of Finite Acquisition or Continuous Acquisition.
12-28-2022 11:41 AM
I didn't realize you were using one of those MyDAQ devices. I never used one but I'm pretty sure it's not designed for hardware timing. It's more of a general-purpose educational product.
myDAQ Errors -200077 and -200452 Using Timing and Trigger VIs - NI