I need to write this number out to a pin
How are you doing this? How does the device expect this number to be "written to a pin"?
which will be read by a USB National Instruments USB DAQ
No idea what a USB DAQ is, but is seems unlikely that National Instruments makes only one.
I was trying to analogWrite to a pin
Is that what the device expects? Hardly seems likely.
and wanted to verify it was sending the right information so I wanted to do an analog read
analogWrite() and analogRead() operate on pins on opposite sides of the board. Do you have the appropriate pins connected?
and get the value to serial.print
Well, that part, at least, is trivial.
Basically, how do i output a number from one pin and read it in on another?
First, let's make sure that this even makes sense. Post a link to the device that you are trying to talk to, and explain this number that you are trying to output. Byte, int, float, unsigned long? uint64_t?