LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

format into file and scan from file

My labview is 2011 and VI snippet is from 2015. Hence it is not working in mine. Is there any way u can help me. If it is too much trouble, I can check one by one one and find which one it is. Thanking you. 

0 Kudos
Message 11 of 20
(1,813 Views)

I updated my snippet to 2011, but I'm guessing you weren't talking to me since my original snippet was 2012, not 2015. 

aputman
0 Kudos
Message 12 of 20
(1,807 Views)

Um... Okay you do not have the exact same VI's I used, (wirete to and read from Delimited Spreadsheet file)

 

The VI's you need are Write to Spreadsheet file and Read From Spreadsheet file (in the File I/O Palette)

 

The rest are in the Array Palette.

 

 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 13 of 20
(1,795 Views)

HI aputman,

 

Thank you very much for updating to 2011. I have used ur snippet and it works except for 1 small error. I dont know why is this happening. Can you please help me. I have uploaded the snapshot. Thanking You.

 

vi error.png

0 Kudos
Message 14 of 20
(1,763 Views)

That error shows that whoever you are trying to talk to is not listening.  You need an application on the other side looking to make a TCP connection.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 15 of 20
(1,757 Views)

Hi crossrulz,

 

I have already done a program to send data over tcp connection. So if I use this code in that will it work. Is that what u meant by having an application. Thanking You.

0 Kudos
Message 16 of 20
(1,746 Views)

@vindsan wrote:

I have already done a program to send data over tcp connection. So if I use this code in that will it work. Is that what u meant by having an application. Thanking You.


But is it on the computer with the IP address you are trying to connect to and running at a state where it is waiting for a connection as a listener?



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 17 of 20
(1,732 Views)

Yes it is on the computer

0 Kudos
Message 18 of 20
(1,723 Views)

Why are you opening up the same configuration file twice and reading and writing to it at the same time?

 

You have a race condition.  You have no control over which path of execution occurs first.  So the data you are reading may be older than the data that you are just writing in.

0 Kudos
Message 19 of 20
(1,699 Views)

Don't use my code exactly as I posted it.  I was only showing the relevant bits on how to read and write to an INI file.  You'll need to implement that code into some logical system with maybe an Initialize state where you load your config values from the file, a Connect state where you take the IP and port and store the connection to your listener, and any additional states where you communicate back and forth, and then a Close state where you close the connection and end the program.  Don't read and write to the INI at the same time, doesn't make sense.

aputman
0 Kudos
Message 20 of 20
(1,695 Views)