Jump to content

Tullio83

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by Tullio83

  1.  

    Ciao @Fausto!!!

    Uso ancora VB6

     

    Dichiara la funzione cbAOutScan Lib "cbw32.dll" (ByVal BoardNum&, ByVal LowChan&, ByVal HighChan&, ByVal CBCount&, CBRate&, ByVal Gain&, ByVal MemHandle&, ByVal Options&) As Long
     

    Dim Onda_Quadra(1) As Integer
    Dim Handle As Long

    Onda_Quadra(0) = 0: Onda_Quadra(1) = 4095

    Maniglia = cbWinBufAlloc(2)

    Risposta = cbWinArrayToBuf(Onda_Quadra(0), Handle, 0, 2)

    Risposta = cbAOutScan(0, 0, 0, 2, 100, UNI5VOLTS, Maniglia, &H3&)

     

    Ho usato questo codice semplificato al massimo, se come opzione metto &H3& che sarebbe per la ripetizione con un frequenzimetro collegato all' uscita non vedo nulla se metto &H0& riesco ad attivare e disattivare l'uscita in base all'ultimo dato dell' array !

    --------------------------------- 

     

    Hello @Fausto!!!

    I still use VB6

     

    Declares cbAOutScan Lib function "cbw32.dll" (ByVal BoardNum&, ByVal LowChan&, ByVal HighChan&, ByVal CBCount&, CBRate&, ByVal Gain&, ByVal MemHandle&, ByVal Options&) As Long
     

    Dim Onda_Quadra(1) As Integer
    Dim Handle As Long

    Onda_Quadra(0) = 0: Onda_Quadra(1) = 4095

    Handle = cbWinBufAlloc(2)

    Answer = cbWinArrayToBuf(Onda_Quadra(0), Handle, 0, 2)

    Answer = cbAOutScan(0, 0, 0, 2, 100, UNI5VOLTS, Handle, &H3&)

     

    I used this simplified code to the maximum, if as an option I put &H3& that would be for repetition with a frequency meter connected to the output I do not see anything if I put &H0& I can activate and deactivate the output based on the last data of the array!

  2. Ciao Fausto, intanto grazie per la dritta, anche se mi trovo in difficoltà

    La funzione che trovo é diversa de quella in descritta e gli esempi elencati non trattano AutoScan

    Declare Function cbAOutScan Lib "cbw32.dll" (ByVal BoardNum&, ByVal LowChan&, ByVal HighChan&, ByVal CBCount&, CBRate&, ByVal Gain&, ByVal MemHandle&, ByVal Options&) As Long

    Se mi puoi dare una dritta, te ne sono grato, e da poco che lavoro con queste librerie.

    Grazie
     

    -------------------------------------

    Hello Fausto, meanwhile thanks for the tip, even if I'm in trouble

    The function I find is different from the one described and the examples listed do not deal with AutoScan

    Declare Function cbAOutScan Lib "cbw32.dll" (ByVal BoardNum&, ByVal LowChan&, ByVal HighChan&, ByVal CBCount&, CBRate&, ByVal Gain&, ByVal MemHandle&, ByVal Options&) As Long

    If you can give me a tip, I'm grateful, and recently that I work with these libraries.

    Thank you

  3. Buongiorno, sto cercando di comandare un uscita veloce per la generazione di un onda quadra risulta complicato imposturare una frequenza prestabilita c' è una funzione specifica ?

     

    Risp = cbDOut(0, FIRSTPORTB, 1)

    For X = 0 To 150000 Next X

    Risp = cbDOut(0, FIRSTPORTB, 1)

    ----------------------------------------------- 

    Good morning, I'm trying to command a fast output for the generation of a square wave is complicated to imposture a predetermined frequency there 'is a specific function ?

    Risp = cbDOut(0, FIRSTPORTB, 1)

    For X = 0 To 150000 : Next X

    Risp = cbDOut(0, FIRSTPORTB, 1)

×
×
  • Create New...