LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

MyRIO analog read closing problem

 

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

Download All
0 Kudos
Message 1 of 5
(2,866 Views)

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/

Thanks
uday
Message 2 of 5
(2,832 Views)

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?

Matt J | National Instruments | CLA
Message 3 of 5
(2,825 Views)

@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/

Thanks
uday
0 Kudos
Message 4 of 5
(2,820 Views)

Good catch, I didn't see that at first.

Matt J | National Instruments | CLA
0 Kudos
Message 5 of 5
(2,812 Views)