From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

write a single digital line

Hello,
i want to write a single digital line in labwindows/cvi.
i created a task in MAX and it is ok.
But when i load, then start the task and finally use DAQmxWriteDigitalScalarU32 function, anything happens.
The error code is zero ( what means it should be ok) but the line doesn't toggle.
What is the problem?
Thank you
Download All
0 Kudos
Message 1 of 2
(2,700 Views)
Hi,

It is not possible to answer you without knowing :
- how is configured the task (number of output lines, generation mode, ...),
- what type of card is used,
- what line of the card is watched.
Nevertheless, to write on an single digital line i suggest you to use the DAQmxWriteDigitalLines function instead of DAQmxWriteDigitalU8.
Try to use an example to validate that everything works fine from LabWindows/CVI.

Regards,

Benjamin CHARLES
Applications Engineer
National Instruments France
0 Kudos
Message 2 of 2
(2,700 Views)