Getting error 3001 when using Excel Easy Table.vi

When making a call to Excel Easy Table.vi (Report Generation Toolkit) I get a 3001 error.
I have attached an example VI to demonstrate the problem.  Please run "Add Table Example.vi" in the attached zip.  This sample program is made up of VIs from a larger program, so it made more sense to create a sample program and only include the required VIs than include the entire large program.  So that is why the Report class wire comes from a functional global VI.
What is a bit strange is that Excel Easy Table is used to write a summary table at the top of the spreadsheet successfully in "Initialize Report.vi."  It is only when I then make the additional call to Excel Easy Table in Add Table Example that I get the 3001 error.  If you have any ideas why I'm getting the 3001 error, please let me know.
I'm using LabVIEW 8.6 and RGTK 1.1.4.
Thanks,
Joel
Solved!
Go to Solution.
Attachments:
Add Table Example.zip ‏113 KB

Hey Joel,
I figured out why this error was occuring. After comparing how you were adding the columns in the Report Write Info Table.vi in the Initialize Report.vi to just using the Excel Easy table VI, you hadn't provided a reference to which worksheet it needed to write the data to. I changed your code to include this reference and it worked perfectly without any errors. I have attached a .zip file with those changes so you can look at it.
FYI: Don't try to use this code as a direct replacement with yours. In order for me to reproduce the error, I had to modify several VIs in order to get it to run.
I hope this information helps you with it.
Jim St
National Instruments
RF Product Support Engineer
Attachments:
Add Table Example.zip ‏146 KB

Similar Messages

  • Exporting to excel..error in using excel easy table.vi

    Hi...
    Am using excel easy table.vi to export my data to excel.....it contains a date field...When exported to excel,the date and month is getting interchenged.
    ie,05/03/2008 is converted as 03/05/2008...What is the work around for this?
    i read in one of the posts that  have to format the date filed using  Excel Set cell Format.vi..I tried wth that ,but so far cudnt fix...i tried wth using @ in the number format..then i was getting a string instead of datetime.When used%d/%m/%Y..then i was getting error.
    If i can use that,how do i.
    My datetime filed is the first column in the 2D array.
    Thanks in advance...

    Hi,
    Excel handles date and time as a floating point decimal representation.  The integral value (to the left of the decimal) represents the number of days since the beginning of the 20th century.  The decimal value represents the time of day from midnight in seconds divided by 86,400 (i.e. 6:00:00PM = 0.75). 
    Excel chooses the default regional date format (i.e. MM/DD/YYYY, DD/MM/YYYY, etc.) based on your current location setting.  You can manually change the format of a particular cell by right clicking on any cell and selecting 'Format Cells', then selecting 'Date', and finally changing the 'Locale (location)' to the desired format.  This allows you to format the date however you'd like.
    Unfortunately, Microsoft Excel does not have a text function to programatically change the 'Locale (location)' setting for a cell.  This means that if you need to send a date through the Report Generation Toolkit that is in a format different from the current location setting, you will need to convert the date representation to text.  This will change the way Excel handles the cell data from the date format mentioned above to a simple text sting.  For example, if you're trying to convert the date '12/24/2008' in cell A1 into '24/12/2008', you can use the following code:
    =TEXT(A1,"dd/mm/yyyy")
    If you try to keep the cell formatted as a date, Excel will interpret '24' as a month and '12' as a date, which results in an incorrect date.  There is no easy way to programatically convert this text string back into a date without manually changing the date format of the cell.
    Credit: Ganesh Ganeshkumar
    Regards, Kate

  • My Application gets Error 37 when using Serial Port VIs.

    My Application works fine developed with LV 6.1. Then I updated to LV 7.1 and now the Executable of my application gets error 37 when using the old serial port functions. The "serpdrv" file is located in the application directory and is from 02/2002. The application runs well in the development environment after I placed the "serpdrv" file in the LabView directory. I tried to put a line with "serialDevices=..." in the .ini-file of my application but this did not cause an improvement. I also tried to rebuild the EXE with this line in the "labview.ini" file but nothing changes.
    Does anybody have another idea ?
    Many thanks for help
    Thomas

    >Did you actually replace the old serial functions that come with 7.1 with the functions from 6.1?
    Yes. E.g. "open serial driver.vi" uses "open device" with "serpdrv" as device string.
    I had the same problem running my application as VI´s. After the copy of serpdrv into the LV 7.1 directory everything works fine.
    I don´t understand why the application running as a .exe doesn´t find the serpdrv when it is in the same directory....
    Nevertheless many thanks for your answer
    Thomas

  • Error 1003 when using excel reprt, but not Word

    I am trying to use the MS Office Report vi to send my data to an Excel. I am using Labview 7.1. 
    When I place the VI on the block diagram I get the following message: (Also attached)
    Error 1003 occurred at Open VI Reference in ex_RGT_Get
    Bookmarks and named cells.vi->Configure MS Office
    Report.vi->Confugure MS Office Report.vi.ProxyCaller
    Possible Reason(s):
    The VI is not executable. (OK Dialog box)
    If I click OK, the " Configure MS Office Report pop up window is mostly grayed out . If I select "Basic report for Word" I have no error message.
    I am using Excell 2003.  The problem is with a laptop computer I am using. I do not see this problem with a desktop computer. 
    Thanks,
    Bill
    Attachments:
    MS Report 8-24.doc ‏80 KB

    Hello Bill,
    You are not trying to build an executable, just use the Express VI in a regular development VI, right?  If so, this link describes the troubleshooting steps to get rid of this error.
    Regards,
    Clint M
    National Instruments

  • Getting error message when passing data into table: Primary Key

    Getting an error in a process that is feeding the invoice creation in SAP, violation of PRIMARY KEY constraint 'INV1_Primary', cannot insert duplicate key in object 'INV1'. I assume this is due to duplicate key values being passed into the table INV1, however I get this error even when I am passing unique record combinations of the key fields docentry and linenum. This is on 2005A SP01.
    Thanks

    Hi Peter,
    Could you provide a code sample of the routine that is causing the error please?
    It sounds like a data corruption issue (though it could possibly be a bug in the DI API). I recommend you speak to SAP support. There is a utility that can validate the document numbering but you'll need to speak to SAP support before you run this as it can have other negative effects, depending on the state of your data. They may ask for a copy of your database to test.
    Kind Regards,
    Owen

  • Facebook V 3.3.0.11 newsfeed only loads when Wi-Fi connection active - get error 2001 when using cellular connection

    There are a number of very recent posts regarding a Facebook error "Facebook returned an unknown error 2001" when trying to dispaly or refresh the news feed.
    For about the past 18 hours I have been experiencing the same issue; other Facebook functions (view own profile, view friends list, view photos, ...) work fine.
    What I have noticed, though, is that FB functions as expected (i.e. news feed refreshes normally) when using a Wi-Fi connection. As soon as I disconnect from Wi-Fi and connect via a mobile connection, the problem returns.
    My wife's identical phone has also been experincing this problem since yesterday.
    Both phones are Blackberry 9700 Bold, with OS 6.0 bundle1879.
    My location is Cape Town, South Africa.

    When you get to a wifi location it should work. Hopefully it will be fixed soon.
    1. Please thank those who help you by clicking the "Like" button at the bottom of the post that helped you.
    2. If your issue has been solved, please resolve it by marking the post "Solution?" which solved it for you!

  • Getting error message when using 'wlappc' task

    When using the 'wlappc' custom ANT task I am getting following error message
    D:\Working\Build\LocalBuild.xml:122: java.util.MissingResourceException: Can't
    f
    ind bundle for base name weblogic.i18n.J2EELogLocalizer, locale en_US
    Any help what I need to do to get rid of this error?
    regards
    Abanindra
    [ErrorLog.txt]

    Download:
    Microsoft Office 2010: Primary Interop Assemblies Redistributable
    How to: Add or Remove References By Using the Add Reference Dialog Box  /  How to:
    Add and Remove References in Visual Studio (C#)
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Why do I get error 1031 when using vi server to call an exported vi?

    I'm trying to call a vi that is inside an exe using vi server.
    For some reason I keep getting error 1031 "VI Reference type does not match VI connector pane" from the open vi reference primitive.
    However:
    If I statically link to the vi using the same type specifier, it works just fine.
    I've attach 2 code capture screen shots.  One shows the original code that generates the 1031 error.  The other shows calling it directly locally and that code executes with no problem.
    Oh and also, if I don't connect the type input I can open a reference to the remote vi and interact with it.
    I've also attached a code capture screen shot as well.
    So it appears that the vi server connection to the exe is not transferring the VI reference type correctly??  Has anyone had any experience with this?
    I have no idea why this is happening.  Anyone have any thoughts? 
    I'm using LV2009SP1 by the way.
    Attachments:
    doesnt work.png ‏13 KB
    Works.png ‏13 KB
    Works2.png ‏13 KB

    When you are trying to call into an executable, LabVIEW will not necessarily know what type it is. You are getting this error because you cannot use a strict type definition in certain cases, this being one of them. Some cases will require you to use a strict type definition due to their architecture but again, due to the structure of your applications, you can't use the strict type definition. Your other two examples use the correct passive types and therefore do not get the error. Hope this answers your questions!
    Mychal F
    Applications Engineer
    National Instruments

  • Why do I get error "-1074388952" when using CANopen?

    Hi there,
    I built a VI to communicate over a PXI-8461 with a servo controller from SEW-Eurodrive. I use the LV CANopen Library, please see the attached VI! When starting my application, I use the init case, during runtime I change the settings of the servo controller with the "write" case and finally in the "stop" case I close and kill all objects I previously created
    There is no communication from the controller to the PC, I only send a PDO to the controller. Although there is no "read"-function in the VI (necessary), after some time I get the mentioned error, please see the other attachment! After confirming the error dialog with "continue" or "stop", I'm no longer able to communicate with the servo controller. How can I prevent my application from hanging? And is it possible to reset the CAN-Card from within my LV 8.5 application? Currently I have to reboot the whole PC to do that, otherwise no new communication is possible...
    To say it with the Scorpions: "Is there anybody there who feel's that vibration?"
    Does anybody have an idea?
    Thanks in advance for any help
    Regards
    Achim
    Attachments:
    error.PNG ‏12 KB
    SEW_EncoderDriveControl.vi ‏58 KB

    Hi Dirk,
    thanks for the answer...although it really not gets me any further.
    I already use a PXI-8461 Series 2 CAN-Board! What do you mean when you say "high busload"? I have to communicate with 500kBaud because the SEW controller expects this rate. I only transmit new parameters in "single shot mode", meaning I fire new values (8 bytes) event-based (button push). As I mentioned I do not transmit any data from the controller to my LV application.
    Sometimes it's also not possible to reset the board in the MAX, then there reamains a exclamation mark on yellow background on the board icon.
    I still receive another error message (something like "PDO write object does not exist") when I changed nothing for quite some time and then try to transmit new parameters on an object I successfully used several times before. Sometimes everything works fine until I try to stop communication...then sometimes a error message pops up saying something similar, like "Synch Object does not exist". It must have been existed, because if not, the SEW controller would not have been working because it expects this cyclic synch.
    Do you (or anyone else) have a clue?
    I found the ncReset.vi in the NI-CAN library and I am going to test it ASAP. Is there any difference in the use between "your" method with the (ncAction.vi + Reset) and the direct use of ncReset.vi? I'm going to code a automatic reset with that function in the case that one of the mentioned errors occurs. Do you think it's possible to automatically reset and then reinitialize my CANopen session? Or will I get some other strange errors?
    Hoping for a helpful answer:
    Achim
    Ahhh...before I forget it:
    Seasons Greetings! Have a cheerful and happy christmas time!

  • Getting error #1034 when using mx:SWFLoader

    I have a requirement where I need to load another swf file into an area in a layout.
    I have the following mxml:
                <mx:Canvas  width="100%" height="200" borderStyle="solid">
                    <mx:Label text="This is text in Zone 4 prime "/>
                    <mx:SWFLoader id="loader4" source="http://myhost/test/Test2..do"/>
                </mx:Canvas>
    When it loads I get a dialog with the Error #1034 in FireFox.
    If I use this same "http://myhost/test/Test2.page" url in another html page with the html object/embed tags the swf is served and loaded just fine.Is there something special that the SWFLoader expects from the response?   I've inspected the response from a direct swf file ref (put source="test.swf" with a simple swf I created) in the mx:SWFLoader source attribute and they appear to be the same. I've set the content type and  content length headers for the Test2.do whcih is served from a struts application.
    If there are way to stream a swf via the source attibute on the mx:SWFLoader tag that's not a direct .swf file reference?
    Thanks,
    Miro

    Hi dodderob,
    Can you try to remove all other cards from the cahssis except for the 4110?  Also, do you have any exclamation points in the Windows Device Manager?  If yes, do you have an error code wtih the device?  Also, what version of DC Power do you have installed (this can be found in the software tab of MAX)?
    Best,
    Adam
    Academic Product Manager
    National Intruments

  • Odd error (-3001) when using Software Update since Leopard upgrade

    Whenever I try to install anything that shows up in Software Update now, I get this error:
    You do not have appropriate access privileges.
    A networking error has occurred: Cannot open file (-3001). Make sure you can connect to the Internet, then try again.
    However, I AM connected to the Internet, and I AM an Admin. I should have no problems doing this, and the issue only tarted when I installed Leopard. Anyone know of a fix?

    Anyone have any ideas about this one? Still can't do a software update.

  • All of a sudden I get error message when using Mail " Sender address rejected: not owned by user dgill42041"

    I've been using Mail for years with no problems, accessing my AOL accounts.  Today I can receive mail but not send.  I get the above error message and it says that my mailboxes are "off line". 

    Mail troubleshooting - Yosemite
    What does Mail/Window/Connection Doctor Show? If the server is red, select it and look at the Show Details box.
    Troubleshooting sending and receiving email messages
    Troubleshooting sending email messages
    SMTP servers keep going offline

  • I get "Error: DTDParse:" when using JAXB

    I get the error:
    Error: DTDParse: External parameter entity "%(null);"
    when trying to run:
    java -jar C:\jdk1.3.1_01\jre\lib\ext\jaxb-xjc-1.0-ea.jar -roots rxl_2_2.dtd rxl.xjs
    I don't know what the error means. Can anyone help?

    I took the command from one of the other posts. it appears that the "-roots" part was causing the error. I took this out and it works fine now.

  • Why do I get error "-1074388885" when using CANopen in PXI RT?

    Dear all,
    I built a test program (reading only the temprature of a motor) to use it later to exchange data between NI- PXI RT  and a
    LUST servo controller, which are locally connected with CAN network. Please see the attached
    VI. After
    run the program , a communication error with CAN network is happend.
    The error code is (-1074388885; CANopen NMT send.vi) after that the
    RT-Target give an error a message:
     (impossible to connect to target Real-time)
    and then switched off. To connect it again, switched off/on of power supply has to be done.
    I test the CAN connection between them with MAX, the test results give no problems.
    Normally this test program was before running  correct between PC
    (with NI CAN-card) and Lust servo motor.
    Does anybody have a solution?
    Regards
    al_ibr
    Attachments:
    main_target.vi ‏70 KB

    Hi Yann, Many thanks for your reply. The LV version is 8.6 and MAX is 4.5. The PXI RT has the following data: NI PXI chassis: 1031 NI PXI embedded controller: 8104NI PXI CAN card: 8461 The servo controller (Lust CDD3000) has a CAN card LUST CM CANI (see attached documentation). The equivalent program in PC with NI PCI CAN/2, which tests the data exchange with this servo controller, is attached (works without any problem). I attached the project file for the test program in PXI RT. Regards al_ibr     
    Attachments:
    test_only_CAN_RT.zip ‏62 KB
    test_progr_CAN_non_RT.vi ‏19 KB
    CAN_CMCAN1_usermanual_052000_EN.pdf ‏1179 KB

  • I get error -1074388956 when using CAN. This error code is undefined. what could it be? I am using NI-CAN 2.1.2 on WinXP SP1.

    I've tried to search for it but come up with nothing.

    You can convert this decimal code to HEX Code. If you do so, the HEX code looks like BFF62024. This Code means the Board handle is invalid. This could happen if you use not a valid handle because of race conditions within variables or close functions within the code.
    Please check the handles within your code.

Maybe you are looking for

  • External keyboard and mouse not working in closed clamshell mode

    Hi - can someone help with this strange issue.  Yesterday in closed clamshall everything was working fine. Today I cannot use my external keyboard and mouse.  Note the external monitor does show the screen (after the blue flicker etc), but keyboard a

  • Standard Portal Reports Customization

    Hi, We have a scenario where we need to move KM content and PCD objects between two portals. I am moving the Content through ICE and objects through Transport export/import. 1. Are there any standard portal tools to check the consistency of the objec

  • Installation of upgrade

    I have DW MX 2004, and am now going to DW CS3. I really am a novice user doing my company's own sites (ie: http://www.silver100.com, and also http://www.silverfacts.com). Do I need to, or is it cleaner to, uninstall 2004 first? Will CS3 install total

  • Difference between Technical & Business Systems??

    Hello Experts,                     What are the differences between Technical System & Business System in SAP PI??Why we need to create Technical & Business Systems??

  • Result list from User exit

    I need to produce an output listing from a user exit. It's a lockbox process where I'm passed control at a point in the process. The customer would like me to produce a log listing from the user exit rather than storing the data in a DB table. Can so