LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Instrument i/o assistant always generates async methods for read and write!

I am trying to generate VI by instrument i/o assistant, but it generated 'Visa write' and 'Visa read' always in asynchronous mode. Even if I unchecked asynch boxes in MAX->Visa Test Panel.
I need only synchronous mode! And it is very uncovenient after open front panel change  Synchronous I/O Mode from Asynchronous to Synchronous!
0 Kudos
Message 1 of 11
(3,467 Views)
Is this prohibited? If it it true I am so sorry Smiley Happy
Anyway, do you have any solution?
0 Kudos
Message 3 of 11
(3,454 Views)

It's not prohibited but it is considered a bit rude to make multiple posts of the same question instead of being a bit patient.

And sorry, I have no idea if it's possible to change the default behavior of an express VI. I never use them.

0 Kudos
Message 4 of 11
(3,450 Views)
ok. I see.
I could not find any way to change the default behavior.
I'll try get support from local NI.
0 Kudos
Message 5 of 11
(3,444 Views)

There may not be a way to change what code is generated by the express VI.

Why do you need synchronous mode?

0 Kudos
Message 6 of 11
(3,440 Views)

Asynchronous mode does not work for my hardware.

and before Instrument i/o assistant  generate diagram I have possibility to check requests and responses to/from my hardware. in this case everything is fine.

after generate  does not work.

0 Kudos
Message 7 of 11
(3,417 Views)
Hello,

If you right-click on each of the VISA Read and VISA Write in your generated code, you should be able to select Synchronous I/O mode -> Synchronous.

Let me know if this does not solve your issue.  Have a great day.
O. Proulx
National Instruments
www.ni.com/support
0 Kudos
Message 8 of 11
(3,397 Views)


postoroniy_v wrote:

Asynchronous mode does not work for my hardware.

and before Instrument i/o assistant  generate diagram I have possibility to check requests and responses to/from my hardware. in this case everything is fine.

after generate  does not work.



Is it possible you don't have a sufficient amount of wait time between a VISA Write and VISA read to give the instrument time to receive the communication and turn around a response?  Take a look at Basic Serial Read and Write example VI.  If you are using the I/O assistant and checking things manually, it will work because there is no way you can generate a Read too fast.  It still would take a fraction of second to generate the write and do whatever clicking to generate the read.
0 Kudos
Message 9 of 11
(3,388 Views)
Mr. Proulx!
Right clicking is working well :-). But I think it is not best solution for me.
The best way is a choose mode of synchronous I/O before assistant generate block diagram.
 
0 Kudos
Message 10 of 11
(3,380 Views)