ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read text to array

I am trying to run this example. I am not getting any output on the array pallet on the front panel.

 

I saved both the vi and the sample file in one folder, changed the file path of example to current folder. Still it is not working.

 

https://decibel.ni.com/content/docs/DOC-22459

0 Kudos
Message 1 of 18
(4,759 Views)

Attach your VI.

0 Kudos
Message 2 of 18
(4,753 Views)

sorry about that. its the same vi which is there on the site

0 Kudos
Message 3 of 18
(4,749 Views)

It's not the same VI. Look at what the example actually has for a delimiter.

0 Kudos
Message 4 of 18
(4,747 Views)

i am actually require to import coeffiecnts of polynomials which i fitted on data in some other program. these coeffiecients are in a form of txt file. i was going to modify the code in the xample for my program to evaluate the polynomial. The example itself was not working.

0 Kudos
Message 5 of 18
(4,745 Views)

The example is working perfectly fine. You changed it so it cannot work. A delimiter of %.3f (what you have) is just not sensical. A delimiter is what separates the fields.In the example, it is a space. I have no idea what you text file looks like so I have no idea what delimiter you must use but it is certainly not a format string like you changed it to.

0 Kudos
Message 6 of 18
(4,741 Views)

It had a constant by default when i downloaded. But that too didnt work.

0 Kudos
Message 7 of 18
(4,739 Views)

The original VI works. Your modified VI works after changing the delimiter to a space.

0 Kudos
Message 8 of 18
(4,728 Views)

Ahan.. when i change the instance to main application it works.

But, it is not what i want i want this to read the polynomials coefficients from a file supply them to my main code which generates signals realtime  based on the polynomial.

 

 

0 Kudos
Message 9 of 18
(4,718 Views)

Here is my main code it doesnt work here.

 

I am reading the Amp .txt with coefficients of polynomial. giving it to the main code where it evaluates the polynomial and develops signals based on the the amplitude and phase .

 

This works fine when i change the instance but rest of the realtime part doesnot work.

 

 

Download All
0 Kudos
Message 10 of 18
(4,711 Views)