LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

In LabVIEW NXG, how to operate the image type file?

I installed LabVIEW NXG 5.0, NOT LabVIEW. I want to send an image from one device to other device. But how to operate the image type file, just like .jpeg. I can't find function to operate this file. please help!!!

0 Kudos
Message 1 of 20
(3,146 Views)

Hi akjoker,

 


@akjoker wrote:

I installed LabVIEW NXG 5.0, NOT LabVIEW.


Why did you do so?

 


@akjoker wrote:

I want to send an image from one device to other device. But how to operate the image type file, just like .jpeg. I can't find function to operate this file.


What do you mean by "operate"?

Do you want to send the file (byte by byte) from one computer to the other? Or do you want to convert the data from compressed format (like JPG) to a "raw" stream of RGB values and send that to your "other device"?

 

Can't you load binary files in NXG? I'm pretty sure this is supported…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 20
(3,140 Views)

Thanks for your reply.

 

OK , actually. I try to send an image from one PC to other PC by two USRPs. Two USRPs transmit data wirelessly. So I think image file should be converted into binary bit stream and sent by modulation signal. But I don't know how to convert. Is there a function can do this? Please help me or give me an example about this.

0 Kudos
Message 3 of 20
(3,104 Views)

Is there a reason you want to make this needlessly complicated, or is this just an exercise so you can learn how to use USRP?  (Which is a totally valid reason.)  I would just use a network connection (even a wireless one) and most of the legwork is done for you.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 4 of 20
(3,095 Views)

Like @billko, I am a little confused on what you are trying to transfer.  I understand you have an "image type file" on one computer, and want to "send it" to another.  Here are some questions that Bill and I would like to know:

  • What is an "image type file"?  Is this an ordinary Windows file that is in a standard "image" format, such as .bmp, .jpeg, .png, etc.?  Specifically, a binary file that has a defined specification for the bits and bytes that can be recognized by Windows and rendered as an Image?
  • What do you mean to "send it" to another computer?  I take it that you do not mean "copy the file to a Flash Drive, unplug the Drive, plug it into the other computer, and read it".  What is wrong with using TCP/IP in one of its many communication mechanisms, such as FTP?  [Note the advantage of this over USRP is that at least 99.44% all Windows systems have access to the Internet, whereas the number with USRP access is maybe a few thousand, i.e. rare].

Bob Schor

0 Kudos
Message 5 of 20
(3,090 Views)

Thanks for your reply.

Actually , the format of this image is .jpeg. Then I just want to know how to convert it into binary bit stream. Can you give an example about this process or tell me which function can do this?

0 Kudos
Message 6 of 20
(3,077 Views)

Again, I have to ask, "Why make this so complicated?".  Is using USRP a requirement?  It would be a lot easier to used canned, well-understood protocols like FTP over TCP/IP.

 

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 7 of 20
(3,066 Views)

Well. I try to study acknowledge about USRP and wireless transmissions. So I hope to send it by modulation signal not by TCP or others.

Message 8 of 20
(3,047 Views)

@akjoker wrote:

Well. I try to study acknowledge about USRP and wireless transmissions. So I hope to send it by modulation signal not by TCP or others.


Excellent!  You are trying to increase your knowledge by doing something new and difficult.  I have to admit that I am going to be in learning mode as well for this topic.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 9 of 20
(3,039 Views)

So, we don't discuss knowledge about USRP. Back to the original question. In LabVIEW NXG, how to convert an image into binary bit stream? how to get image resolution and image size? Are there some functions can do these? Does LabVIEW NXG have this function?

0 Kudos
Message 10 of 20
(3,026 Views)