LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can i use CIN open .wav file

hi :
how can i use CIN open wav file and play it in LabVIEW? please help me! Thank you!
0 Kudos
Message 1 of 9
(3,474 Views)
There is the Snd Play Wave File function on the Graphics & Sound>Sound palette to open a .wav file and to play it. It doesn't use a CIN (Code Interface Node) though but a Call Library Function Node so I don't understand your reference to the CIN.
0 Kudos
Message 2 of 9
(3,467 Views)
Thank you for reply me,i want to use LabVIEW to call my project which writed in C,this project is used to decode signal ,the signal was a  *.wav file ,and at first ,i must use CIN to open a *.wav file and transmit the data out .  
0 Kudos
Message 3 of 9
(3,453 Views)
In other words, you want to convert your c project into a CIN? I think it's easier to make it into a dll but, you can read how to do either in the document called 'Using Exteranl Code in LabVIEW'. This is part of the LabVIEW bookshelf you can access from the help menu.
0 Kudos
Message 4 of 9
(3,450 Views)
    Thank you for give me advice ,i'am fresh ,I don't know how and what i can do for this project ,i don't konw what effective way to solve this project , our manager ask me to do this project with CIN,but he don't konw this, but i can't say 'no' to him, i must do as him tell me.in your opinion ,what is the best way to my project , and please tell me,can i open wav file in CIN ,and put data out ? if not ,what can i do ?
    Thanks for the suggestion.
                                                                --------CDNSE
 
0 Kudos
Message 5 of 9
(3,446 Views)

If you want to open a wave file in a c program, then you should post this question to a c programming forum. I do a little c programming with LabWindows but have not done anything with .wav files. Once you have your c program written, then you can convert it to a CIN or dll with the instructions in the document I mentioned.

I don't really see the point of writing a c program to open a wav file and then to just play it. LabVIEW does it perfectly well with the built in function. The built in function actually calls a dll that is written in c so what you are attempting to do is basically re-invent the wheel. I sort of understand your position about not wanting to argue with your boss, but if it was me, I would just show him the diagram of Snd Play Wave File with the Call Library Function Node and just hope he wouldn't ask to see the source code. Now if this whole exercise is for you to learn c and integrate it into LabVIEW, then forget what I just said.

0 Kudos
Message 6 of 9
(3,441 Views)

thank you for your advice,i thik i must tell you about my work  detailed,my c project is very big ,my boss want i can use LabVIEW to imitate the most compentence of my project,the most important is i must get the data which i need when the c project running. if i convert c program ,how can i get the data i needed?,i think i must change my ideal .thanks for you help !!

0 Kudos
Message 7 of 9
(3,428 Views)
I'm not sure what you are asking for now. If you want to convert a c program into a CIN or dll, then refer to the document I mentioned. If you want help in in writing a c program to perform a specific task, then I'm afradi that I'm not the best person to ask this and I'm not sure this is the appropriate forum. If you want top be able to transfer date between a c program and LabVIEW, then you need to be a bit more explicit on what the data is and what program is generating it. The only thing you have mentioned is a .wav file and having to play it.
Message 8 of 9
(3,425 Views)
i am knowing what i was did now ,thak you for your help these days,if i want to do this project perfectly i must know what i need do before explicit .thank you
0 Kudos
Message 9 of 9
(3,413 Views)