Hi All,
My group and I have faced some difficulties while using Labview and Arduino interface with VISA. Attached is the block diagram that we have set up in the Labview.
However, the following error shows up when we run:
Error- 1073807339 occurred at VISA Read in wireless filter current vi.
Possible reasons(s): VISA: (Hex 0xBFFFF0015) Timeout expired before operation completed.
Does anyone have any idea what does this error means? And how to solve this error?
Also, attached is the code that we have put in Arduino. What does the delay (10) in the code means? How does it affect my Labview when it runs?
We hope to get some enlightenment. Thank you.
Hi Joy2793,
I took a quick look at your LabVIEW code and noticed a couple of things quickly.
First, the portion of the code that initializes the serial communication with the Arduino board is within a sequence within a while loop. So every time the while loop restarts, the sequence will begin again and the system will try to reinitialize serial communication with the Arduino board. If this is really what you want to do, it will take substantially longer than intializing once before entering the while loop.
Second, In the code that you uploaded to the Arduino board, the baud rate is 9600, while the baud rate specified in the LabVIEW code is 57600. The baud rates should match.
Suggestion 1: Before trying to implement all of your code from LabVIEW at once, create a vi that successfully communicates with the Arduino board and can do simple things like toggle on and off an LED such as at pin 13 on the Arduino board. Once you have successfully communicated with the board, build on that success and implement the next section of LabVIEW code that is appropriate. Implementing complex code in small pieces is much easier to debug and fix. Once you have something working it is easier to tell when it stops working.
Suggestion 2: Save your revisions so that if something gets fouled up, you can go back to something that works instead of starting over from scratch.
Suggestion 3: During the initial work on your program with Arduino boards, setup controls on the the frontpage of LabVIEW instead of constants imbedded in the LabVIEW code. This will make making minor changes to the settings a little quicker and easier.
Suggestion 4: Setup and use LabVIEW’s error handling sub-vi to help determine where errors occur and how to fix them.
Hope this helps.
Guardsmanblue