I was reading some of the information on the link you sent....
If channel 1 is an analog input(you must verify this and make the change yourself if it isnt), so im pretty sure you need a stream of data to make the DAC light up.
Issues with current code:
1. ic chips are turned on or off with 1 or 0, 15 might be an issue and might be a grey result.
2. analog is a continuous stream of data, chips read this as on or off, depending on the output. If it is on or 1, then then chip is recieving 3.5 volts-5.0 volts. If it is off, the analog stream shows as, 0 volts-1.0 volts. Being an electronics technician i can assure you of this.
So, Sending one small burst of infomation in one frame is not a sufficient for analog, this is fine for digital if it has a memory remembering the last input.
Furthermore, When a digital input is neither on or off, it is actually sending 1.1 volts-3.4 volts, resulting in the "grey" area of an ic chip...no output is resulted in the ic.
Thus, try this altered code, theoretically it should light the led for channel 1, for 5 minutes:
NOTE: i changed the output data to 1...this is ON status, 0 will be OFF, and anything else is "grey"
im reading the information in the code they have available, if i see any indescreptancies with my above code ill edit this particular code above, and ill make note below that it was altered with a timestamp...so check this thread again to see if i edited this section if i found something.
PPS. if it still doesnt work, try changing the channels, in the case this might only work for digital, as opposed to analog input.
If channel 1 is an analog input(you must verify this and make the change yourself if it isnt), so im pretty sure you need a stream of data to make the DAC light up.
Issues with current code:
1. ic chips are turned on or off with 1 or 0, 15 might be an issue and might be a grey result.
2. analog is a continuous stream of data, chips read this as on or off, depending on the output. If it is on or 1, then then chip is recieving 3.5 volts-5.0 volts. If it is off, the analog stream shows as, 0 volts-1.0 volts. Being an electronics technician i can assure you of this.
So, Sending one small burst of infomation in one frame is not a sufficient for analog, this is fine for digital if it has a memory remembering the last input.
Furthermore, When a digital input is neither on or off, it is actually sending 1.1 volts-3.4 volts, resulting in the "grey" area of an ic chip...no output is resulted in the ic.
Thus, try this altered code, theoretically it should light the led for channel 1, for 5 minutes:
NOTE: i changed the output data to 1...this is ON status, 0 will be OFF, and anything else is "grey"
Code (glbasic) Select
limitfps 60 //used to limit frames persecond to allow 5 minute send
port = 1
chip_no = 1
data =1 //original code was 15; data output to an LED should be on or off...1 or 0
a=1 //start numeral of a 5 minute delay
Start_K8000 ()
SelectI2CprinterPort (port) //*SELECT lpt1 on mainboard
ClearIOchip (chip_no) //*clear channels 1
ConfigIOchipAsOutput (chip_no) //*configure channels 1 AS outputs
while a<18000 //loop here for 5 minute output stream
a=a+1
IOoutput (Chip_no, Data) // send data
PRINT "SENDING #: "+a,100,100
SHOWSCREEN
wend
PRINT "sent data",100,100
SHOWSCREEN
MOUSEWAIT
Stop_K8000() //stop after use
PRINT "stopped",120,120
SHOWSCREEN
MOUSEWAIT
END
That should work...but if it doesnt try this(this has more information per frame to the chip):Code (glbasic) Select
limitfps 60 //used to limit frames persecond to allow 5 minute send
port = 1
chip_no = 1
data =1 //original code was 15; data output to an LED should be on or off...1 or 0
a=1 //start numeral of a 5 minute delay
Start_K8000 ()
while a<18000 //loop here for 5 minute output stream
a=a+1
SelectI2CprinterPort (port) //*SELECT lpt1 on mainboard
ClearIOchip (chip_no) //*clear channels 1
ConfigIOchipAsOutput (chip_no) //*configure channels 1 AS outputs
IOoutput (Chip_no, Data) // send data
PRINT "SENDING #: "+a,100,100
SHOWSCREEN
wend
PRINT "sent data",100,100
SHOWSCREEN
MOUSEWAIT
Stop_K8000() //stop after use
PRINT "stopped",120,120
SHOWSCREEN
MOUSEWAIT
END
PS:im reading the information in the code they have available, if i see any indescreptancies with my above code ill edit this particular code above, and ill make note below that it was altered with a timestamp...so check this thread again to see if i edited this section if i found something.
PPS. if it still doesnt work, try changing the channels, in the case this might only work for digital, as opposed to analog input.
Quotenote: this topic has extended to page 2, this is the last post on page 1, anymore replies pushes this topic onto page 2.-