LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA Write error: -1073807360

Greetings,

 

I am new to LabVIEW.

 

I am trying to interface Arbitrary Waveform Generator with LabVIEW. I have been able to generate all standard waveforms without any error. Now the requirement of my experimentation is that after certain time interval I proceed to next value of frequency, step by step, and take readings. I have used a loop for the same.

 

Now when I am running my code in SLOW mode of Highlight execution, no error is occurring, everything is fine. But when I am running the VI without Highlight execution, it is generation an Error:VISA Write error: -1073807360 OF the Output node(LV driver of the Instrument). 

 

For slow execution no problem is there, but error starts to appear while I use Fast executions.

 

Thus, I put wait timers(5000ms) inside and outside (2000ms) my loop, and also in the Output node (LV driver of the Instrument), but all in vain.

 

I am not able to figure out what to do? 

0 Kudos
Message 1 of 7
(532 Views)

Sorry to bother, 

I have put a time delay in between VISA WRite and its one of the Data Input for 3s. It is working fine now.

Could there had been another solution or approach which I should be taking care of?

0 Kudos
Message 2 of 7
(524 Views)

Upload the code if you want help. We can not even guess what you have done. I hope you already googled but if not, my guess is that the answer is in this article: https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P6USSA0&l=sv-SE.

.

 

 

Certified LabVIEW Architect
0 Kudos
Message 3 of 7
(504 Views)

Thank you so much for your reply, 

 

I read that article and tried those presented solutions also, but it did not work. Later I put a time delay VI in an Output subVI (LV driver of the Instrument) which rectified the error. 

As of now the problem had been solved so I guess I can work ahead with it. 

 

Thanks again 🙂

0 Kudos
Message 4 of 7
(490 Views)

@A.S.H wrote:

Thank you so much for your reply, 

 

I read that article and tried those presented solutions also, but it did not work. Later I put a time delay VI in an Output subVI (LV driver of the Instrument) which rectified the error. 

As of now the problem had been solved so I guess I can work ahead with it. 


I wouldn't call it solved. Quite likely this is just a band aid that for some more or less esoteric reasons seems to work for you. Delays in communication drivers to devices are NEVER a proper fix but at best a workable hack.

 

But without seeing your code and some documentation about the device you try to talk to, we can not do anything more for you.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 5 of 7
(471 Views)

@A.S.H wrote:

Sorry to bother, 

I have put a time delay in between VISA WRite and its one of the Data Input for 3s. It is working fine now.

Could there had been another solution or approach which I should be taking care of?


Repeat after me: "If you need to put hard coded waits to get your communications to work, you probably don't understand how to communicate with the instrument."  Manufacturers (almost) always provide a way to communicate with your instrument in as efficiently as possible.

 

Think of it this way.  So you keep increasing the wait time until you find a wait time that enables communication without error.  Usually it happens in less than one second but occasionally it can take up to five seconds.  So you decide you need to wait for six seconds to make sure you've waited long enough.  Now you're usually waiting five extra seconds with each communications.  Manufacturers (usually) have a way of telling you when the data is ready so you wait exactly as long as is needed to retrieve the data; no more, no less.

 

What you have described is likely a workaround not a solution.  I would unmark it as the solution until we can look at the code to determine whether or not this is good code.  It smells.  A lot.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 6 of 7
(454 Views)

Greetings, 

 

Yes, I do understand that. Hereby with this message, I am attaching my LabVIEW VI. I am trying to communicate to GW Instek MFG 2260MRA, Multichannel Arbitrary function generator.

 

Honestly saying, I actually don't know properly how to make efficient VIs. 

 

In this VI, I am trying to command the device to generate standard waveforms, alongwith frequency steps to be set as per our experimentation.

 

Please let me know, if you need some other files to be attached.

 

Thank you

0 Kudos
Message 7 of 7
(444 Views)