Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Goinf from LabVIEW 6.1 to LabVIEW 7.1 and avoiding error 37

Hello,
 
My name is Dominik and I am doing some LabVIEW programming for this summer. I am new to the program and I am having difficulties upgrading to LabVIEW 7.1. I have some programs that were written with LabVIEW 6.1 and when I run them using 7.1 I get an error 37 message saying the device (a stepper motor controller) was not found.
 
I have looked online for people with similar problems and have tried some of the suggested solutions but none have worked for me. I've tried finding certain files (serial, _sersup, and serpdrv) from the old labVIEW and adding or replacing them but that hasn't worked.
 
I read about something called VISA, which is apparently how LabVIEW 7.1 controls serial ports. So at the moment I am in the midst of updating my code and replacing any serial related VIs with the corresponding VISA ones. I would just like to know whether this is my only option and if there are likely to be any major errors by doing this.
 
Any help is very much appreciated, Thank you in advance,
 
Dominik 
0 Kudos
Message 1 of 2
(3,023 Views)
From what I remember, you shouldn't have to change anything to move from the old serial functions to VISA. When the old serial was dropped, NI provided some wrapper functions of the same name but internally used VISA. One thing that you had to be careful of with the old serial is that Com1 was defined as port 0. So, if you tried to select port 1 (Com2), that would be one one cause for an instrument not being found. Changing to the regular VISA functions, though, would make the code more readable and easier to use. There should not be any major errors. I did it myself many times.
0 Kudos
Message 2 of 2
(3,011 Views)