07-15-2021 05:52 PM
Hi!
I have same error code. I'm very beginner in LabVIEW and i'm trying to connect with very old device. In my code i try to read data from machine and i want to keep/send it in queue.
Maybe my program is completely wrong idk
Could you please help me ? Thank you.
Best regards.
Here is my error:
Solved! Go to Solution.
07-16-2021 12:56 AM
Hi cosfen,
@cosfen wrote:
Could you please help me ?
Here is my error:
No, we cannot help: you forgot to provide any substantial information!
When you want help with your VI then you should attach your VI! We cannot run/edit/debug images with LabVIEW!
You also forgot to mention which kind of device you want to communicate with…
07-16-2021 04:42 AM
Hi GerdW,
I'm really sorry. I try to connect with Millitron 1240.
I fixed the VISA error but now queue giving error with same code
Best regards.
Here is my VI:
07-16-2021 04:56 AM
Hi,
I can't understand. I ran it again my VI there is no error code.
But i still have a problem. VI isn't work the way i planned.
Best regards.
07-16-2021 05:04 AM - edited 07-16-2021 05:06 AM
Hi cosfen,
@cosfen wrote:
I try to connect with Millitron 1240.
I fixed the VISA error but now queue giving error with same code
Where did you fix any errors?
Errors I found in the VI:
You really should take the LabVIEW basics tutorials…
07-16-2021 05:19 AM
Yes you're right. I'm going to take basic labVIEW tutorial all over again. This is too complicated for me. Do you think i can create simple VI to save the data read over VISA (by using queue) Thank you and i'm really sorry. I'm very beginner right now.
Best regards
07-16-2021 05:27 AM - edited 07-16-2021 05:27 AM
Hi cosfen,
@cosfen wrote:
Do you think i can create simple VI to save the data read over VISA (by using queue)
Just a suggestion:
It shows the basic approach, but misses some constants and other stuff…
Again: what's the purpose of that queue? Why do you insist on using a queue?
07-16-2021 05:40 AM
Hi,
Thank you for your help.
Actually, I was trying to create this VI based on the data I read from VISA.
Best regards.
07-16-2021 06:07 AM
The way you have it set up seems a bit backwards to me.
Producer just "produces" commands depending on user input and then you have a consumer that actually produces data you want and you put that data in another queue, which never actually returns any data, you just flush it.
If you intend on using queues for this, then the producer is usually the one to put data in the queue and consumer takes that data and does whatever with it (but just flushing it seems counterproductive, you should probably write it to a file or something, as GerdW suggested)
07-16-2021 06:17 AM
Thank you