Yes, it’s used in an external program wrote with
AGK Studio. It’s a plugin to that program and yes
The routine would far easier to pass a variable to it inside
A loop.
Out at the moment will look at you suggestion later
When home.
Cheers
Leo
Ps Oscilloscope data working with similar ...
Search found 5 matches
- Tue Sep 24, 2024 3:04 pm
- Forum: Coding Questions
- Topic: ProcedureCDLL Return Result
- Replies: 10
- Views: 1179
- Tue Sep 24, 2024 11:44 am
- Forum: Coding Questions
- Topic: ProcedureCDLL Return Result
- Replies: 10
- Views: 1179
Re: ProcedureCDLL Return Result
Morning Jacdelad. Sorry here you go.
please note the PeekSpectrumData_0 routines at the bottom go all the way upto
PeekSpectrum_Data_63, too much to post.
Crude I know, only to see if it worked in getting the Spectrum data
Anyway, Thanks for looking at it, Appreciate it.
Cheers!
Global ...
please note the PeekSpectrumData_0 routines at the bottom go all the way upto
PeekSpectrum_Data_63, too much to post.
Crude I know, only to see if it worked in getting the Spectrum data
Anyway, Thanks for looking at it, Appreciate it.
Cheers!
Global ...
- Mon Sep 23, 2024 6:54 pm
- Forum: Coding Questions
- Topic: ProcedureCDLL Return Result
- Replies: 10
- Views: 1179
Re: ProcedureCDLL Return Result
Sorry Spikey, it should be ProcedureCDLL.i PeekData(V)
R=PeekSpectrum(V)
Result=R
ProcedureReturn Result
EndProcedure
V and R are defined at the start of the dll code to be an integer, still the same after the change.
I do intend to look at saving all registers with the inline coder later.
p.s ...
R=PeekSpectrum(V)
Result=R
ProcedureReturn Result
EndProcedure
V and R are defined at the start of the dll code to be an integer, still the same after the change.
I do intend to look at saving all registers with the inline coder later.
p.s ...
- Mon Sep 23, 2024 6:18 pm
- Forum: Coding Questions
- Topic: ProcedureCDLL Return Result
- Replies: 10
- Views: 1179
Re: ProcedureCDLL Return Result
@jacdelad
Thanks for the reply, sorry about no code tags. The Global works within the routine I use.
Here's the full procedure and yes it's to wrap Fmodex v444.64 inside a DLL to get the array of Singles
for a spectrum. This works, see below.
ProcedureDLL GetSpectrumData()
Global Dim ...
Thanks for the reply, sorry about no code tags. The Global works within the routine I use.
Here's the full procedure and yes it's to wrap Fmodex v444.64 inside a DLL to get the array of Singles
for a spectrum. This works, see below.
ProcedureDLL GetSpectrumData()
Global Dim ...
- Mon Sep 23, 2024 4:46 pm
- Forum: Coding Questions
- Topic: ProcedureCDLL Return Result
- Replies: 10
- Views: 1179
ProcedureCDLL Return Result
I've wrote a DLL Which works quite well within an external program. The problem I'm having is the
return value (Result) from the routine after providing a param. variable to the procedure in the DLL.
See example code below
ProcedureCDLL.i PeekData(D)
Glabal V.i,R.i,V.i
For V=0 To D
R=Array(V ...
return value (Result) from the routine after providing a param. variable to the procedure in the DLL.
See example code below
ProcedureCDLL.i PeekData(D)
Glabal V.i,R.i,V.i
For V=0 To D
R=Array(V ...