LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Simple example: set digital output to high

Solved!
Go to solution

Hello everyone

I am new to labview and would like to accomplish a simple task. Usually I am quiet successful with google but some this seems to be to simple.

I am using a cDAQ 9178 with a ni9474 which is a DO module.

I would like to set DO1 to high for 0.1s and then back to low. Somehow I am not able to accomplish this. Could you refer me to an appropriate starting guide or send a simple VI?

Many thanks in advance

0 Kudos
Message 1 of 2
(1,752 Views)
Solution
Accepted by topic author Murdockdiwq

Hi Murdock,

 

LabVIEW comes with a huge example library and a lot of DAQmx example VIs.

There are also examples showing how to switch a DO channel.

 

After studying those examples all you need is a DAQmxWrite, a Stall.vim (with 100ms wait time) and another DAQmxWrite (with appropriate DAQmxCreateVirtualChannel and DAQmxClose)…

 

See this!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 2
(1,749 Views)