LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to write in DAQ ports ?

Hello,
 
I would like to write a short binary number (for example : 0110) to the DAQ card to control a camera. This number is a command.
I use a PCI-6034E card. I don't know how to do that, I tried to write directely to the port but it didn't works.
 
Thanks for your helping.
 
BD.
~ La programmeuse compile le C. ~
http://www.pmeonline.fr.st
http://www.nihon-fr.com
http://www.cinemasie.com
http://ippai.free.fr
0 Kudos
Message 1 of 4
(3,151 Views)

Hello BD

I feel very inadequate replying to your message with the level of expertise that exists on the forum, but here goes my attempt. To write a binary output, I believe you can only accomplish this by using the Write To Digital Port.vi. By wiring the decimal equivalent to your binary pattern to the pattern input of the vi, it will cause the appropriate digital lines to be high or low. In other words, input the decimal 6 to the pattern input and DIO1 and 2 will be high, all other DIO lines will be low. I hope this is not missing the point of your question.

Paul

0 Kudos
Message 2 of 4
(3,145 Views)
ok, i will try this solution, thank you very much.
 
BD.
~ La programmeuse compile le C. ~
http://www.pmeonline.fr.st
http://www.nihon-fr.com
http://www.cinemasie.com
http://ippai.free.fr
0 Kudos
Message 3 of 4
(3,121 Views)
Hello,
 
If I understand well your question, you want to write on the digital port of your PCI-6034E Card.
To do that, you should use the DAQmx functions provided with NI-DAQ Driver.
 
Please find enclosed a LabVIEW example using these functions to write on a digital port.
 
Best Regards,
Benjamin M
NIF
Message 4 of 4
(3,107 Views)