03-25-2013 10:36 PM
Hi all,
here i attached the problem that i face it now
how to save the data for the time domain and the spectral?
or any other suggestion to use for save file?
thanks
03-26-2013 12:00 AM - edited 03-26-2013 12:03 AM
@Mashimaro wrote:
Hi all,
here i attached the problem that i face it now
how to save the data for the time domain and the spectral?
or any other suggestion to use for save file?
thanks
With the TDMS file viewer blocks (the ones with the magnifying glass) the filename should go into the input on the top left (file path). That should fix those broken wires.
Let me know if you still have the problem when you've fixed that.
If you're trying to view the files you just wrote using the "write measurement file" express VIs, you can use the "filename out" output from them into the TDMS input mentioned previously.
Also make sure that you have TDMS selected as the output format in the write measurement file express vi.
03-26-2013 11:13 AM
hi, the broken wire was fix, but now i dont get what u mean by
"If you're trying to view the files you just wrote using the "write measurement file" express VIs, you can use the "filename out" output from them into the TDMS input mentioned previously.
Also make sure that you have TDMS selected as the output format in the write measurement file express vi."
when i run it, error 4828 occur
Possible reason(s):
LabVIEW: (Hex 0x12D7) You cannot perform this operation without an active task. Ensure that a task is active and try again. An input task might stop running if the input buffer overflows. Overflow occurs when the data is not read fast enough.
thanks for your help.
03-26-2013 06:06 PM
@Mashimaro wrote:
hi, the broken wire was fix, but now i dont get what u mean by
"If you're trying to view the files you just wrote using the "write measurement file" express VIs, you can use the "filename out" output from them into the TDMS input mentioned previously.
Also make sure that you have TDMS selected as the output format in the write measurement file express vi."
when i run it, error 4828 occur
Possible reason(s):
LabVIEW: (Hex 0x12D7) You cannot perform this operation without an active task. Ensure that a task is active and try again. An input task might stop running if the input buffer overflows. Overflow occurs when the data is not read fast enough.
thanks for your help.
Did just fixing the broken wires, (without following my other comments), cause that error?
03-26-2013 09:58 PM
ya, here i attached the vi
03-27-2013 05:56 PM - edited 03-27-2013 05:56 PM
I can't open that because my copy of LabVIEW is too old (8.6).
However...
Which part of the VI is throwing the error?
It should say something to the effect of ""Error 4823 occurred at...."
If it's sound input read, have a look at http://forums.ni.com/t5/LabVIEW/real-time-sound-by-TCP/td-p/1074830
03-28-2013 08:17 AM
here the vi LabVIEW 8.6
03-28-2013 08:37 AM
Might want to add a Wait (ms) or Wait Until Next ms Multiple or something to time your loop. I don't see anything keeping this thing from railing the CPU. Also, I would do as suggested above - wire the Filename Out to the TDMS viewer. Is there a reason you need to use this viewer outside the loop just as the VI finishes?
I looked into your Write to Measurement File Express VI's, they aren't configured to append data to the file. That's probably why things are going awry. I would also suggest wiring the path into the Express VI if for nothing else but traceability, it's hard to know what's going on in their without any documentation.
04-06-2013 08:06 AM
I still can't get it and can't solve the problem
can you help me??
or do you have any related example?
after i add the wait until next ms multiple for 100ms and the same error occur and another error is
Error 1 occurred at Write To Measurement File->tdms new.vi
Possible reason(s):
LabVIEW: An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @.
no any reason for me put the viewer at the outside of the loop
Thanks
04-06-2013 10:28 AM
A couple of things first:
Should the samples/channel on the sound read be 4410 or 44100? I do a lot of sound and I've never seen 4410 before. Just wondering.
Do you have the S&V toolkit? I can't open some of the subVI's.
The error that I'm seeing you get is there because in your Write to Meas File express you are writing an ASCII file, not a TDMS. You can't use the TDMS viewer to view ASCII files. For the sample rates that you are at, you should definitely be using a binary file format (TDMS or w/e else), not ASCII. I reconfigured this in your code. (NOTE: I did have to delete a bit of your code to get it to run because I didn't have those subVI's. Just add them back in and you should still be fine).
Both of your Write to Meas Files are writing to the same file in the code you posted before... You need to explicitly say the path that the files need to be saved to. You will probably need to use two files for this. I put in a basic path, you can change it to whatever you want.
Both of your write to files are configured to rename existing file. It should be Append to File. I changed that for both.
This now works. Just add your code back in that I didn't have access to and you should be good to go.