From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
02-12-2012 05:12 AM
Hi
I am working with process tomography;
I want to send a 2-D array of double over TCP, receive the same array (2-D array of double) and create an image from this array.
From unflatten to string, I got 2-D array of string. How can I create the original array from this array of string?
Please take a look to my vi s.
Thanks in advance
Solved! Go to Solution.
02-12-2012 08:38 AM
Hello,
I think the solution is to remove the "Number to Fractional String.vi" that you have in the transmit1.vi. You create a 2D array of doubles and you convert that array into an array of strings, and then you flatten them into a single string. This is not nessecary. You can simply wire the 2d array of doubles directly to the flatten to string vi.
See the pictures below.
hope this solves your problem,
labjunky
in the transmit vi
in the receive vi
02-12-2012 12:45 PM
Thank you for your suggestions Labjunky
I have modified the vi s accordingly, but unfortunately it did not solve the problem
In this case I do not get the data even in the form of string. Array in the receiver is empty.
Can you please take a look to the modified vi s?
Thanks:)
02-12-2012 02:06 PM
You are writing a 2D DBL array, but are reading it as a 2D array of strings. replace the 2D string array constant with a 2D DBL array constant. (I haven't studied the rest of the code, because I don't have IMAQ)
02-12-2012 03:49 PM
Hi
I made a search and could find the solution at
http://forums.ni.com/t5/LabVIEW/Convert-2D-string-array-to-2D-number-array/td-p/626652
It works fine now:)
Thank you for your advice.
Regards,
Mittani
01-07-2014 08:28 AM
I can' t find this particular labview thing how is it called?
Thanks in advance
01-07-2014 11:27 AM - edited 01-07-2014 11:27 AM
@HenkMCFree wrote:
I can' t find this particular labview thing how is it called?
01-08-2014 02:10 AM
Thanks alot!
07-17-2021 12:31 PM
Hi, I have used your suggestion and the number vector communication is successful, thank you.
07-18-2021 01:16 PM
Just be aware that every time you convert a floating point number to a string, you lose the actual floating point value. You get an approximation of an approximation.