LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

output sine wave signal usb 6009

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

0 Kudos
Message 11 of 17
(1,605 Views)

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.

0 Kudos
Message 12 of 17
(1,597 Views)

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

0 Kudos
Message 13 of 17
(1,582 Views)

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?

0 Kudos
Message 14 of 17
(1,570 Views)

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

0 Kudos
Message 15 of 17
(1,559 Views)

sorry here is the data sheet

 

0 Kudos
Message 16 of 17
(1,550 Views)

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

0 Kudos
Message 17 of 17
(1,533 Views)