LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Driver problems Visa

What VISA resource name string are you using?

I suspect you might be using an ASRL::INSTR resource name rather than USB::INSTR

 

And your reporting is confusing:

 

First you say every second command works.

Now you say it only works if you first open NI Max and send a command and then it works always in LabVIEW.

 

Which of the two is it?

Rolf Kalbermatter
My Blog
0 Kudos
Message 11 of 16
(388 Views)

Looking at the code I see this:

MaSta_0-1677144654782.png

Solution: set the string constant to "\ Code display", then remove the leading backslash and set the type of the cast to U8, so 10 can come out, the desired value of \n.

0 Kudos
Message 12 of 16
(377 Views)

I can't look at the VI itself as I don't have 2021 installed anywhere currently. But if that is in there, that certainly would explain a possible problem.

Rolf Kalbermatter
My Blog
0 Kudos
Message 13 of 16
(367 Views)

For Rolf:

MaSta_0-1677153689919.png

 

0 Kudos
Message 14 of 16
(356 Views)

I use this: USB0::0x1AB1::0x0E11::DL3A200200113::INSTR

Also the checmatic above was only a try

In the moment I use the attached one

And yes, it is confusing sometimes I have to start it twice after I have done it in NI Max

and sometimes it works for every meassage.

If it works then it is also possible to send the meassage without \n or ;

I tried this several times and there is still no solution 

Every time if I think now it is solved then the next day is the same problem

 

Attache dis the file that I use

0 Kudos
Message 15 of 16
(346 Views)

When having issues with USB, the first thing I do is go into the Device Manager and go through all of the USB hubs to ensure the "power saving feature" of letting Windows turn off the hub for whatever reason is unchecked.  I've seen too many USB devices get reset because Windows randomly decided to turn off that hub.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 16 of 16
(338 Views)