05-20-2025 02:09 AM
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?
05-20-2025 02:27 AM
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?
05-20-2025 03:18 AM
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.
.
05-20-2025 04:48 AM
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 🙂
05-20-2025 05:53 AM
@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.
05-20-2025 11:11 AM - edited 05-20-2025 11:15 AM
@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.
05-20-2025 12:16 PM
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