is there an implementation for ymodem protocol in labview. I want to make a binary file transfer from pc to stm32 using ymodem protocol and using labview.
I have searched a lot but didn't find any implementation of ymodem for labview
Labview has serial read/write capability. Research the protocol and write your own vi to do the job.
Related
I have made a robot in webots 2019a and it can run with c controller. But if I want control the robot in simulink, how to do it? I can't find any Tutorials from Official document.
The first option is to take a look at the MATLAB support: https://cyberbotics.com/doc/guide/using-matlab
Moreover, an alternative option might be using the ROS Webots controller and the ROS support of Simulink.
Another option is to use a messaging library such as ZeroMQ, for example, to send the data from Simulink to the Webots. This blog article outlines the procedure: https://blogs.mathworks.com/simulink/2018/05/01/communicating-with-an-external-application-for-co-simulation/
In my team, we are using a high-performance C++ program to read data from the network. We want to place such data in a shared memory buffer in our C++ process for reading in a separate Matlab process that will further asynchronously process the data and provide a display interface.
All this is running on Windows.
What of the many cross-language mechanisms in Matlab is best suited to this purpose?
Thanks!
The best strategy is to use a memory-mapped file to provide data from one component and parse it from another. It appears Matlab's locking primitives are somewhat primitive, but fully worked out examples are on the Matworks website, including a simple chat application passing data between two Matlab instances.
I have a FTDI FT232R device and am currently trying to figure out whether to use VCP or D2XX. I've read a little about the pros and cons of both, but am still unable to determine which one to use for this project. Since I am going to use Linux for this project, is it even worth the extra effort to use D2XX? Any kind of help or information would be appreciated.
Greetings,
Sparkas
Here what I understood from some reading and experience. This list is not exhaustive and I hope that I will be able to improve it with the community answers.
VCP
Pros:
Built-in inside the Linux kernel
Cons:
Slower than D2XX? I've being using an FTDI device and its documentation said that there where not using the VCP method because the driver was too slow.
D2XX:
Pros:
More features: For instance one could use the FT_ListDevices() function to get the list of FTDI enabled devices. This function is not available using VCP.
Cons:
You have to embed the FTDI library inside the project
VCP: Is the virtual com port which appear as the legacy comm port port like /dev/ttyUSB0.
D2XX interface is the proprietary interface for the FTDI devices.
D2XX gives much more access to the hardware which are not available by the VCP.
Like working in different mode . Asynchronous , synchronous mode or bit bang mode or writing to the eeprom chip.
References:
http://www.dlpdesign.com/tnt/VCP%20Vs%20D2XX.pdf
http://www.avrfreaks.net/forum/ftdi-high-baudrate
I'm currently working on a project to be implemented on a Xilinx Zedboard, using Simulink Embedded Coder methodology.
i need to interface an analog sensor (Electret Microphone) with the Zynq,i know that the XADC need to be instanciated in the PL then linked to the PS with the AXI, the DATA will be in the SDRAM that i need in my algorithm, but i don't know how to do it actually.
Thank you
Sami, there are many things you have to do. Instantiation of XADC is the first one. Then, you need to instantiate DMA and connect it properly in the FPGA part. Then, you have to write driver for DMA initialization. These isues are described (but not solved anyway) also e.g. here. After these steps you can use Simulink Embedded Coder methodology.
Check at the PDF with the link, section: 2.5.1 I/O Peripheral (IOP) Interface Routing
http://www.xilinx.com/support/documentation/user_guides/ug585-Zynq-7000-TRM.pdf
Good luck.
Basically, I would like to creat my own piece of software something a la communication protocl between PC and PLC.
I would like to read real time values from PLC and display them in a table for example Data Base, OPC table, Excel and write to PLC from PC in real time mode as well.
The whole point is I would like to access this data via ethernet port. How I can do it ? I do not want to use 3rd party software. I want to create something my own.
Choose any programming languages like C#,VB.NET and use opcdaauto.dll ,it is free dll for OPC Foundation members
You can easily get the live data from the OPC
or use dll provided by the OPC Server which you are using
As already mentioned, OPC-UA is probably more preferable, otherwise, there are commercial libraries such as InGear and open projects on GitHub.
If you actually want to implement your own low level drivers, they will depend on the PLC manufacturer. For example:
If you are working with Allen-Bradley, you will have to implement Common Industrial Protocol (CIP).
If you are working with Siemens, you will have to implement S7 Communication (S7comm or S7 for short).
If you search GitHub for various search terms related to Allen Bradley CIP and Siemens S7, you will find many starting points for communicating directly with these controllers.