Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

How to control DIO with VC++

Dear master.
 
This is  south korea. Sorry I'm poor english.
 
I saw example file. but I can't found bit control (Just found byte control)
 
My project is  Z-stage control with step motor.
 
check sensor(limit)
then If true generate pulse CW (for Step motor P3.7)
        if false generate pulse CCW (for step motor P3.6)
 
now I can understand read data(8bit) and check one bit...
but I can't code write data(1 bit) for step motor
 
How can I do this...
 
Please help me...
 
 
0 Kudos
Message 1 of 2
(2,918 Views)

hi

i'm no pro yet, but i think you can use the following method

CNiDAQmxDigitalSingleChannelWriter :: WriteSingleSampleSingleLine( bool autoStart, bool data)

to send a single boolean sample to a single line ( as the name of the method tells you 😉

 

hope this helps

regard, markus

 

 

Message Edited by QuickNick on 07-04-2005 09:38 AM

0 Kudos
Message 2 of 2
(2,917 Views)