03-05-2013 02:48 PM
Hi all,
I have PCI-6731 analog output board in my pc. I'm trying to generate a sine wave in a .vi and view the waveform on an oscilloscope. I have the i/o board hooked up to an scb-68 connector block. On the block, i have a wire hooked up to ground and another hooked to port 9, or the output(1). The code looks fine to me, I configured the daq assistant to generate a voltage signal to dev3/a01, which corresponds to the port on the connector block. However, when I hook everything up and run the vi, I'm seeing nothing on the oscilloscope. Any tips?
03-05-2013 02:59 PM - edited 03-05-2013 03:00 PM
you are outputting an error( Error -200220 occurred at DAQmx Create Channel (AO-Voltage-Basic).vi:2
Possible reason(s):
Device identifier is invalid.
Device Specified: Dev3
Suggested Device(s): Dev2, PXI1Slot2
Task Name: _unnamedTask<31>
)
which stops your loop....
03-05-2013 03:10 PM
My bad, I uploaded the wrong vi. Delete everything which isn't already in the while loop. You should be left with the daq assistant, the funciton generator, and the waveform graph.
03-05-2013 03:36 PM
Your message says ao1 but the DAQ Assistant is set for ao0. You say port 9 and the use of "port" is meaningless. For the 6731 ao0 is pin 22 and for ao1, it's pin 21.
03-06-2013 06:17 PM
Okay forget about the software. I know I have that fixed. I just want to know how to hook up the oscilloscpe to the connector board. Right now I have a wire in ground and another in pin 9 on the scb-68, which corresponds to ao1. Do I need a power supply hooked up to the 5V?
03-06-2013 07:59 PM
03-06-2013 08:56 PM
03-06-2013 10:04 PM
03-07-2013 08:55 AM
There are labels. My grad student insisted that I follow that, but I will look into what you said. Thanks for putting up with me, I'll let you know what happens
03-07-2013 09:17 AM
Find a different grad student and study the DAQ hardware manuals you have. Another simple check is to right click on the device in MAX and select 'Device Pinouts'.