Hola @JimB
Excel 2016 here. The latest versions of PLX DAQ were rewritten specifically for Arduino. Would they be of any use to me working with PICs? Hard to find concrete information in the Web.
Sincerely I am at lost here. Thanks.
Yes, you are completely messed up in your head.
Let me explain.
Here is the "DATA command" from my version of the PLX-DAQ help file, it talks about BASIC Stamp. I don't have a basic stamp.
The important thing to note is the column on the left "Control and Data Directives"
Look at the first command:
DATA, value1, value2,...
This is what your data source should send to the PC for PLX-DAQ to intercept it and write it into an Excel spreadsheet.
Look at this fragment of code from my PIC16F887:
Code:
movlw 'D' ;Header
call Send_Data
movlw 'A'
call Send_Data
movlw 'T'
call Send_Data
movlw 'A'
call Send_Data ; 1st column is the time, ignore.
movlw ','
call Send_Data
movlw ','
call Send_Data ; 2nd column is the marker bit.
btfsc PORTC, Marker
goto main1 ; Marker button is pushed
movlw 0x00
call Send_Data
goto main2
main1
movlw '1'
call Send_Data
main2
movlw ','
call Send_Data
movf BCD3, W
addlw 0x30
call Send_Data
movf BCD2, W
addlw 0x30
call Send_Data
movf BCD1, W
addlw 0x30
call Send_Data
movf BCD0, W
addlw 0x30
call Send_Data
movlw 0x0D ;Carraige Return
call Send_Data
It sends
DATA,,
this wakes up PLX-DAQ, the first comma ( , ) terminates the DATA statement, the second comma makes it skip the first column in the spreadsheet,
The PIC then reads a digital input port and sends a "1" if it sees that a pushbutton is pressed.
Then it sends a comma to move on to the next column in the spreadsheet.
Then it sends four BCD numbers BCD3 to BCD0
this is the number which the PIC had earlier read from its ADC.
Notice that it does not send a comma between the BCD data, all the BCD goes into the one cell of the spreadsheet.
Finally, the hexadecimal value 0x0D is sent. This is a carriage return character.
This terminates this line of data, and starts a new line for the next reading.
In the PC, it looks like this:
Notice that column A is empty (because of the first comma sent from the PIC)
The second column "Marker" is empty because I had not pressed the marker button yet.
Column C is the value from the ADC.
The rest of the information is processing which takes place in Excel.
The ADC value is converted into a voltage, that voltage is then converted into a signal level (in dBm).
The column with the -59 data is a way of displaying the marker on the graph, (the pink ish coloured trace).
The whole lot is then drawn on a graph in Excel.
I hope this lot makes sense.
JimB