Starting Point System : Forum

You are not logged in.

#1 2009-10-12 14:32:34

New member

Use ÁChamelion with MAC

MAC Powerbook G4, OS 10.5.8
Office 2004, Excel 2004 Version 11.5.3

How do I send text commands to the ÁChamelion using Excel on the MAC. The "DEMO" uses ActiveX commands which are not available on MAC.

Here's part of the demo code:

Private Sub StartDAQ_Click()                                            ' Start button code
    If DAQ_state = running Then Exit Sub                                ' If DAQ is already running, just do nothing
    MSComm5.CommPort = Worksheets(1).Range("B1")                        ' Read comport number to use in spreadsheet
    MSComm5.PortOpen = True
    MSComm5.Output = "led pattern 85" + vbCrLf                          ' A fast flashing pattern lets us know DAQ is active
    DAQ_state = running                                                 ' Update global status flag
    DAQ_counter = 0                                                     ' Acquisiton sample number is reset
    Worksheets(1).Range("D1:D60") = ""                                  ' Old values are cleared
    Application.OnTime Now + TimeValue("00:00:01"), "DAQ_Procedure"     ' Start acquistion timer



Board footer

Powered by FluxBB