LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error -1073807339 in labview

Solved!
Go to solution

I am a very very new labVIEW user and I have been making a driver for a Fianium SC550 laser and have been having trouble getting my command driver to work properly. The first few times I tried it, it worked fine and I have been able to use PuTTY to operate the laser a bit so I know it is working, but after about five operations the -1073807339 error throws in the read file. I have tried adjusting the byte count a few times with no luck. Is the problem that the buffer needs to be flushed every few runs? if so would the flush in the initialize VI not be enough? and if I need to put another flush at what point in the block diagram should I put it?

Attached are screenshots of the block diagrams I am working with.

Thank you in advance

jumboshr1mp_0-1752085859635.pngjumboshr1mp_1-1752085885837.png

 

(I made the initialize VI with the driver wizard and adjusted it to the best of my ability to what I could find in the manual. I have contacted the company for the updated manual but have not heard anything yet since they were bought by another company) 

0 Kudos
Message 1 of 4
(155 Views)
Solution
Accepted by topic author jumboshr1mp

Hi Jumbo,

 


@jumboshr1mp wrote:

I am a very very new labVIEW user and I have been making a driver for a Fianium SC550 laser and have been having trouble getting my command driver to work properly.


As an experienced user I (strongly) recommend to set the display mode indicator of ALL string constants to visible.

This way you (and everyone else) can determine the string content correctly even though we can only look at an image of code!

 

Did you place a real CR (Carriage Return) char in the string or did you place two chars "\" & "r" in the string?

Your device only knows about the CR!

 

You get the common "TimeOut" error, most probably because your device doesn't respond on incomplete command messages…

 


@jumboshr1mp wrote:

Attached are screenshots of the block diagrams I am working with.


Keep in mind: We cannot edit/run/debug images with LabVIEW. When talking about code you should attach (real) code! (I recommend to downconvert to older LabVIEW versions when you use a very recent version. Most prefer LV2021 or older, I prefer LV2019.)

And we cannot even read the code when your image is scaled in an ugly way and you seem to use very small/blurry fonts…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(144 Views)

Howdy Gerd, and thank you for the reply!

 

Thank you for all the advice, I will make sure to implement it in the future. I was able to get it to work after scrapping my original and working with a new VI altogether. I think the issue was coming from carriage return like you mentioned (originally I had it as the ASCII 13 that should translate to \r but for some reason it did not work). Even though my new version is almost identical to the old one, there were some subtle differences that overall led to an error.

0 Kudos
Message 3 of 4
(103 Views)

Ensure you "close" the visa session at the end of the vi. 

 

0 Kudos
Message 4 of 4
(84 Views)