LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VB code

Solved!
Go to solution
broken.PNG
Message 11 of 24
(2,307 Views)

Hi Alex,

 

Post that VI here so that somebody does a conversion for you. Smiley Happy

 

 

Sorry, very faaast internet connection. Smiley Sad

Message Edited by parthabe on 10-29-2009 03:36 AM
- Partha ( CLD until Oct 2027 🙂 )
Message 12 of 24
(2,306 Views)
I tried to use the 'add' function inside, but got error as the attached screenshot.
0 Kudos
Message 13 of 24
(2,298 Views)

Hi,

 

Sorry to butt in, chaps. Maybe there is a more straight forward way of doing what you want to do using excel activex automation.

 

Take a look at this old post of mine. It show a way of calling a VBA procedure using arguments.

 

E.g. You could provide and source file path and destination file path to the macro procedure as arguments. After that you can read the destination file back into labview.

 

Perhaps if you posted the excel sheet with the macro we might be able to help you better with this technique.

 

Would this work for you?

 

cheers

 

David

Message Edited by David Crawford on 10-29-2009 09:03 AM
0 Kudos
Message 14 of 24
(2,293 Views)

Hi,

 

load a LV7.1 version of the vi from here. Seems to be more stable...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 15 of 24
(2,283 Views)

Some subvi missing when open the sample.

 

Also I may want to use dll, since it can direclty get data back.

0 Kudos
Message 16 of 24
(2,277 Views)

OK, that was explained in the old post.

 

To get the missing VIs

 

Open up NI Example Finder and load Excel Macro Example.vi into memory first.

 

After that you can open my example.

 

Can you post an example .trc file too, please? Rename it to .dat or another extension that will let you post the file to the forum.

0 Kudos
Message 17 of 24
(2,267 Views)

Thanks, but finally there will be no excel involved, so still want to use the dll.

 

The file is over 10M, too big.

0 Kudos
Message 18 of 24
(2,242 Views)

OK, cool. Good luck!

0 Kudos
Message 19 of 24
(2,239 Views)

I tried to recompile and registered the dll, but when run the vi, still got error as the attached screen.

 

Any suggestion?

0 Kudos
Message 20 of 24
(2,222 Views)