Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

DLL crashing when function called

hello,
 
why is the attached subvi crash everythime I try to run it? I'm calling a function from a dll and it crashes? I'm trying to communicate with an external device via serial port.
has anyone seen something like this before?
0 Kudos
Message 1 of 7
(3,921 Views)

You've provided neither the subVI, the dll, information on the dll (i.e. .h file, where it came from , etc.). See http://forums.ni.com/ni/board/message?board.id=BreakPoint&message.id=3580. Is the subVI something you wrote? If not, where did it come from?

Message 2 of 7
(3,912 Views)
I apologize for that.
 
Thanks for your speedy response. The dll is for a multichannel analyzer (Pocket MCA 8000a) developed by amptek.
 
the link for the dll information is in the following link
 
I hope you can help with this. I've unsuccessfully tried to gain help with this before.
 
 
0 Kudos
Message 3 of 7
(3,910 Views)
The subVI is still missing. Did you write it? There are a lot of ways that you can crash LabVIEW when using the Call Library Function Node. Incorrect calling convention, parameter mismatch, etc. If you post the subVI, I'll give it a look when I have time - probably not until tomorrow.
Message 4 of 7
(3,903 Views)
I've attached it now. I belive if you double click on icon (subvi) in the first attachment it should open as well.
 
 
0 Kudos
Message 5 of 7
(3,900 Views)

It crashes on my pc as well though I don't have any hardware. The function call looks okay. I'm stumped. Maybe if you posted this question on the LabVIEW forum you would have better luck. There are people there a lot better than I am in using dll's.

p.s. clicking on the subVI in the first attachment would not work. Each VI (and subVI) is a separate file, correct? You can double click on the subVI because the main VI has the path to the subVI on your local system. If you post a main VI with subVIs in the future, do an application distribution and create an llb. This will include all the subVIs in a single file.

0 Kudos
Message 6 of 7
(3,880 Views)
Dennis, thanks for your help.
0 Kudos
Message 7 of 7
(3,873 Views)