LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

rt, cRIO, 9401, 9263

I'm having trouble with getting an analog output and a digital output on the same vi. I've separated both into individual vis and they work fine however when I combine both only one works, so I can either output analog or digital but not both together any suggestions as to what I may be doing wrong? I've attached my host vi this is just my test vi to try to understand the equipment. Thank you in advance
0 Kudos
Message 1 of 5
(3,684 Views)
Hi miguel23,

I hope you're doing well.  Could you elaborate a bit on what actually happens when the VI doesn't work?  It may also be helpful to include all of your Project Files, as it may have something to do with how the FPGA VI or Project architecture is set up.  Lastly, the version of LabVIEW FPGA and NI-RIO driver you are using may help as well.  Fill us in on a bit more detail, and we'll be glad to continue helping you with this.  Thanks!

Thaison V
Applications Engineer
National Instruments

0 Kudos
Message 2 of 5
(3,668 Views)

Hi Thaison,

Here are all the details:

CompactRIO 9102 with a 9004 controller.

I'm using labVIEW 8.0

NI-RIO 2.0

I deleted my FPGA VI and started a new one from scratch and that solved the problem. I'm not sure exactly what happend the vi is exactly the same however it works fine now. I've attached the FPGA VI,

0 Kudos
Message 3 of 5
(3,657 Views)
Miguel,

I took at quick look at your host VI and it appears you are not waiting until the calibration constants are ready.  This could potentially cause the behavior you describe. If you read them before they're ready, you'll get all 0's which will then make any future reading you get 0 as well.  Take a look at the analog input example in the example finder to see how to wait for the constants to become available.

--Paul Mandeltort
Automotive and Industrial Communications Product Marketing
0 Kudos
Message 4 of 5
(3,636 Views)

Paul,

Thank you for the advice, I will put a delay to ensure that my calibration is complete.

0 Kudos
Message 5 of 5
(3,628 Views)