04-13-2011 07:06 PM - edited 04-13-2011 07:15 PM
Thanks for the tips,
We actually switched our logic to use 3 different relays controlled by the digital outputs of the USB-6009. There will be a constant power source to the speakers which will be controlled by the photodiode switch/relay. We are just having problems with the setup of the case structures and their input to the DaqAssistant. The digital output requires a 1-D array of boolean input when we are trying to just have a single element input. I don't understand why it would need an array of boolean and not just an element (true/false). Any help in that respect would be much appreciated. We are using a AQV210eh relay and a generic waveform generator for testing purposes.
Ben
04-13-2011 08:58 PM - edited 04-13-2011 09:00 PM
That's just the inflexibility of using the DAQ Assistant. The regular DAQmx Write allows you to directly wire a Boolean and is just as simple to use as the Assistant. If you stick with what you have, just insert a Build Array function into the wire. You could also create an array of all three Booleans and wire that to a single DAQ Assistant. Use an Event Structure with a value change event.
04-14-2011 01:51 PM - edited 04-14-2011 01:52 PM
Dennis,
I found an example producing a Digital signal with the Daqmx write function and modified it to use a single boolean value instead of an array like you suggested. However, even though the WRITE function is in a loop it only produces a small output maxing out at around .5V as measured by a multimeter. It also only lasts for half a second before going back to zero. How can I make it continuous (at least until I change the boolean value)?
Ben
04-14-2011 02:31 PM
The output will be exactly what you set the Boolean to but it sounds like you are trying to drive some sort of load that the device cannot handle. What do you have it connected to?
04-14-2011 03:41 PM
Dennis,
I currently have the digital out connected to an AQV210EH relay (with attached data sheet). But I even just tested the output, with nothing attached, with a multimeter and the same thing happens. It jumps to 0.5V and regresses. I also tried this with multiple Digital Outputs
Ben
04-14-2011 04:00 PM
sorry here is the data sheet
04-15-2011 03:18 PM
Ben,
I just tried this with the USB-6008 I have here and a multimeter between P0.7 and ground. I'm able to swich 5V on/off no problem. I had to make a small change to the VI you posted so it wouldn't error, but I'm not able to generate the same problem. What two terminals are you connecting your multimeter to?
Eric