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.
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.
10-05-2011 08:57 AM
Good morning, folks... I need some help with digital output of the 6062E PCMCIA card... I can output 1 line without problems... I need to control a 4066 with my digital outputs... I am doing this without greater problems... but there's something... I need that when one of my outputs is high, the others become low, unchangeably... so I tried to use an array to control my output and I couldn't do that... some errors showed up... can you help me please? Maybe there's any errors at my software, then I thank you if you help me... the vi is anexed...
Best Regards...
10-05-2011 12:18 PM
Since you have 'one channel for all lines' set with the DAQmx Create Channel, change your DAQmx Write to '1Chan 1Samp'. And move the Create Channel, Stop, Clear, etc. to outside the loop.
What you want to do is the same as the example called 'Write Dig Chan'. Did you look at any of the examples first?
10-05-2011 12:39 PM
Do what Dennis said, then put a delay timer in your loop.....
10-07-2011 03:28 PM
Thanks guys. But or I didn't understand what to do, or I didn't explain very well. I would like to control the 8 digital outputs at the same time, with an array, instead of using several VI's. For example, I would like to send 0b00010101 to the dig output port. Is it possible?
Another doubt I have... when I start the CARD, the output is HIGH or LEVEL for default?
Thank you so much for ur helP!
10-07-2011 04:04 PM
See below for one of many methods. Change the "lines" string for your setup.
Also, please explore the Examples that ship with LabVIEW, and read your card's manual.