|
| View previous topic :: View next topic |
| Author |
Message |
gDeChoulot
Joined: 30 Mar 2011 Posts: 11 Location: France
|
Posted: Wed Apr 13, 2011 9:52 am Post subject: send packet without using StaticWaveForm |
|
|
Hello,
I have some issue trying to send some packet.
I used the "Stream" application example to create a console application.
Everything is working using my main, without using GUI (windows forms or whatever)
I can now:
- receive Buffer (packet of analogic data) and log it.
- send the WaveFormPacket created by buildWave, which use the class StaticWaveForm (knowing all signal parameters : frequency, form, amplitude).
What I can't for now:
I tried to send back all the received packet (from A/D channel) to the Output (D/A channel) and it doesn't work (my scope print nothing)
The WaveFormPacket sent are successfully printed by the scope (as triangle, square... signals).
It's pretty clear that there is something to change before sending the received Packet (buffer) since it's not working.
I tried to look in Buffer class to understand it's content:
http://www.innovative-dsp.com/support/onlinehelp/Malibu/Buffer_Mb_h.html
So, all I can do is to send a packet created by BuildWave function.
I want to be able to send back the one I received.
Thank you for any help
If you need further information, please feel free to ask. |
|
| Back to top |
|
 |
jhenderson Site Admin
Joined: 07 Mar 2006 Posts: 2267 Location: So. Cal. USA
|
Posted: Wed Apr 13, 2011 10:20 am Post subject: |
|
|
The data received from the card is provided in the HandleDataAvailable event handler. You can call Send to emit that data to the card within that handler. However, there will be significant latency between this operation and it's appearance on the D/A devices, due to buffering in the system.
At a minimum, you will need to change the packet ID (PID) of the received data to the PID needed by the D/A devices. Look at the Wave example to determine the required PID value. |
|
| Back to top |
|
 |
gDeChoulot
Joined: 30 Mar 2011 Posts: 11 Location: France
|
Posted: Wed Apr 13, 2011 11:56 pm Post subject: |
|
|
Spotted,
thank you, it works. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
|
© Copyright 2006-2012 Innovative Integration
Powered by phpBB © 2001, 2002 phpBB Group
Based on iCGstation v1.0 Template By Ray © 2003, 2004 iOptional
|
|
|