LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Excel to LabVIEW

I can't run both of them at the same time. There will always be an error. And i cant seem to solve it. Does anyone knows how to solve?

 

0 Kudos
Message 1 of 12
(3,669 Views)

Can you post your vi in lower version so that I can open it.

Also, when you are saying cannot run both at the same time do you mean you can not access two excel files at the same time?

 

0 Kudos
Message 2 of 12
(3,651 Views)

Share your Excel Driver VI

 

Not able to View your LOW LEVEL VI's

I Guess you are holding the reference of the excel file in shift reg and calling different excel files without closing the session, it wont properly. try to Make the driver in such a way that it can open two work books at a time.

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 3 of 12
(3,645 Views)

You are using "Excel" functions (SV Open Excel, SV Open XLS, SV Open Worksheet, SV Cells) that are not part of NI LabVIEW.  Are these possibly part of a third-party add-on?  If so, you need to ask the third party what is going on.  If these are routines that you wrote to do low-level Excel processing using NI's Report Generation Toolkit, then post them, as well, and we can try to figure it out.

 

Bob Schor

0 Kudos
Message 4 of 12
(3,620 Views)

I saw someone use it on Youtube and i downloaded his program. the difference is in his program it was only 1 excel file going in. but i need 2 of it so i thought why not just duplicate the program but change the excel file going in. 

https://www.youtube.com/watch?v=qIWcMPuDvBU&t=213s

0 Kudos
Message 5 of 12
(3,564 Views)

I am guessing that the sub-vi's that were not included use the LV Excel Report Generation Toolkit.

 

The toolkit uses ActiveX to automate Excel and only on instance of ActiveX can control Excel at a time.

 

You need to make your program more sequential in the way it access Excel.

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 6 of 12
(3,551 Views)

Here are the sub VI's and i dont understand what u mean

0 Kudos
Message 7 of 12
(3,532 Views)

Use SV Open XL once and use the Output to Open different workbook (SV Open XLS) and close the workbook and related reference once read.

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 8 of 12
(3,518 Views)

@PalanivelThiruvenkadam wrote:

Use SV Open XL once and use the Output to Open different workbook (SV Open XLS) and close the workbook and related reference once read.


problem is i need to open two excel at the same time. but the block diagram i showed above can only open one at a time

 

0 Kudos
Message 9 of 12
(3,511 Views)

Excel is an application (One instance will support multiple workbooks), Your two files are two workbooks can be opened together in one excel application.

 

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 10 of 12
(3,508 Views)