Search the Community
Showing results for tags 'programmatic'.
programmatic control of front panel requires signaling instead of just simple value change . This requires access to controls . The attached VI's should do the job. The controls can be anywhere including tabs etc which requires recursive access. Get FP References.vi Get Set FP Value Signaling Anywhere.vi
I would like to use programmatic access to manipulate shared variables on a computer and an NI cRIO 9033, but cannot get programmatic access to shared variables on the cRIO. I have boiled the situation down to a simple example to try to explain what I am seeing. The shared variables are hosted on the cRIO. I am using the same VI to perform the accesses on the computer and the cRIO. On the computer, access to the shared variable via a shared variable node and programmatic access both work. On the cRIO, access to the shared variable via a shared variable node is functional, but programmatic access to the shared variable does not work. The error code received when trying to to a Read Variable or Open Variable Connection on the cRIO to the shared variable is -1950678943. The error text reads "Timed out while attempting to open a connection to the variable." I'm quickly becoming confused as to why the cRIO should have trouble reading a shared variable programmatically that is hosted on itself. The web searches I have done haven't turned up such a simple scenario causing this error, so I'm wondering if I've stumbled into a beginner mistake. I have attached the source code to this post, so if someone could please take a look that would really help! Block Diagram: Result of running on computer (programmatic and shared variable node access both work): Result of running on NI cRIO 9033 (programmatic shared variable access does not work, shared variable node access does work): Test Access to Shared Variable from cRIO.zip
I'm looking for a way to programmatically generate a unique identifier for each instance of a object class. E.g. is there a function to get a refnum from an object? Ideally, someone can suggest a built-in unique identifier so I don't have to build into object data and check it myself.