LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to merge to frequencies together and play it? I have a program that outputs two numbers everytime and those numbers in Hz. I want to merge those two different frequencies and play the sound.

The file you provided is an Excel 2007 file. Why are you using the Read from Measurement File function to read this file? I don't know if it's different in 8.6, but that function doesn't read Excel files. It reads LabVIEW measurement files. If anything you should be saving the Excel file as a tab-delimited text file so you can read it using the Read from Spreadsheet File function. Otherwise, you have to use ActiveX to read the Excel file.

 

That said,  what I see in the file are 4 columns:VHF Channel, VHF Freq(MHz), UHF Freq 1, and UHF Freq 2. I would think you're actually trying to pick off UHF Freq 1 and UHF Freq 2, and not VHF Freq and UHF Freq 1 as you indicated. Are you supposed to select the row based on a VHF Channel? In that case, your example was using row/column values of 0.1. 0.1 what? If all you need to do is pick off the row based on the VHF Channel (which is the only thing that really makes sense to me), then all you need are 2 Index Array functions.

 

Message 12 of 16
(907 Views)

hey smercurio

 

thnxs a lot for your help. I got it to work but i have something to add that I'm having some problems with. The sound that comes out..I need to leave it to play for 250ms. How would I add that to it. I really appreciate you helping.

0 Kudos
Message 13 of 16
(877 Views)
You would need to configure your Simulate Signal Express VI to do that. Set the Samples per Second and the Number of Samples according to what you need.
Message 14 of 16
(872 Views)
I've been trying that but can't seem to have it run for the time i need but anyhow..My last step is to play the sound and then wait for a certain time(0.0025sec) and then browse to a file and play it. How would I be able to play the files in order?
0 Kudos
Message 15 of 16
(867 Views)

Hi Oli Oli Oxin Free,

 

I'm not sure what you are asking.  If you are wanting to know how to make everything work in order, you can use dataflow to control the order of execution.  I have attached the following link to help you out:  http://zone.ni.com/devzone/cda/tut/p/id/7573.  As for the wait, you can use Wait(ms) to wait for the 25 ms you are looking for.  Does this help?  Let me know if this isn't what you were thinking of. 

0 Kudos
Message 16 of 16
(820 Views)