LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read txt file several times to build a new waveform

Hello all,

 

I built an arbitray signal by reading the data from a txt file. Both the txt file and VI are included in the attachment.

 

What I am planning to do next is using this signal as the basis to built a periodical signal. In other words, the signal I have right now could be considered as a full period.

 

However, surely I can't generate this periodical signal by just reading the txt file several times. I think I might need to use a storage function to save the data after my reading and append them together (so the following signal won't start at time 0 again) before the signal is written to the DAQmx write block.

 

Anyone has a idea about how to achieve that?

 

Thank you very much

Download All
0 Kudos
Message 1 of 6
(2,740 Views)

a small modification of a 2011 shipping example might help

!0.png


"Should be" isn't "Is" -Jay
0 Kudos
Message 2 of 6
(2,733 Views)

Hi Jeff,

 

Thank you very much.

 

Would you please tell me the name of this example file?

 

All the best,

 

Kevin

0 Kudos
Message 3 of 6
(2,731 Views)

in the 2011 examples this was sourced from "Gen Mult Volt Updates-Text File Source.vi" with some input from "Cont Gen Voltage Wfm-Int Clk-On-Board Regeneration.vi" Which is identical to "Cont Gen Voltage Wfm-Int Clk.vi"

 

in 2013 I strongly suspect the examples were renamed and done slightly different but, I can't check today.


"Should be" isn't "Is" -Jay
0 Kudos
Message 4 of 6
(2,724 Views)

Hi Jeff,

 

Thank you for your information. Actually I have achieved to read the txt file to form the waveform by building my own VI. The waveform is listed as in Figure 1.

 

Capture.PNG

Figure 1

 

Now I have difficulty to output a periodical signal based on the signal I have right now. The ideal signal should be something like in Figure 2 (image achieved in Paint (windows7) )

Untitled.png

 

The example VI you provided actually can only produce 1 signal, similar to figure 1. Not the continuous waveform as I desired....   😞

 

 

0 Kudos
Message 5 of 6
(2,719 Views)

Anyone can help me resolve this question?

 

Thank you very much

0 Kudos
Message 6 of 6
(2,688 Views)