LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQ Assistant 1 sample (HW timed) tutorial

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.

0 Kudos
Message 1 of 6
(1,896 Views)

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

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
Message 2 of 6
(1,893 Views)

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.

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
Message 3 of 6
(1,888 Views)

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.

Error Sample Clock.PNG

 

Thank you in advance.

0 Kudos
Message 4 of 6
(1,866 Views)

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.

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
0 Kudos
Message 5 of 6
(1,859 Views)

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

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 6 of 6
(1,858 Views)