08-20-2016 12:10 PM
Hello World!
While trying to create an analog and Digital readout VI for a MyRIO project, we encountered an interesting problem. There was no data coming trough the measurement data forwarding Notifier.
We tried to look for the problem using the Highlight execution function.
It turns out that the loop runs flawlessly twice, but the third time it always gives an error after the "CloseVI" block.
Adding delays bitween the readout block and the cose block didn't seem to help.
We have no clue what could be the cause behind the problem. Can anybody suggest a solution?
Cheers
Richard
08-21-2016 03:47 AM
Can you try with low level VIs instead of express VIs and check : http://zone.ni.com/reference/en-XX/help/373925A-01/myriohelp/myrio_evi_avi/
08-21-2016 09:56 AM - edited 08-21-2016 09:57 AM
It looks like they are using the low level VIs Udka. I would recommend keeping the open and close outside of the while loop though. Open the connection once before the while loop and Close only after the while loop has finished executing.
I don't have LV in front of me so what does the error actually say?
08-21-2016 10:08 AM
@Jacobson: Notice that the code of myRIO Express VIs uses Smart Open VIs and the image shows usage of Smart Open VI. Hence I suggested to use the vis as suggested in http://zone.ni.com/reference/en-XX/help/373925A-01/myriohelp/myrio_evi_avi/
08-21-2016 11:46 AM
Good catch, I didn't see that at first.