07-02-2015 10:10 AM
Hey guys.
I'm having some issues exporting data from a waveform graph to excel. On one computer the function works and opens up an excel file, but when I copied all of the files needed to a second computer, putting them in the c:// drive, the program does not open an excel file.
Any ideas?
Thanks
07-02-2015 10:13 AM - edited 07-02-2015 10:15 AM
I know I've asked you this before, but can you share the code? More information is needed to help here as well. It could be many things.
Are the paths hard-coded? Are the paths identical? Are your Excel versions the same? Do you need to use the Report Gen toolkit, or can you just use the Spreadsheet VIs in LabVIEW? Sometimes the Report Gen Toolkit requires excel to be open already or it throws an error, try opening excel first?
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
07-02-2015 11:57 AM
It is generally not a good idea to use the root of the C: drive for data (that's how I interpret what you wrote). At the very least, create a folder called C:\Data and put your data there. Windows can be funny with this.
As for doing things with Excel, if you are using the Report Generation Toolkit (which is standard in LabVIEW 2014 and an add-on in earlier releases), you should not have a problem if Excel isn't already open (unless you don't start with New Report and specify an Excel report, or do some other silly thing like that).
But I do agree with James -- if you want our ideas on where in your code you made a possible error, unless you want guesses (like "the third function from the left"), you'll have to show us the code.
Bob Schor
07-02-2015 12:24 PM
This has to do with the same code I was working with before, all of my posts are connected in trying to solve this problem. I can share the distinct subvi, but it references another vi and another vi and so on.
Both machines have all of the necessary files in the same place (C drive). They both give me this error code when running:
and refer me to this subvi:
I read a help page on static vs. dynamic tasks which confused me more. I'm just confused because this exact same code without the Export data to Excel node works fine.
Thanks for the help guys. I really appreciate it
07-02-2015 12:37 PM
How about this, if you can't provide your code because it uses subVI's with missing block diagrams, etc, can you create a new VI that uses all of the parts of the code that are not functioning? Then hopefully you can recreate the problem and we can help you from there. There just isn't enough information in the code that you've supplied for us to help you much.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
07-02-2015 12:46 PM
Is all of your code in a single disk Folder? Zip up the Folder and attach that!
However, the cause of your problem may be related to the inability of Machine 2 to recognize the hardware connected to Machine 1 (the machine that runs the program OK). DAQmx needs to be able to find and identify the devices to which it connects. This is easy when the LabVIEW machine is also the running machine -- just use MAX or LabVIEW Project to define the Task and set up the configuration. On a "foreign" machine, you have to do a bit more work to both locate the appropriate device and to configure it properly.
Bob Schor
07-02-2015 01:30 PM
Why do you think exporting data to excel is an issue when your error relates to the DAQmx read?
07-02-2015 01:31 PM
I can't share the code due to sensitive information, but if the code is for a drop tower that tests the acceleration and force of impact on different helmets, could the error be a result of having no accelerometer and MEPS pad connected? As if to say LabVIEW looks for those components and they're not there?
07-02-2015 01:36 PM - edited 07-02-2015 01:37 PM
That's possible. But no way for us to know...
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
07-02-2015 01:45 PM