Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

Mem address crash discussion (split from DSP code 2)

For general discussion related FlowStone

Mem address crash discussion (split from DSP code 2)

Postby Youlean » Sat Apr 11, 2015 11:05 pm

Here is DLL for mem creating. I hope that it works. I am not sure if it gives accurate address tho... Please test it...
Try optimized version first, it is not working, than try normal version...
Attachments
Mem Adress (Optimized).fsm
(4.44 KiB) Downloaded 807 times
Mem Adress 2.fsm
(10.06 KiB) Downloaded 811 times
Youlean
 
Posts: 176
Joined: Mon Jun 09, 2014 2:49 pm

Re: Custom DSP Code 2 (comunity project)

Postby KG_is_back » Sun Apr 12, 2015 12:07 am

Youlean wrote:Here is DLL for mem creating. I hope that it works. I am not sure if it gives accurate address tho... Please test it...
Try optimized version first, it is not working, than try normal version...


Both only output the mem size, but not address.
KG_is_back
 
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: Custom DSP Code 2 (comunity project)

Postby Youlean » Sun Apr 12, 2015 12:17 am

KG_is_back wrote:
Youlean wrote:Here is DLL for mem creating. I hope that it works. I am not sure if it gives accurate address tho... Please test it...
Try optimized version first, it is not working, than try normal version...


Both only output the mem size, but not address.

You mean input equal to output?

Try locating DLL manually...
Attachments
Mem Address.zip
(4.82 KiB) Downloaded 819 times
Youlean
 
Posts: 176
Joined: Mon Jun 09, 2014 2:49 pm

Re: Custom DSP Code 2 (comunity project)

Postby Tronic » Sun Apr 12, 2015 10:05 am

To have a correct memory address from a DLL,
in the manual there is a hidden information between words,
when you create an input and output to the DLL component,
FlowStone automatically assigns a memory address based on the type specified,
so just catch and use the pointer addresses, and output them as a list,
this gives us the opportunity to have as many memories as you want and the correct type,
just increasing the inputs to the module DLL,
with this I am able to write and read in the DLL memory without using any link to it.
Tronic
 
Posts: 539
Joined: Wed Dec 21, 2011 12:59 pm

Re: Custom DSP Code 2 (comunity project)

Postby Youlean » Sat Apr 18, 2015 4:59 pm

Hey, I think that this should now be working correctly...
If it works now, please report. Thanks.
Attachments
Mem Address Final.zip
(81.24 KiB) Downloaded 807 times
Youlean
 
Posts: 176
Joined: Mon Jun 09, 2014 2:49 pm

Re: Custom DSP Code 2 (comunity project)

Postby Tronic » Sat Apr 18, 2015 6:26 pm

as mentioned above, you do not need to have a Frame to Mono and vice versa, you can just created into the DLL, an NEWFLOATARRAY, get the pointer, and output it as integer value.
Tronic
 
Posts: 539
Joined: Wed Dec 21, 2011 12:59 pm

Re: Custom DSP Code 2 (comunity project)

Postby Youlean » Sat Apr 18, 2015 6:32 pm

Tronic wrote:as mentioned above, you do not need to have a Frame to Mono and vice versa, you can just created into the DLL, an NEWFLOATARRAY, get the pointer, and output it as integer value.

Yes, but than you can't change it's size. The size must be then hard coded.
Youlean
 
Posts: 176
Joined: Mon Jun 09, 2014 2:49 pm

Re: Custom DSP Code 2 (comunity project)

Postby Tronic » Sat Apr 18, 2015 8:02 pm

you can assign the size with an external value,
for already created array just copy the old content and recreate it with different sizes.
Tronic
 
Posts: 539
Joined: Wed Dec 21, 2011 12:59 pm

Re: Custom DSP Code 2 (comunity project)

Postby Youlean » Sat Apr 18, 2015 8:11 pm

Tronic wrote:you can assign the size with an external value,
for already created array just copy the old content and recreate it with different sizes.

Tronic, either you or me is not getting the point here.
If you want to create mem, just use mem create primitive, but KG asked for mem creation to give address at stream speed which need mono to frame if you want to do it with dll...
Youlean
 
Posts: 176
Joined: Mon Jun 09, 2014 2:49 pm

Re: Custom DSP Code 2 (comunity project)

Postby Tronic » Sat Apr 18, 2015 8:19 pm

The memory address has nothing to do with the stream speed, it is only a pointer to the heap.
Excuse me if I insist, but your code only wastes resources, to process an empty buffer,
even if you emit only poiter memory.
So the point is, why have the value of a pointer to memory, at stream speed?

Edit: the mem create primitive, have some problem with alignment when retriggered.
Tronic
 
Posts: 539
Joined: Wed Dec 21, 2011 12:59 pm

Next

Return to General

Who is online

Users browsing this forum: No registered users and 86 guests