05-18-2011 06:02 PM - edited 05-18-2011 06:09 PM
I hope and I can help, I want to control the outputs of the USB-6008 DAQ through adecimal number, I first want to enter a decimal number to binary and convert this binary number out by the DAQ, I have parties and I have drawn on examples I can not find a way to control the output by simply introducing the decimal number, thanks!
05-18-2011 11:29 PM
You want to control the analog or digital outputs? I'm not sure that having parties is the way to solve your problem but for an analog output, the example called Gen Voltage Update will work. For digital output, try Write Dig Port. The control is set for hex display but that is easily changed. You don't need to do any conversion to binary.
05-19-2011 08:28 AM
Good morning tavaco,
Here is an image about what you are asking.
You can do this to make your number to become a bolean array. You also can configure the Number control to have values just from 0 to 255 and as you can see the values are already Integers.
Now this will be the data that you are going to write, if you want to write on your 6008, you can use this example:
https://decibel.ni.com/content/docs/DOC-11138
And finally I will highly recomend you to read this tutorial about data acquisition:
http://zone.ni.com/devzone/cda/tut/p/id/3116
I hope this helps you a little bit.
Take care and good luck!!