09-14-2007 10:16 AM
09-14-2007 10:32 AM
First, you are creating a 1D array. You have two strings wired to the Build Array and the ouput is a 1D array. If you had 1D array inputs, then you would by default, have a 2D array output.
The Write to Spreadsheet File in 8.0 can not accept string arrays. There is a very simple modification that can be done to make it accept strings. There are detailed instructions on the block diagram and is a very good exercise for new programmers to do. If you make the mod, be sre to save it in a new location with a new name. However, since you are only writing one row, it makes more sense to use the Array to Spreadsheet String function on the string array and then just use the Write to File. You could also wire the results out of the for loop and do a single write when complete. And, your for loop doesn't make any sense because you don't have anything wired to the N terminal. Do you really mean to use a while loop? You should also move the VISA Close outside of the loop. You do not want to be closing the port with every iteration.
09-14-2007 01:06 PM
09-14-2007 01:27 PM
09-17-2007 10:07 AM
09-17-2007 01:10 PM
09-17-2007 01:33 PM - edited 09-17-2007 01:33 PM
Message Edited by Dennis Knutson on 09-17-2007 12:33 PM