Academic Hardware Products (myDAQ, myRIO)

cancel
Showing results for 
Search instead for 
Did you mean: 

Programming the DAC on myRIO

I am trying to use the myRIO 1900 to generate manipulateable Voltage from one of the analog outs. Basically, I want to vary the voltage on the DAC pin from 0v to 1.2V. Unfortunately, I have not been successful so far, I early on posted the question here which tells of the solenoid valve I am trying to drive with this DAC programming. If anyone has any helpful contribution, I will be glad. One thing that I am not so clear about is if the myRIO has an SPI master and servant altogether in the board or if it is a master only. The DAC specification pages on the manual are really unclear about this. 

Any help would be appreciated.

Thank you!

0 Kudos
Message 1 of 3
(5,625 Views)

Hello Lexicondi,

 

Have you used the Analog Output myRIO express VI? That will allow you to specify the analog output value directly on the block diagram in the form of a double. To answer your other question, it looks like the myRIO can only be a SPI master. Check out this previous forum post: http://forums.ni.com/t5/Academic-Hardware-Products-ELVIS/Can-myRIO-work-as-an-SPI-slave/td-p/3001185

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

Hi muffin.

 

I actually fixed that over the weekend. I basically used the AO channel on the MSP connector but I am using Long 32, rather than Double, and it seems to be working perfectly. I tried changing to double but I wasn't able to go through.

Thanks for your sane reply on the Master/Servant functionality of the myRIO. Here's my current VI, btw.

 

DAC RIO.png

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