完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好!
我想通过USB周期性地将matlab数据文件(.Mat)发送到PSoC闪存。 所以我想问一下从哪里开始?如何将.Mat文件转换为可接受的传输文件类型? 当做 马萨布 以上来自于百度翻译 以下为原文 Hi! I wanted to send a matlab data file (.mat) to the psoc flash periodically via USB. So i wanted to ask where to start? How would I convert the .mat file to an acceptable transfer file type? Regards Masab |
|
相关推荐
14个回答
|
|
对于数据的传输,可以使用PSoC侧的USPAART和PC端上的仿真串行接口(COMN)。
在闪存中存储数据可以用仿真的EEPROM用户模块(最新的创建者更新!)来完成。. 我的问题是:你打算用PSoC上的Matlab文件做什么? 鲍勃 以上来自于百度翻译 以下为原文 For the transmission of data you may use the USBUART on the PSoC side and an emulated serial interface (COMn:) on the PC-side. Storing data in flash can be done with the emulated EEProm usermodule (latest Creator update!). The question I have is: What do you intend to do with the matlab-file on the PSoC? Bob |
|
|
|
你好,
任何人能帮助我,Matlab会自动生成一个C代码,用于PSoC嵌入式内核吗? 以上来自于百度翻译 以下为原文 hi, can any one help me, will matlab generate a c code automatically for a psoc embedded core? |
|
|
|
嗨,没有MATLAB不创建一个C代码的PSoC。您需要使用PSoC Creator IDE来为PSoC编写代码。
以上来自于百度翻译 以下为原文 Hi, No matlab does not create a C code for PSoC. You need to use PSoC Creator IDE to write code for PSoC. |
|
|
|
@ HLI,创造一个银监会(水晶球修复中心),我会在船上!
鲍勃 以上来自于百度翻译 以下为原文 @HLI, what about of creating a CBRC (Crystal Ball Repair Center, I would be in the boat! Bob |
|
|
|
当然,只要我不需要在修理上保证任何成功:我只保证它会很贵…
以上来自于百度翻译 以下为原文 Sure, as long as I don't need to promise any success with the repairs :) I will only promise that it will be expensive... |
|
|
|
非常感谢你的回复。
实际上,我想从转换后的MATLAB数据文件(大约3MB的大小)发送一个大的语音信号到PSoC EEPROM,数据在它被充满后被覆盖到EEPROM(像使用FIFO的数据的运行时获取)。我用的是CY8C01套件。 我需要把MATLAB文件从PSoC发送到FPGA。 我必须在我的电脑上写一个分开的程序来发送这个数据吗? 当做 马萨布 以上来自于百度翻译 以下为原文 Many thanks for the reply I actually wanted to transmit a large speech signal from a converted matlab data file (about 3Mb in size) onto the PSOC EEPROM, with the data being overwritten to the EEPROM after it gets full (like a runtime acquisition of data using a FIFO). I'm using the CY8C001 kit. i need to send the matlab file from the PSOC to an FPGA. Will i have to write a seperate program on my PC to send this data? Regards Masab |
|
|
|
流媒体是实时的吗?如果是的话,没有必要写EEPROM(这不是很大)。如果没有,那么PSoC的内存将不足以保存文件。根据波形文件的采样率,你可以在PC端不需要特殊的程序。使用UART会给你大约10千字节/秒的传输速率,使用一个UBUTART给你最多每秒100千字节。两者都可以用于PC端的任何程序,可以写入串行端口。对于WAV文件,我建议从Matlab文件中真正生成一个,然后在PSoC侧解码它。或者你可以提取纯波形的东西,然后以二进制的形式发送过来(以节省带宽)。你能再解释一下这个项目的内容吗?
以上来自于百度翻译 以下为原文 Is the streaming in realtime? If yes, there is no need to write to the EEPROM (which not really large). If no - then the memory of the PSoC won't be enough to hold the file. Depending on the sample rate of the wave file you can get away witrh not needing a special program on the PC side. Using an UART would give you about 10 kbytes/second transfer rate, using an USBUART gives you at most 100kbytes per second. Both can be used with any program on the PC side being able to write to a serial port. For a wav file, I would suggest really generating one from the MatLab file, and then decode it on the PSoC side. Or maybe you extract the pure waveform stuff, and send just this over, in binary form (to save bandwidth). Can you explain a little bit more what this project is about? |
|
|
|
我实际上想把神经信号(存储在我的MATLAB数据文件中)到PSoC,实时会更好。这些信号已被采样在20kb/s。
我没有一个串行端口在我的电脑,所以我想做它使用USB端口。 然后,我必须将这些存储的样本串行地从PSoC发送到FPGA,在该处理中,将进行处理。我不会直接发送样本到FPGA,因为传输不会保持同步。 以上来自于百度翻译 以下为原文 I actually wanted to stream neural signals (stored in my matlab data files) to the PSoC, real time would be better. These signals have been sampled at 20Kb/sec. I dont have a serial port in my PC, so i wanted to do it using the USB port. I then have to transmit these stored samples serially from the PSoC to an FPGA, on which the processing will be done. I'm not transmitting the samples directly to the FPGA because the transmission wouldnt remain synchornous. |
|
|
|
PSOC3(如CY8C3666 AXI-040)作为RAM的8KB,因此它能够在存储器中保存大约1 /第十的第二价值的数据。它有多达64KB的闪光灯,这将长达3秒的数据。
我们这里讨论的是连续数据传输。如果PSoC没有其他任务,它只是作为USB PRICH工作。在这种情况下,使用专门的可能更好。在FT32芯片(和他们的新同行)LKK。或者,例如MCP2210,它是USB到SPI桥(这可能会使FPGTAL更简单)。 以上来自于百度翻译 以下为原文 A PSoC3 (looking at e.g. CY8C3866AXI-040) as 8kb of RAM, so it will be able to hold about 1/10th of a second worth of data in memory. It has up to 64kb of Flash, this would be up to 3 seconds of data. So we are talking about continous data transfer here. If the PSoC has no other tasks, it would be just work as an USB pridge. In that case, using a specialized one might be better. Lokk at the FT232 chips (and their newer counterparts). Or e.g. the MCP2210 which is a USB-to-SPI bridge (which might make the FPGA part simpler). |
|
|
|
我宁愿推荐使用一个带有双端口RAM芯片的Cype EZ-USB FX2LP微控制器。FX2可以很容易地用作高速桥,并将数据写入RAM,后者可由FPGA使用。
以上来自于百度翻译 以下为原文 I would rather recommend using a Cypress EZ-USB FX2LP microcontroller with a dual port RAM chip. the FX2 can easily serve as a hight speed bridge and write data to ram that could be used later by the FPGA. |
|
|
|
|
|
|
|
在20 kb/s,读2.5 kb/s,似乎不缺少这样做的方法。
串行单线可以做到这一点: 一个线/SPI/I2C/RS232/RS485/LVDS… 问候,Dana。 以上来自于百度翻译 以下为原文 At 20 Kb/s, read 2.5 KB/s, seems like no shortage of ways to do this. Serial one wire could do this :) USB > PSOC > One wire/SPI/I2C/RS232/RS485/LVDS........... Regards, Dana. |
|
|
|
是的,PSoC和FPGA之间的通信是没有问题的。但我必须使用PoSOC3在CY8C01套件上使用。所以我只需要串行地将数据写入USB,然后使用UsBuad函数在PSoC上读取数据。
另外,MATLAB直接写入USB端口吗? 谢谢 以上来自于百度翻译 以下为原文 Yes, communication between the PSOC and an FPGA is no problem. But i have to do this using the PSOC3 on the CY8C001 kit only. So i only have to write the data to the USB serially, then read it on the PSOC using USBUART functions? Also, does matlab write directly to a USB port? Thanks |
|
|
|
对双方都好。
这可能会有帮助。 HTTP://FULUM.NI.COM/T5/MultualOffice DAQ/同时输入-输出-UB-Daq-Matlab /TD-P/61606 问候,Dana。 以上来自于百度翻译 以下为原文 Yes to both. This might help. http://forums.ni.com/t5/Multifunction-DAQ/simultaneous-input-output-USB-Daq-in-Matlab/td-p/681206 Regards, Dana. |
|
|
|
只有小组成员才能发言,加入小组>>
754个成员聚集在这个小组
加入小组2102 浏览 1 评论
1848 浏览 1 评论
3666 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1783 浏览 6 评论
1533 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
565浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
419浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
434浏览 2评论
380浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
912浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-22 15:58 , Processed in 1.188880 second(s), Total 103, Slave 86 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号