10-09-2019 07:55 AM
Hello,
How do I use nxPropLINSched_RunMode?
When I call it with nxdbGetProperty(scheduleReference, nxPropLINSched_RunMode, (u32)sizeof(*runMode), runMode), I get error 0xBFF630C0, "A property value was out of range or incorrect. Solution: specify a correct value."
The help file says "... similar to database properties, you cannot change it after a session is created", so that's why I went this route.
What I'm trying to do is send a single frame header for the device under test to respond to, and when I try to do that with a frame out stream the entire LIN schedule is started, which I don't want. Hopefully nxPropLINSched_RunMode is the right thing to use, but I'm open to other methods if anybody has suggestions or examples.
Solved! Go to Solution.
11-20-2019 12:52 PM
The error goes away when runMode is a uint32_t and the size passed into the function is sizeof(uint32_t).
I had to #include <stdint.h> in order to use uint32_t.
I don't know yet whether this will lead to a solution for the problem of sending a single frame header, but at least it cleared the error.
Thanks to Katherine from NI Technical Support!