Hi..
I need some help on programming the LABVIEW to control the digital potentiometer.
It is AD7376 which 4 channels are used to control the digital potentiometer, and Field Point Unit FP-DO-403 thr. RS232.
– Channel 0 (POT_D), Channel 2 (POT_CS), Channel 3 (POT_Clk), and Channel 7 (POT_R).
-SDI (serial data input) contains 7 data bits. The first is the MSB.
-ClK provides the correct time reading the serial data.
-CS (chip select) only allows the reading of the data. CS is on 0 during the loading. POT-CS is used when 7 bits data is finish loading.
- POT_R is used as CLEAR.
After the calculation depending of the different conditions, 7 data bits data is created and changed to the opposite numbers (1-->0, 0-->1).
For example; if the calculated binary number is 1001011, the the output 7 bits data is 0110100
so Those data has to go to SDI (Channel 0 (POT_D)) starting from 0110100 and for each bit CLOCK has turn on and off to shift the bits controlled by Channel 3 (POT_Clk).
For example,
0 ---> POT_D then POT_Clk -->On/Off
1---> POT_D then POT_Clk -->On/Off
.
.
0---> POT_D then POT_Clk---> On/Off
Can this be done automaticaly? Could you help me on this?
I was able to program it until producing 7 binary bits (refer to the attached file) but by Giving 7 different bits at once to ONE channel, I get error..
Message Edited by Black Comb on 11-01-2007 08:51 PM
Message Edited by Black Comb on 11-01-2007 08:54 PM