From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with Labview 6i and serial port/visa

Hi!

In my application I'm trying to read from the serial port. The problem is,
labview doesn't even let me connect the "visa resource name" to any of the
visa VI's. It always tells me there is a class-conflict, but the classes are
the same!?
Can anybody tell me, if there's something I could be doing wrong or is there
a bug in labview 6i?
I'm using labview 6i in a windows ME environment.

Any help is highly appreciated!

Regards,
Martin Klein
0 Kudos
Message 1 of 4
(2,759 Views)
See if this works. On the VISA resource name control, left click and choose Select VISA Class>I/O Session>Serial Instr.
0 Kudos
Message 2 of 4
(2,759 Views)
atsw wrote:
>
> Hi!
>
> In my application I'm trying to read from the serial port. The problem is,
> labview doesn't even let me connect the "visa resource name" to any of the
> visa VI's. It always tells me there is a class-conflict, but the classes are
> the same!?
> Can anybody tell me, if there's something I could be doing wrong or is there
> a bug in labview 6i?
> I'm using labview 6i in a windows ME environment.
>
> Any help is highly appreciated!
>
> Regards,
> Martin Klein

You might have got a problem with the visa class type. So you should try
to find out which is the present type of the visa class. Right clilck on
the VISA session control, choose the entry 'choose Visa class'. The one
which is marked is your current type - and it might not be the one you

want to have.
But there could be other reasons for your problems to link the VIs
together. For example it is impossile to chain a VISA open with a VISA
easy write. In this case you have to use the standard VISA read and VISA
write.
If your problams have another background you should post your VI example
to the newsgroup. This way it is much easier to find a bug than just
speculating about it.
Oh and if you are trying to change a LV5 VI to a LV6 VI you might have
to delete and recreate the VISA session control. I think there have been
some changes with the new version. There had been several changes with
the VISA open if im right.

cu Kai
0 Kudos
Message 3 of 4
(2,759 Views)
Hi!

>
> You might have got a problem with the visa class type. So you should try
> to find out which is the present type of the visa class. Right clilck on
> the VISA session control, choose the entry 'choose Visa class'. The one
> which is marked is your current type - and it might not be the one you
> want to have.

Yes, the problem is apparenty the visa type. The problem is, i tried all of
'em by now and usualy, it shouldn't be a problem, if you click on the VI and
the tell it to create a control. It should be the right control, but it
never even then wires itself correctly to the VI.

> But there could be other reasons for your problems to link the VIs
> together. For example it is impossile to chain a VISA open with a VISA
> easy write. In this case you have t
o use the standard VISA read and VISA
> write.

I tried all of the VI's by now, but none of 'em work.

> If your problams have another background you should post your VI example
> to the newsgroup. This way it is much easier to find a bug than just
> speculating about it.

It's really just the basic VI's linked together to read from the COM1-port
(visa open, visa read, visa close), because it's meant to be a sub-VI for my
program.
And it can't be a problem of compatiblety (sp?), because i try to create it
anew with labview 6i.
Has anybody maybe had the same problem with labview 6i and windows ME?
The problem didn't seem to exist on my former computer (win95).

Thanx,
Martin Klein
0 Kudos
Message 4 of 4
(2,759 Views)