Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

genrating a logic high on DAQ pad 6015

Hi,
I want to drive a mosfet to on, i want to use logic levels of it,

for this i want to genarate a logic hight from the digital output of my DAQ 6015. is it possible?
how can i do that.
please give me some examples!

Thanks!
0 Kudos
Message 1 of 6
(3,657 Views)
Examples in what programming language? If you are using LabVIEW, there are shipping examples under Hardware Input and Output>DAQmx>Digital Generation. Look in the Requirements box to see which devices are supported by each example. You can also use the DAQ Assistant.
0 Kudos
Message 2 of 6
(3,652 Views)
Please pardon my ignorance but i looked into them
i have a digital output genration examples, but i could not understand how can i genrate a logic high?
a and do i need to connect to an external clock for sampling always?
0 Kudos
Message 3 of 6
(3,640 Views)

It depends on how you want to do it. If you want to only control a single line, then you can select DAQmx Write to 'Digital Bool 1Line 1Point' and the data input is a Boolean. True for high False for low. You can write to multiply lines and specify 'Digital 1D Bool 1Chan 1Samp' and the data input isa Boolean array. Element 0 is for the first line and the last element in the array is for the last line. This is the method in Writ Dig Chan example. Write Dig Port configures DAQmx Write for 'Digital U32 1Chan 1Samp' and the data to write is a numeric. The example formats the data input as a hex number. The input of FF is the same thing as binary 11111111 so all lines are high. Set the data to FE which is binary 11111110 and all lines will be high except for the lsb (i.e. line 0). If you don't automatically think in hex like experienced programmers, you can set the format & precision to binary.

No, you do not always need an external sampling clock. I don't even know if the 6015 supports an exteranl clock.

Message 4 of 6
(3,636 Views)
Hi Denis, it was a million dollar answer.
now things started getting clear.
intially i dint understand why the data types are so shown.
thanks again!
0 Kudos
Message 5 of 6
(3,632 Views)

Hi,
I made a program to genrate a logic high,
but i have some problems in it, some times there is a error saying,

' wrie cannot be perfprmed because the number of channels in the data does not match the number of channels in the task'

but i have only one digital port with 8lines , of which i wanted to genrate a logic high (gave a constant true) only at one line ( at P0 0/ line 1).

when i run the program some times it has no errors, and sometimes it has errors mentioned above, in any case i dont see any voltage across my load. My task is switch on the mosfet driver with a logic high, inturn drive mosfet to ON. inspite of having no errors, mosfet is open and not conducting!

what is the mistake i made? do i need any speacial connections to make the digital lines of mosfet active?

0 Kudos
Message 6 of 6
(3,581 Views)