Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

why the old programs can not work?

HI, I used Labview 8.0 to control moving stage via RS232 and it worked well. Yesterday, I installed Labview 8.2 to the computer and I found that the moving stage could not work from then on. Then I uninstalled the new version, however, the old VIs can not work. How to solve the problem? Thank you in advance.
0 Kudos
Message 1 of 7
(3,907 Views)
Attached if my old VI.
0 Kudos
Message 2 of 7
(3,904 Views)

You could not have used 8.0 to write that program. The functions there have been obsolete since about LabVIEW 6.1.

 

Since there is no error reporting, it's impossible to say what is wrong. Replace the Serial Port Init with VISA Configure Serial Port and the Serial Port Write with VISA Write. Use the error in/out connections or turn on automatic error reporting and see what happens.

0 Kudos
Message 3 of 7
(3,888 Views)

Thank you for your reply.

 

The problem is all the device controlled via COM port can not work while others controlled via GPIB or USB work well.

 

Another device controlled via COM shows the error report as attached when i run the vi.

Download All
0 Kudos
Message 4 of 7
(3,884 Views)

Actually, before I installed Labview 8.2, it works well. I do not care which version it is, all I want is to work properly....

0 Kudos
Message 5 of 7
(3,877 Views)

Do the same thing with that VI and use some supported functions. I still don't understand how you could have been using those serial functions. You would have had to go way out the way to find and use them instead of what is supported.

 

And it would appear that the problem is pretty well described. Do you in fact have Com3 on the system and is it listed in MAX? And if you would use the supported functions, you don't have to go through all of the translation from an enum with a value of 2 to get the correct port mapped. A proper VISA Resource Name control is directly wired to a VISA Write and there can be no confusion to what ports are available on the pc. Your method of using the obsolete functions makes it all arbitrary.

0 Kudos
Message 6 of 7
(3,874 Views)

Thank you for your advice.

 

I will try to update the obsolete VIs......

 

 

0 Kudos
Message 7 of 7
(3,863 Views)