05-26-2008 05:01 PM
05-26-2008 05:58 PM
All that you attached was the proj file and that is not the same as attaching the VI. You need to attach the VI you've written.
I also don't understand what you have described. There is no reason to use digital channels to select one of the analog inputs and there is no way to use digital channels as outputs to select an analog input unless you are doing this in software and this seems a pretty round-about way of doing something. Since you say you are connecting +5V to a digital line, that would mean that you have the digital configured as an input and if you are reading a digital input, you cannot read +15 V from it.
05-26-2008 09:24 PM
05-26-2008 09:49 PM - edited 05-26-2008 09:51 PM
I thought you had a question about the LabVIEW code that you wrote? You attached a project but no VI. Since you did not attach the VI as I asked, can I assume you no longer have a question about it?
I'm not sure why you posted the schematic. You have not provided any explanation of what blocks A and B are and what you are trying to do with the inputs to them. It looks like you are powering some buffers with the digital outputs. Is that true? The digital outputs of the 6008 are pretty low current. Check the current requirements for your buffers to see what they require and then check the data sheet of the 6008 to see if it can provide enough current.
You have two digital ports that you can use. I would assume that you already have the user guide with the pinsouts. To make it simple, use the first three inputs of either port 0 or port 1. That would mean pins 17,19,10 for port 0 or pins 26,27,28 for port 1. There are a couple of simple examples you can look at. Start with Read Dig Chan.
05-27-2008 09:27 AM
05-27-2008 09:50 AM
05-27-2008 03:33 PM - edited 05-27-2008 03:33 PM
Hi Miaa,
Your code looks good. The -50405 error is usually caused when communication is lost to the USB-6008. To debug what is going wrong, try disconnecting all external connections. Then reset the device in Measurement and Automation Explorer (MAX) by right-clicking on it and selecting reset device. Then make sure the device passes a self test in MAX. If all this works then slowly hook up your external circuitry one channel at a time. One possible cause of this error is when the USB-6008’s 5 volt line is shorted to GND. This will cause the device to shutoff in order to protect itself. Please let me know if you have any questions.
Thanks,