Transfer an image via the serial port of PC to PC

Hello world

can someone help me to transfer an image file to another PC with Labview via serial port?

I tried to use the IMAQ functions to decode the image to a string. but there is a problem at the receiving end to retrieve the image.

is there an easy way to just sent and receive an image via the serial port file?

Thanking you in advance.

Morgane

Hello

I love people who love to learn. Thanks for listening.

I updated read and write Subvi is because I believe keeping simple and straight threads more readable program and less bugs remain.

Even better, my eyes straight lines i do not get tired too soon.

good luck with your program.

Tags: NI Hardware

Similar Questions

  • How to connect Agilent 8163 b via the serial port

    I have a problem connecting to the serial port with Agilent 8163 b. The driver that I use is driver_vxipnp_816x_4_1_4.exe. The problem always message display "Visa resource not found. Check the HPIB-Bus address"when I use the components inside the"hp816x tree.vi ". However, I have no error if I use normal read and write VISA.

    Y does it can someone help me answer my question? Thanks in advance.

    Thanks for the reply.

    I face a problem that you use with GPIB-USB-HS due to the physical dimension, as shown. The width between the remote locking connector (FIR) and (w1) GPIB connector to the appliance is too small for the GPIB-USB-HS (w2) connect to this topic. If I unplug the connector RIL, tunable Laser will not be activated. So I have a few questions as follows.

    1. the LabView can always activate the tunable Laser if I unplug the connector at RISK in my case via GPIB?

    2. the LabView is compatible with GPIB connector (model x 10833) Agilent?

    3. is there a way to solve the problem posed by the RIL connector unplugged?

    The drop box

    P/S: version please is 4.84 to 8163 b.

    Thanks for the help and I'm too new in this field.

  • How to periodically send various types of data via the Serial Port?

    Hello! Everyone

    I have to send data to LabVIEW to my device on the Serial Port.

    I know how to send data on serial port in LABVIEW, I already have this part.

    Now the problem is that I have several types of data I need to question my embedded device, if I want to send the query periodically command.

    So lets say that my four Op Codes are the following, which will send four different types of query command to my device on the serial port.

    (To be honest only OP_LED and OP_SENSOR is used now)

    0, OP_SYNC

    1, OP_LED

    2, OP_SENSOR

    3, OP_FUTURE

    Structure of basic package is as follows:

    Header (0x2C), Checksum, length of the data (n bytes), Op_Code (1 byte), length (length of Code + data Op)

    For OP_LED, I need to send the package as follows:

    0x2c 0x02 0x01 0 x 00 0x2F (0x2F being the XOR checksum) (calculation of Checksum part is done and SUB Vi form)

    Length of the package this is 0x02

    0x01 is Op Code for OP_LED

    In the same way

    For OP_SENSORi need to send the package as follows:

    0x2c 0x03 0x02 0x00 0 x 00 0x2D (0x2D being the XOR checksum) (calculation of Checksum part is done and SUB Vi form)

    0x03 is length of packet here

    0x02 is Op Code for OP_SENSOR

    So, how can I do this periodically in labview, in such sort that period can be adjusted whenever necessary.

    Is there something in LabVIEW to do.

    I had done the reception and decoding part and working properly.

    http://forums.NI.com/T5/LabVIEW/store-data-coming-from-serial-port-in-buffer-and-then-take/m-p/32722...

    So I must implement read and write the part of same while loop?

    Do not insert in the table if you put data in an array at index 0.  Just use array to build.

    No need to have Visa to write don't be a part of wire to the wire of reference and error VISA go in the upper part.  These wires should go THROUGH the entry VISA.

    Don't your checksum requires all the bytes up through data?  Righ now, you only put the checksum on data bytes and forget the opcode and length bytes.

    Your sending is not the opcode for Opsync or Opfuture.  You just send the empty tables.  At the same time for the other two, you put the opcode in the data table.  All your original opcode in the table build thread.  Get the data out of these structures in case item which is supposed to represent the opcode.

    xpress_embedo wrote:

    Now it works but I have now two problems.

    (1) OP_SYNC and OP_FUTURE do not data, but still receive its data on serial port, can I do something here as I have nothing when the table is empty in the structure of the case.

    I do not understand this statement.  Perhaps my answer above will fix any issue you have here.

    (2) how can selection operation Code to be send is done using control façade but real application, this task should be automated to a certain frequency, like OP_LED package must go out to the serial port to 100msec and packet OP_SENSOR must go out to 1000msec, I do this.

    Now you agree a little more architecture.  I would encapsulate the code that is in the while loop as a Subvi.  Then with the hand of your program while loop, use two time Express VI, a game for 100 msec, the other for 1000 msec.  When an express VI is true, run the Subvi with a command set waiting for the answer.  When the other VI Express is true, have it run the Subvi with the other set of commands.

    The device responds with anything when you send these commands?  You only send data.  I see no VISA Read to be able to recover all the data.

  • Cannot sync to the device via the serial port

    I have to read the data with a DSP associated with an EKG. For this I need 5 bytes (0x00 0x80 0x00 0x80 0x00) in a specific order that are sent through the port every second. I followed the data sent via the port and these 5 bytes are actually get received, however I havnt managed to find with my VI. I tried many different ideas without success and maybe Im doing something wrong. My latest attempt uses a waiting on event so I won't miss all the data. Ideas? See what I'm missing?
    I'd appreciate any help!

    I think you are using the wrong function.  You use Match true/false String.  Said context-sensitive help "examine beginning of string to see if it matches the true or false string. This function returns a Boolean TRUE or FALSE value in the selection, depending on whether the string is true or false string. "Well, suppose that the string isn't everything at the beginning, but as another byte in front of her?  It will not find the search for string.  And the wiring of the same search in True and False are strange because if it is found, then it is both true and false at the same time.

    You should use search and replace or search/Split string to determine if and where the search string is inside the largest chain.  (I would take research/Split).  If the string is not found it returns-1, otherwise it returns the location of the string.  And it has the advantage of any return after the game you could feed in the shift register for a search on the next iteration.

  • How to create a stop button to send commands via the serial port and finish labview vi?

    I want to send two commands on my camera, the first to stop the execution and the second to get out of the remote control mode. This is done on RS232. What I want is a way to put this in my existing VI that tells the device to run. Now if I stop the program, that the devices just run the last command unless I have stop manually. How can I set up a stop button that are not sent to all orders except in such a hurry? I tried the structure of the case, but didn't know how to put a part of 'status quo' If island stops in the while loop is not pressed the button.


  • read the serial port management using the SRM Protocol

    Hello

    I have a gas analyzer that communicates with the PC via the serial port.

    This is the "Industrial VarioPlus SRM".

    I have attached a PDF file that describes the communication protocol.

    I'm trying to decode the data that are sent from the parser, but I can't do it.

    I have attached the vi in which I made some effort.

    Any help is appreciated, at least for a single value in the data stream.

    Thank you.


  • How to transfer files from PC to PC via a serial port using labview

    I need to transfer files (.txt, .doc, .xls) from PC to PC via a serial port using LabVIEW. Is it possible to transfer files, if so how to transfer?

    Yes, it is possible to transfer files with the serial port using LabVIEW.  The files are just collections of bytes and the serial port is good enough in the expedition of the bytes from one PC to another.  You must connect the ports series with a null modem cable.

    First, take a look at the example of serial communication.   In LabVIEW, go to the Help menu and select «Find examples...» ».  From there, you can search for "serial" or navigate to hardware input and output > series.  Select «Write series base» and Read.vi  Try this example to gain confidence on the serial communication methods.

    Then it's time to learn how to read and write files.  For this, the examples might be somewhat confusing as they deal with files that are presumed to have data of a specific type in them.  I would recommend just familiarize yourself with the functions in the file e/s palette.  Specifically, familiarize yourself with the following functions.

    1. Open/create/replace file - on the side of your destination, you will need to create the copy of the file you are trying to transfer
    2. Close the file - when you're done reading or writing to a file, you must close it.  It cleans the memory used and finalizes write operations that are still floating in the write buffer.
    3. Read a binary file - is the best way to play a file when you don't really like what type of file it.  In your case, you just want to get these read bytes and sent so they can be written down instead of destination.
    4. Write to a binary file - next to the destination, is what will store the bytes in the file that you created with the number 1.
    5. Size of the file get (under the range of the advanced features of file) - you need to know how big the file is, so you know when you are finished.

    OK, so once you are able to create files byte write and read bytes from existing files, you can move forward.

    I suggest the basic method is to have the user specify a source file on the source PC, and a folder on the destination computer.  Then find the size of the source file using the number 5.  Divide this number of size by the number of bytes that you want to transfer to the times.  The series pads are usually around 32 k (if I remember correctly) in order not to exceed that.  Now start to send data by reading a number of bytes and this string output wiring to the feature of writing VISAS.  On the side of destination, you will want to monitor the serial port for bytes and read when they arrive.  This string of yarn to the writing of the function of binary file to add them to your destination file.

    This is the basic outline of how to do it.  He needs to not to overload him write and read buffers on the serial ports.  Initially, you can use delays on the side sending to make sure that the side reading has enough time to digest.  To make things faster, you can bring in a control of flow.

    If all that sounds a little intimidating, there are there Alliance member companies (such as the automation of PrimeTest) who can write this code for you and even provides a turnkey for you solution.

    Happy wiring,

    Dan press

    Certified LabVIEW Architect

    PrimeTest Automation

  • Smartphones blackBerry how to connect the serial port (SSP) to a PC?

    I try to connect my BB (8310) to my pc using the port profile series bluetooth with my old phone (sony ericsson w300i) would just pair the phone with the pc and then the pc would discover services on my phone and I woluld double clicking the port icon series, but when I explore the services BB I only have handsfree and dial-up networking , I know the phone supports the serial port because I checked in the bluetooth options, and it supports the connection to the serial port.

    Thank you.

    http://www.BlackBerry.com/BTSC/search.do?cmd=displayKC&docType=kc&externalId=KB04132&sliceId=1&docTy...

    proceed as if you want to sync via bluetooth

    If you just want to transfer files, stop after completing step 5

  • Using the Serial Port on the HP 50 g graphic calculator

    Hello world

    I have another question. I want to use the Serial Port on the HP 50 g to connect with another device. The device is called the MFJ-1214PC. What it does is to accept the text and commands through a 9-pin serial Port and converts the text in a Code Morse/RTTY sound audible. It also decodes Audible the Morse Code and RTTY radio signals and displays them as text on your computer. The program that controls the MFJ-1214PC was originally written for an IBM PC for the MS-DOS operating system. The HP 50 g graphic calculator meets the system requirements for the simplest version of the program. I was wondering if there is an MS-DOS emulator written for the HP 50 g, which would allow the HP 50 g to become the computer in this case, or if the program could be rewritten and brought to the HP 50 g. If it could be rewritten, programming language what do you think would be better suited to this type of application (if it is even possible?) or UserRPL, SystemRPL or Assembly. Don't forget that I'm a complete newbie with the HP50g and have never programmed with it yet. I'll include the manual of the MFJ-1214 PC as an attachment so that you won't have to look for him. Thank you in advance for your help!

    ~ Zekelegge ~.

    I understand (from my brief overview) out of the box-MFJ-1214PC, this offer box decoder output series computer.  The computer (50g in your case) will have the software to read message series and then convert that to an output for display.

    BartDb gave you the right answer.

    A serial cable with the correct speed level and reversing lever to manage as well as the 50G has a RS-232 signal to the outside world is the ideal solution.

    However, make sure that the output of the decoder box series package can be understood by the 50 g. aud, bits, etc.   (you have the set-top box manual, so you'll have to look that up)

    the streamsmart is not an aggregator of serial port.

    in other words, these connectors DIN of Qty 4 on the front do not accept series rs-232 input and send then to 50 G.

    I'm not an expert, streamsmart more info on these boxes is rare to find.  The probes are even more rare.

    However, I know that the 4 connectors are for the analog-to-digital conversion in the probes.  The streamsmart works as a "data logger" in which he sees the input probe, the A/D converted, then sends it to the 50G (or a computer via the USB port).

    In addition to the solution of Bart, there was another named Tiwag forum poster who created a serial cable and displayed a schematic representation of the cable.  This information can be found here:

    https://groups.Google.com/Forum/?fromgroups#! searchIn/comp.sys.HP48/serial$20port/comp.sys.HP48/ltcane1jSOw/uHyw2Ti03kgJ

    to see an example of programming to use the serial port of 50G, you can reference the following hpcalc GPS data collection program.

    http://www.HPCalc.org/details.php?id=7105

    It is written in userrpl so can be crossed with the reference of users advanced for the translation of the syntax.

    It seems that the main routine of concern for the comm to the gps is in the file "GPS >.

  • How to convert string data from the serial port to double?

    Hello!

    I am very new in LabView and attempt to read data from an OHAUS pioneer pa-313 electronic scale via RS232 serial port. I use the VISA. I can read the data and see it as a string to the screen, but when I try to convert it to a double, it is just the integer and decimal numbers have disappeared. Here's the question: what can be the problem? How can I get the decimals as well?

    What is your normal decimal point?. or?

  • Problem of device detection via the RS232 port on sbRIO-9631

    Hello

    I can't detect a URG Hokuyo laser rangefinder - 04 LX connected to a sbRIO 9631 via the serial rs232 port. I can confirm that the rangefinder works through the computer and that it is detected by MAX and VISA when it is connected through the serial port on my computer. I have the following software downloaded on the map:

    LabVIEW time real 9.0

    Language support for LabVIEW RT 1.0.0.3

    Engine network Variable 1.6.0

    NOR-RIO 3.2.1

    NI-VISA 4.5.1

    NI-VISA Server 4.5.1

    Customer variable for LabVIEW RT 1.6.0 support

    NEITHER Max, I see under "Devices and Interfaces" in the configuration tree is the RIO0.

    TIA

    Hi oswong,

    If you install "OR Serial RT" on your sbRIO-9631, then it will allow support for the RS232 port integrated on your Single-Board RIO.

    Kind regards

  • 2 ways to send 16-bit to the serial port. What is the good?

    I am trying to send data via a serial port... This data consists of a 16-bit format. The data are sent by a DSP. Searching in the internet I found two ways to send data. The first is that the first photo anda the second way is the second picture.  I read data ok, which in this case is a sine wave. But I 'don't know if it is correct or not.

    In the first case , the citation read buffer sende th 8-bit to decimate them VI that will be concatenated after to join numbers function...

    Is it fair or not?   Second question. I noticed when I put multiples of 8 in the number of bytes the graph is ok. But when the number is not a multiple is the graph 'missing pieces '.  Why?

    In the second case, I confess I didn't undertood it. I know that the CASTING of TYPE function transforms the string on a table swap bytes (DSP sends the MSB and LSB) I know what subset of string.  I read that the 4 in the offset is put there to avoid the reading of the data header. But I don't know why 2048 is here. The latter reads data too...

    With any who answer my questions would be a really really help

    Thank you guys.

    First case

    second case

    Both are probably correct for the data being sent.

    If you want to read a unique 16-bit value at a time, then obviously you would set the number of bytes to read to be 2. The following code shows two ways to convert the two bytes to a single value. The chain Unflatten to specify the boutien.

    You don't mention her, but how do you synchronize the data. With the dsp to send two separate bytes, not sure what byte you will read first. Do you send start/stop characters so that you know this vital information?

  • Problem using the serial port with windows 7

    Hello

    I have a modem of SIM cards (used to update remote controller of the electronic gate) that connects to my computer via the serieal port (COM1).

    The modem comes with its own piece of software that worked fine on my old computer with windows 7 (I had a similar problem, but then I just need to update the driver).

    I now have a new computer and I am unable to connect using the modem (I think I'm using the latest drivers for the serial port).

    Is it possible that I need an older version? If so, how can I get a?

    My motherboard is a GIGABYTE H81M-D2V.

    Any ideas?

    Thank you

    AVI

    Hi Avi,

    Thank you for the update on the issue.

    The UART, or Universal Asynchronous Receiver / Transmitter, is a characteristic of your microcontroller useful to connect serial data (text, numbers, etc.) to your PC. The unit switches incoming parallel information (in the microcontroller/PC) to series data that can be sent over a communication line.

    According to the description you provided it seems that your modem isn't connecting with your Windows 7 computer, then I would contact Duetech Berès your modem manufacturer, so that they provide you with the steps to set it up.

    Get back to us after contacting them and please get back to us with your question was last updated.

    Kind regards.

  • How can I get multi channel audio via the HDMI port on an early 2015 MacBook Pro?

    I try to get the 7.1 audio channels to flow from my MacBook Pro to a cinema set up. The display works fine now I plug the HDMI in however the sound still Mac speakers. I checked the settings and no HDMI output is available. An airtime option is available, but that returns only two channels as a maximum to the receiver. When I go to the configuration of the source on the receiver it receives video at 1080 p 60herts however it is specifically stated No Audio from the Source.

    Also, I have connected my iPhone 6 s more using an Apple through the same HDMI cable adapter and it works perfectly. We also use HDMI with our PS4 occasionally and it works perfectly, even with the 3D.

    Thus, the MacBook Pro is early 2015 with an i5, the receiver is a Harmon Kardon AVR 2700 (we run 7.1 channels of this) and we are connecting via the HDMI port through a 50 ft HDMI before. The receiver sends the audio to a projector with 1080 p 60 hertz if it changes anything...

    Also if it helps the receiver supports dts - hd master audio decoding, Dolby True HD/Digital Plus decoding, HDMI 1.4 (HDMI is compatible 2.0), as well as multi-channel input and PCM and linear PCM.

    I use a "Behringer UCA202' audio device I bought on amazon.com for only $29.

    It works very well for the audio 5.1 or 7.2. Works connect optical toslink. Just plug it into a usb port on your Mac and a cable optical toslink to your AV receiver.

    My Yahmaha 7.2 audio/video receiver is measuring process the digital signal in THX, DTS, Dolby digital Pro logic, a cinema, etc.

  • Since 10.11 I have not been able to download via the usb port of my Davis Vantage weather station. No solution of tech Davis on the issue even with the new recorder of events in the resort. Is there a problem with the usb?

    Since 10.11 I have not been able to download via the usb port of my Davis Vantage weather station. No solution of tech Davis on the issue even with the new recorder of events in the resort. Is there a problem with the usb?

    What Mac? (details)

Maybe you are looking for