11-08-2018 12:22 AM - edited 11-08-2018 12:25 AM
Hello,
I'm trying to get temperatures from a NI 9212 in VeriStand. For modules support reason (I also have a 9381 to use), I am not using the scan engine, but a custom FPGA personnality, returning the TCx and CJCx values.
My understanding of the 9212 is that CJC0 is related to TC0 to TC3, while CJC1 is related to TC4 to TC7 (it depends on the terminal block, thermistor included near the connectors).
VeriStand allow to set up scales, and I am wondering how to use it the best way. There is a scale type Thermocouple: I guess I have to use it, but how to define the CJC ?
So here is my hypothesis :
Is that correct ?
Thanks in advance for your precious advices.
11-08-2018 08:58 AM
Mathiu,
We have been using the 9213 T/C with a custom FPGA with VeriStand. We use to have a custom device that would do the conversion, but with the addition of scales we just use that in VS. I have attached some code snips. We use a separate loop for this T/C since it scans slower than most of our other cards, then just have it update through local vars to the main loop. If you bring the CJC up to VS the scaling lets you map the CJC and does the conversion for you (At least for the 9213).
Good luck.
Josh
12-05-2018 04:41 AM
Hi Josh,
Thanks for that quick answer (quicker than mine). I understand the idea, but I would prefer not having custom component - here a Custom Device in addition to the Custom FPGA (less custom, less support). That's why I wonder if my "two scales cascade" idea is mathematically correct. This requieres only a Custom FPGA (arleady done, due to 9381 support issue) and native VeriStand Scaling.
Regards,