09-19-2014 04:00 PM
@Dennis_Knutson wrote:
Thanks. I knew that but I wasn't sure if there was anything else such as a c api.
Not sure why the OP didn't bother to read the specifications before deciding on this particular board.
09-19-2014 04:16 PM
Because OP is stubborn. I'm sorry I'm being difficult, I'm not sure I understand exactly what I'm looking for either, I was told by my superior to look for "serial codes" that I could use to send info to the board and then out to a fan. Here's a quote from an email my partner just sent on exactly what we're doing: "OK, so the DAQs we're collecting temperature with are separate from our PWM control process. We're collecting temperature passively - it's just a process running in the background, and we get a data output from it. We're trying to control the fans and Peltiers with PWM through the PICs 7841R board."
Right now we are using LabView, and I know the data sheet says that's the only software that will work, but is there another way to control the board? I just want to be sure that we must use LabView before I go back and tell them I can't do what he wants me to do.
09-19-2014 04:40 PM
09-19-2014 06:25 PM
I think that would defeat the purpose. He wants me to interface without the use of LabView, and hopefully interface with MatLab. Is that possible?
09-19-2014 07:03 PM
09-19-2014 07:07 PM
Sorry I wasn't clear. No I do not need the coding done with MatLab. The end result is that I can interface via MatLab. I was told to get that done by making a program in Robot Raconteur (Python coding), which I started to do but ran into the problem of not knowing how I would actually talk to the board in Python syntax.
09-19-2014 07:29 PM
Here's the thing with the R Series boards, they can only be programmed with LabVIEW FPGA. You have to make the interfaces for the serial protocols and communications in LabVIEW FPGA and then load that FPGA build into the card. So if you don't have the LabVIEW FPGA toolkit, you are currently dead in the water with that board. Even then, there is a C API to talk to the FPGA that you programmed into the board, but it is kind of a long way around to get it to work. You really should just stick with LabVIEW all the way if you are going to use that board.
An alternative, since you are just dealing wtih PWM, is to use a normal NI DAQ board (possibly the one you are getting the temperatures with) and use a Counter Output to put out the PWM signals. There is a little better API that will supposedly work with Matlab.
09-19-2014 09:34 PM
@TimCast wrote:
Because OP is stubborn.
What does "stubborn" have to do with purchasing the correct board for your requirements especially when you have specific software that you want to use?