LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

"IMAQ image to string" difference in 8.2 and 8.5

My basic aim is to capture image from one computer and then send to another in LAN using TCP/IP. I have LabVIEW 8.5 and LabVIEW vision 8.5 in one and LabVIEW 8.2 and LabVIEW vision 8.2 in another. I capture an image in the computer whear I have installed 8.2 version of both and then flattened using " IMAQ image to string" and then sent it to computer using TCP/IP to computer with 8.5 version but the image is not displayed whearas when i do send that from 8.5 to 8.2 ( Capture the image in the computer with 8.2 and then flatten it to string and send it to the computer with 8.5 and display) , it works. Is it beacuse of different version of LabVIEW vision?
 
0 Kudos
Message 1 of 12
(3,743 Views)
Hi aman_bajra,

You should be able to pass the image from one computer to another using TCP/IP, even if the computers have different versions of the Vision Development Module installed.  I tested this here and I had no difficulty sending the image from a computer running Vision 8.5 in LabVIEW 8.5 to a computer running Vision 8.2 in LabVIEW 8.2, or vice versa.  FYI, I used the normal Flatten to String node, not the IMAQ Image to String VI.  I have included the VIs I used to do this below.  Please give these a try and reply back if you are still unable to send your image properly.  Thanks.


Rishee B.
Applications Engineer
National Instruments


Message Edited by risheeb on 03-12-2008 12:24 PM
Download All
0 Kudos
Message 2 of 12
(3,720 Views)
No still not, I tried your program from labview and vision 8.2 to 8.2 it works. but when I run TCPIP send image.vi in labview 8.5 to 8.2 it doesnt .
 
0 Kudos
Message 3 of 12
(3,712 Views)
Hi aman_bajra,

I'm a little confused.  In your first post, you said the image would not display when sending it from the computer with LabVIEW and Vision 8.2 to the computer with LabVIEW and Vision 8.5, but in your last post you said the opposite.  Could you please clarify?  This will help me continue to troubleshoot.  Thanks.


Rishee B.
Applications Engineer
National Instruments
0 Kudos
Message 4 of 12
(3,699 Views)
Sorry for the confusion. The error occurs when 8.5 is sending image and 8.2 is displaying it. It shows that it has received flattened data (in string format and the size too) but doesnot display the image. My reasoning was that the flattened data in 8.5 is not compatible with 8.2  (but 8.5 can translate flattened data coming from 8.2) .
0 Kudos
Message 5 of 12
(3,688 Views)
Hi aman_bajra,

I have still not been able to reproduce this here, even with a computer running both Vision Development Module 8.2 and Vision Acquisition Software 8.2 in LabVIEW 8.2.  At this point, I am going to need to speak to R&D about this to see what else we can try.  I will let you know as soon as I hear back from then.  In the meantime, you may want to try repairing the installations of Vision Development Module and the IMAQ drivers on the computer that is not displaying the image.  Thanks.


Rishee B.
Applications Engineer
National Instruments
0 Kudos
Message 6 of 12
(3,660 Views)
Hi aman_bajra,

I've spoken to R&D about this issue and they gave me some more suggestions.  Firstly, I would like you to check the version of the NIVision.dll file on your host and client machines.  This file can be found in the System32 directory of your Windows installation.  To check the version of the file, right-click on the file and select Properties.  The File Version will appear under the Version tab.  Since I was able to get this working here, I want to check that your file versions are similar to mine.

Also, it's not really recommended that you mix differents versions of the software like this.  While it may work in some cases, there's no guarantee that it's always going to work as expected.  You may want to try installing the evaluation of Vision Development Module 8.5 on the client and trying out the code again, so we can see if the different version numbers are in fact causing the issue.

Finally, just to be sure, have you tried repairing your software installations as I suggested in my last post?  Thanks.


Rishee B.
Applications Engineer
National Instruments
0 Kudos
Message 7 of 12
(3,621 Views)
Hello Rishee,
Thank you for your reply. Version of NI vision.dll in the computer with NIVision 8.5 is 8.5.0.49152 whearas in the one with NIVision 8.2 is 8.2.1.94.I  .
Thank you for your suggestion of using same version. I didnt upgrade to 8.5 in all three computer that I am using to make sure that my program works in 8.5 without any problem. I will upgrade my NIVision8.2 to 8.5 and see if the problem still persists. I will also try repairing the NIVision.
 
Aman
 
0 Kudos
Message 8 of 12
(3,597 Views)
Hi Aman,

Sounds good.  Please post a reply if these suggestions do not resolve the issue.  Thanks.


Rishee B.
Applications Engineer
National Instruments
0 Kudos
Message 9 of 12
(3,571 Views)
Hi Rishee, I was just wondering why did you write a TCP read (without any input to bytes to read) before reading the file length in the TCP Receive Image VI. Is that to clear anything on the buffer ?
 
Aman
0 Kudos
Message 10 of 12
(3,538 Views)