02-15-2017 03:37 AM - edited 02-15-2017 03:38 AM
Hi arun,
can you please suggest any article or any example vi for browsing and sending files over serial port in labview instead of sending data directly
A serial port is always sending data "directly"! It was never made for "browsing files" or implementing any other file system methods you utilize when accessing hard drives or USB memory sticks!
When you need examples on how to transfer data over serial ports: use "Basic serial read and write" found in the example finder.
When you need examples on file transfer protocol: look out for descriptions of the FTP protocol. (Or read articles about the older XMODEM protocol and its successors YMODEM and ZMODEM…)
02-15-2017 03:41 AM - edited 02-15-2017 03:52 AM
Are these files ordinary text? Else you'd have to e.g. prepend a message length and then binary data like in the TCP example (check it out). Else you'll just need to read a file and send the content. If the file includes Termchars you'll need to handle it like above.
Note: This sends the content of the file, not a file per se.
08-15-2024 08:50 AM
Hello Dear,
For RS422 I need to generate a Clock. Is it possible that the clock will work if I use Rs422 to USB converter and connect my device to myRIO?
08-15-2024 11:29 AM - edited 08-15-2024 11:29 AM
@Michael_Smith wrote:
For RS422 I need to generate a Clock. Is it possible that the clock will work if I use Rs422 to USB converter and connect my device to myRIO?
Not likely. A USB-RS422 adapter is typically using a UART protocol for the serial communication. It will not generate a clock. Instead, use one of the DIO pins to generate a clock and use a TTL to RS-422 converter to turn it into the signal you want.
08-16-2024 04:59 AM
I'm wondering if this can be used for my purpose?
https://www.ti.com/lit/ds/symlink/sn65hvd179.pdf?ts=1723794970161&ref_url=https%253A%252F%252Fwww.go...
SN65HVD179DR
08-16-2024 05:12 AM
You're posting all over the place and have apparently lost the overview where you posted what.
Yes this chip could be used to convert from a single ended TTL compatible line to a differential line as used in RS-422 communication lines. The datasheet explicitly says so.
But that was another thread where I also answered you, without specifically calling out this chip but, as an example the MAX485. There are virtually 100-ds of chips from TI, MAXIM, and others like Analog Devices, that all are specifically designed for RS-422/485 or can be used for that anyways, so singling out one specific chip as suggestion was not my intention.
08-16-2024 07:40 AM
@rolfk wrote:
Yes this chip could be used to convert from a single ended TTL compatible line to a differential line as used in RS-422 communication lines. The datasheet explicitly says so.
I regret that I actually have to make this argument since I got burned by a developer ~15 years ago who made this argument to me, but RS-422 only defines the hardware signal. Because of this, I am careful to talk about RS-422 with communication. I think I have actually run into more RS-422 signals that were not used for communication. Even a current program I am waiting for parts on use RS-422 for static DIO. For this situation, I am using a USB-6501 (24 DIO) and a couple of AM26LS31CN. As rolfk stated, there are a ton of chips that can accomplish this talk. For this task, I specifically wanted a DIP package as I was not given budget to make an actual CCA for the interface.
08-16-2024 08:10 AM
crossrulz, I'm aware that RS-422 and 485 "only" describe the electrical side of things. The answer was mainly the way it was, since the same poster had queried about how to go about interfacing an SSI encoder to a myRIO. The SSI interface is basically a differential (RS-422 type) CLK signal that goes from the controller to the encoder and another differential DATA signal coming from the encoder to the controller.
While it is indeed posted in this different and more or less hijacked thread, it seemed very related, but that may have been an assumption I came to incorrectly.
The person in question has created and hijacked numerous posts in the last few days that have one thing in common, he wants to connect all kind of stuff to a myRIO, but his electrical engineering knowledge seems somewhat limited. And at times it felt like we were talking two different languages, from the repeated often related questions in other threads that asked the same or similar thing again.