LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Digital Output U2653A

Dear All,

I've recently bought an Agilent U2653A 64 Digital Output unit. I've looked over the VI's that were supplied with it and I can make the device output signals to a particular port and pin.

What I'd like to be able to do is to have an array of push buttons each of which connects to a particular output pin. The device is going to be used to drive an 8 by 5 array of electrodes, so I'd like an array of 40 pins in an 8 by 5 grid with each switch connected to one output (i.e. Port 1 bit 0, Port 1 bit 1, Port 1, bit 2 etc...)

Eventually I'd like to have a function generator and be able to output routines which would turn the array outputs on and off in a timed, sequential manner; for example you define the electrodes that are to be sent signals by clicking on them and then click go and the program turns on the first switch clicked, then turns on the second one and turns off the first, then turns on the third and turns off the second etc... And also have control of the time between electrodes going on and off.

I'm quite new to LabView and in particular to using activex controls; I've attached the VI's that I have.

I imagine, from reading other posts, that I need to use a boolean array of switches but it's the block diagram part that is the stumbling block. This sounds like an application that has probably been developed before; for controlling arrays of LED's or something similar.

Any help or advice v.much appreciated.


Regards

Adam.

0 Kudos
Message 1 of 2
(2,324 Views)
Hi adam
 
It looks like you have an interesting problem here. From what I can see all you need is to control each output from a Boolean switch in an array. This can be done just by indexing the array and then writing each result to the digital line that you are writing to.
 
I have attached a small VI showing this. Here the array of switches controls LEDs but this same output could be written to your instrument.
 
is this along the lines that you were looking for? You mentioned activeX controls. Why have you decided to take this path?
 
best regards
 
 
Graham Green

Sr. Product Marketing Manager

National instruments
0 Kudos
Message 2 of 2
(2,285 Views)