Posted: 07:23am 29 May 2012 |
Copy link to clipboard |
Print this post |
|
Hello John,
many thanks for your reply! I understand the manual so that normaly ONLY 8,N,1 can be sended...
The DMX receiver need the time of the two stop bits to send the data to the DMX devices...
Did you ever communicated with a digital measuring slide? It needs 7,E,1 with a non standard baud rate - horrible!
BUT I FOUND A SOLUTION FOR ME!
Following code works with my Dworkin DMX DMX512 receiver (Bob, thanks again):
Open "COM4:19200" As #1
Schleife:
Print #1,Chr$(80);
Pause 1
Print #1,Chr$(12); 'number of channels
Pause 1
Print #1,Chr$(0); 'channel 0 always 0
Pause 1
'*** FIRST LED-SPOT ***
' Adress 01
Print #1,Chr$(255);' R of first LED-Spot
Pause 1
Print #1,Chr$(5); ' G of first LED-Spot
Pause 1
Print #1,Chr$(5); ' B of first LED-Spot
Pause 1
'*** SECOND LED-SPOT ***
' Adress 04
Print #1,Chr$(5); ' R of second LED-Spot
Pause 1
Print #1,Chr$(255);' G of second LED-Spot
Pause 1
Print #1,Chr$(5); ' B of second LED-Spot
Pause 1
'*** THIRD LED-SPOT ***
' Adress 07
'(DIP-Switch: 11100000)
Print #1,Chr$(5); ' R of third LED-Spot
Pause 1
Print #1,Chr$(5); ' G of third LED-Spot
Pause 1
Print #1,Chr$(255);' B of third LED-Spot
Pause 1
Print #1,Chr$(0); ' MACRO of third LED-Spot
Pause 1
Print #1,Chr$(0); ' SPEED of third LED-Spot
Pause 1
Print #1,Chr$(0); ' MODE of third LED-Spot
Pause 100
GoTo Schleife
The Pause 1 command gives enough time to send the data.
Greetings and thanks to all!
Frank |