LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

using Assembly file in CVI

I have legacy system which uses a age old GPIB card.

am in a process of creating a application to communicate with the system.

on research i find there is only .asm (assembly) file is available to communicate with the GPIB card.

can i still be able to use that assembly file in CVI to communicate with that instrument.

 

Thanks in Advance

IVI

0 Kudos
Message 1 of 3
(4,774 Views)

Hello there!

 

Unfortunately, CVI doesn't support inline assembly. This is a related forum post: http://forums.ni.com/t5/LabWindows-CVI/inline-asm-in-CVI-integration-with-Execryptor/td-p/486364

However, you could either use an external compiler to compile your code (Options »  Build Options » Build Process Options » Compiler for Release Configurations) or an external assembler and then link your object files with the CVI code, in order to reuse your legacy code into the new CVI code.

0 Kudos
Message 2 of 3
(4,731 Views)

Except that that assembly code most likely would do direct registry programming. Not a problem (well it sure could be a lot of trouble too buf it was at least possible) in DOS but an absolute no-go in Windows NT (any version since Windows 2000) based operating systems. Here only kernel drivers are allowed to access hardware directly.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 3 of 3
(1,869 Views)