LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

missing data with rs232

Solved!
Go to solution

Hi Victor,

 

implement some error handling.

When your device doesn't answer you (need to) just repeat the command and ask again for new values!

 

What else can you do when your external 3rd party device doesn't follow it's own manual? (Well you might ask the support for that special device.)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 11 of 16
(1,672 Views)
Hi GerdW, Thanks for your quick reply. I am not familiar how to utilize error handle. Could you please kindly show me a sample how to to ask device again. Could I loop back to previous subVI? Or I should use case structure to ask device again. Thanks in advance. Best regards, Victor
0 Kudos
Message 12 of 16
(1,664 Views)
Hi GerdW, I added error handler. Does this correct? Best regards, Victor
0 Kudos
Message 13 of 16
(1,661 Views)
Does this what you mean? Thanks Best regards, Victor
0 Kudos
Message 14 of 16
(1,660 Views)
Solution
Accepted by VictorHuang1

Hi Victor,

 

you can wire the error cluster directly to the case structure selector input, no need for this ErrorHandler VI.

And I would NOT wire the previous error as input to the next device call: usually those subVIs do nothing when an error occured upstream…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 15 of 16
(1,655 Views)
Hi GerdW, Thanks for your great suggestion. I put error handling. I just ran 100,000 times. I have nice and smooth data. I highly appreciate your wonderful help. I learned a lot. It make my life much easier. wish you the best Best regards, Victor
0 Kudos
Message 16 of 16
(1,636 Views)