02-01-2016 11:01 AM
Hello everyone.
I am trying to write multiple channel data into one excel sheet through TDMS it gives me ERROR 8. I went through few comments that I found on forum like administrator login or changing firewal setting. I tried both still same error.
Can anyone help me with it.
Thanks
02-01-2016 11:08 AM - edited 02-01-2016 11:09 AM
1) You don't wire a file path to the TDMS file - only the path to a directory. You need to add a file name/extension - specify the full file path in the constant or use 'build path' for this from the File I/O palette.
2) It is not clear which terminal you have wired the '0' to - if it is to the operation terminal, it will only open an existing tdms, not create/replace an existing one. Delete the numeric constant, right click on the terminal and do 'create -> constant' and it will create an enum showing the possible values - you probably want 'create or replace' which is overwrite the existing file each time.
3) In your while loop, you are writing the same data over and over again at the maximum rate allowable by your harddisk/CPU - the data coming into the while loop is always the same!
02-01-2016
11:09 AM
- last edited on
01-08-2025
02:27 PM
by
Content Cleaner
Error 8 is a file access error. It looks like you're opening a file that already exists, or at least you're creating it with the first run and then using the same file with each subsequent run. Have you tried generating a new file each time?
Please include a Snippet of your code, or attach your VIs, so that we can better assist you. We are here to help, but won't spend all day recreating your code from scratch.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
02-01-2016 01:38 PM
Hi guys.
Thanks for your commenst I could figure out most of the problems but still I have issue with Path directory, can you have a look at my code and suggest any changes
Appreciate it.
Thanks
02-01-2016 01:48 PM - edited 02-01-2016 01:55 PM
Uhhh... Is it still error 8, or did you change it to error 6?
Now you're creating and then replacing the TDMS file with every single loop. You only need the While loop around the acquisition nodes and the timestamp. And why wire a constant in to the stop terminal?? Use a button.
It's probably best to use the File Dialog prompt to browse for a file or a new file. Your string input doesn't fix the issue from your previous version since you still need to type in "Data.tdms" or something similar.
I'm suggesting something like this:
You might need to add some timing delay to your loop unless those express VIs handle the sample rate already. You also need to wire error clusters through those nodes.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
02-01-2016 02:59 PM
Thanks for all your help. that worked!!!!
02-02-2016 03:18 AM