Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem on using VB to call LabVIEW dll.

Hi,

I want to control a PCI-4451 card for generating two tones signal. However, when I run the code in VB to call the LabVIEW created dll, a "Out of memory" window prompt up. Attached are the VB program and the VI which I used to generate dll file. Please give me any comments. Thanks.

Best regards
Bill
0 Kudos
Message 1 of 4
(6,174 Views)
When you create the dll using application builder, make sure to specify the standard calling convention instead of the C calling convention. VB supports only the std convention. I tried it and didnt get the error with your app.

Hope this helps

Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 2 of 4
(6,174 Views)
Hi,

Thanks for your help first. I can also run the VB program properly but the card don't generate the signal. I don't know which process I did wrongly. I can use the VI to generate signal but not work after generating dll called by VB.

Bill
0 Kudos
Message 3 of 4
(6,174 Views)
You might want to make sure you're getting correct data from the dll. Just as a test, you might want to have the dll write the data out to a file, and then compare the written output with what you are recieving from the dll from VB. The card will output whatever data you provide it, so the best thing is to make sure you are handling the data correctly thru VB.

Bilal
Bilal Durrani
NI
0 Kudos
Message 4 of 4
(6,174 Views)