10-10-2016 12:14 PM
Hi all,
is there a way to set the input range of a channel on my NI 9205 with LabView using the scan interface (i.e. not FPGA interface)?
I found http://digital.ni.com/public.nsf/allkb/32C533AF9AFAF3B38625746E004A510F but that only seems to be valid for FPGA modules...
10-10-2016 07:25 PM - edited 10-10-2016 07:26 PM
right click on module listed in the embedded target in the project, select properties
10-11-2016 02:15 AM
Thanks, but first word of the header: "Programatically"!
I want to change the voltage range on the fly from a running .vi.
(To be precise the user should be able to set them via a simple config file that's read on startup)
10-12-2016 05:52 PM - edited 10-12-2016 05:54 PM
Patrick
I just setup a quick project and looks like property is there. Is this what you looking for?
I'm only setting one channel but you can set all of them.
Miro T
National Instruments
10-13-2016 05:11 AM
Yes, that's exactly what I was looking for. I just confirmed that it's working and is correctly changing the voltage range at runtime. Thanks!
Detailed steps to get to what's in Miro_T's screenshot:
To be honest I think it's virtually impossible to find this if one doesn't already know where to look (like so often when using LabVIEW). @NI Maybe add yet another KnowledgeBase article with nice step-py-step screenshot instructions? The lack of proper documentation otherwise makes it unnecessarily hard to get such trivial things done...
10-15-2016 04:19 PM
Well, seems this is not fully solved yet:
Consider I have a refnum to the channel I want to set the voltage range on, e.g "ni.var.io://localhost/Voltage/AI15".
How do I set the voltage range of this specific channel *programmatically*?
In other words: How do I select the required property node programatically?
I can do that now with the steps described above using the UI, but i still have no idea on how I could get this property node dynamically.
10-19-2016 09:21 PM - edited 10-19-2016 09:24 PM
Not sure if I understand your question completly... but why cant you just call the property node in your code?
10-19-2016 09:36 PM
Or are you asking how to create refnums dynamically? If so, see this help document
https://zone.ni.com/reference/en-XX/help/371361G-01/lvconcepts/usingdynvarapi/