11-14-2011 01:31 PM
Hi Adam,
What hardware are you using with this program? The block diagram references a few cDAQ modules, I'd like to try simulating them but need to know what you've got. As far as the error you're seeing, double-check your Export Waveforms to Spreadsheet File VI and make sure you've got the path set correctly. When you run this program does it create the spreadsheet file or does it write to a file that is already there?
Tim W.
Applications Engineering
National Instruments
11-14-2011 09:26 PM
The only hardware I'm using is the USB-6009 DAQ. The cDAQ used for the counter is just a simulated cDAQ-9178 from Measurement and Automation Explorer. To answer your second question, the program creates a new spreadsheet file at the path that you specify. I'll attach the original files I was working with before I was trying to add this voltage generation functionality just so you'll have a better feel of what I'm working with. (Although incidentally, I can't get the program to write the data to the spreadsheet file at the moment. However, the program that I've attached was working before today so I think it may just be a problem with my computer settings.)
Thanks, Adam
11-15-2011 02:13 PM
I think the issue may be that this program (referring to the d5 revision from a couple posts earlier) doesn't create a new file, but instead expects there to be a dummy file already there that gets the data written in to it. A workaround would be to create a .txt file with the correct name in the specified path (or get rid of the specified path and use a dialog). Instead of throwing an error it will ask you if you want to replace the file. I tried it out and this appears to work (it puts data in a tab delimited, Excel-openable format in the already made txt file).
Tim W.
Applications Engineering
National Instruments