LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

visa resource name constant confusion

Hello all,
I'm working with LabVIEW 6.0.2 on Windows 2000 service patch 2. I have two machines - one a development workstation, the other a portable. They are not the same machine, but both are fast pentiums running the same OS and LabVIEW version as mentioned above. I set up both of these machines myself out of the box and have had complete control of what was installed.
When I insert a "VISA resource name constant" into the wiring diagram on my development workstation, I can use the manipulation cursor (the hand) to select COM1, COM2, or LPT1. If I do the same thing on the portable computer, I get different choices - the visa resource names ASRL1::INSTR, ASRL2::INSTR, and ASRL10::INSTR. Such constants created on one mac
hine and then exported to the other create errors, although they work on the machine in which they were created.
Why is this happening? Right-clicking on the constants, they have the same properties; under "Select VISA Class" and then "I/O Session", "Instr" is checked. Nothing else is checked except "Size to Text". These properties are the same on each computer.
0 Kudos
Message 1 of 3
(2,585 Views)
If I remember correctly you need run MAX once on the portable computer after
that the ASRL defientions will disappear. I believe that MAX creates the
lookup table that VISA uses to name the ports.
"bilgetea" wrote in message
news:5065000000080000003E2D0000-1002247793000@exchange.ni.com...
> Hello all,
> I'm working with LabVIEW 6.0.2 on Windows 2000 service patch
> 2. I have two machines - one a development workstation, the other a
> portable. They are not the same machine, but both are fast pentiums
> running the same OS and LabVIEW version as mentioned above. I set up
> both of these machines myself out of the box and have had complete
> control of what was installed.
> When I insert a "VISA resource name constant" into the wiring
> diagr
am on my development workstation, I can use the manipulation
> cursor (the hand) to select COM1, COM2, or LPT1. If I do the same
> thing on the portable computer, I get different choices - the visa
> resource names ASRL1::INSTR, ASRL2::INSTR, and ASRL10::INSTR. Such
> constants created on one machine and then exported to the other create
> errors, although they work on the machine in which they were created.
> Why is this happening? Right-clicking on the constants, they
> have the same properties; under "Select VISA Class" and then "I/O
> Session", "Instr" is checked. Nothing else is checked except "Size to
> Text". These properties are the same on each computer.


______________________________________________________________________________
Posted Via Binaries.net = SPEED+RETENTION+COMPLETION = http://www.binaries.net
Message 2 of 3
(2,585 Views)
If MAX is not installed on your machine, you can manually edit the visaconf.ini file (located under c:\VXIpnp). You must set an alias for any of the ports. For example, if you have 2 COM and 1 LPT port:

[ALIASES]
Alias0 = "'LPT1','ASRL10::INSTR'"
Alias1 = "'COM1','ASRL1::INSTR'"
Alias2 = "'COM2','ASRL2::INSTR'"
NumAliases = 3


This is what MAX is doing.
0 Kudos
Message 3 of 3
(2,585 Views)