01-30-2020 01:49 PM
Okay, after reinstalling the drivers on my Windows 10 development computer, I was back to square one, with the end-user computer failing to load the DLL. I reinstalled the NI-8451 driver there with NI Package Installer and the issue was resolved. Clearly the versions were, indeed, out of sync. Thank you. I feel bad for usurping this thread, now that I know my issue was something completely else. But thank you so much for helping me to fix it. And I apologize for wasting your time, aeastet, and thank you for your amazing suggestions. And if you want to point me in the right direction for this task that you mentioned earlier:
"I usually have a populated enum that is populated with available devices so they can pick from devices that are on the system they are using. Once they select the device I save it somewhere (ini file, registry, setup file etc...)"
That would also be greatly appreciated.
But whether you do or not, thank you.
-Danielle
01-30-2020 02:00 PM
I use an enumerated value. I look for a value change in an event structure and stop and restart my SPI loop with the new device.
If there is a change in the value in the event I take all of my setup information and save it to my setup file.
It is pretty easy to do. It makes the code more flexible.
01-30-2020 02:08 PM
You should also mark the answers that helped you as the solution(s).
It is also nice to give kudos to the people that gave answers that helped you find the solution.
01-30-2020 02:25 PM
Oh, I see - that looks very similar to the icon for the GUI control with the drop-down list that I am already using. It didn't occur to me to watch for a value change - thanks, I'll try that! But how do I set the value from a setup file?
Unfortunately, I do not see a way to mark any answers as solutions - possibly because I am not the original poster, or possibly because I am so new (and/or because I'm looking in the wrong place?), but I will happily distribute Kudos, thanks.
-Danielle
01-30-2020 02:31 PM
You can use property nodes or something like this:
I didn't realize that you were not the original poster. I do not think that you would be able to make the problem as solved.
01-30-2020 02:43 PM
Oh, yes, I see! I didn't realize the property node would take a string directly - that's my mistake for not trying it. This is fantastic - thank you so much.
-Danielle
01-31-2020 12:24 AM
@Danielle3 wrote:
Unfortunately, I do not see a way to mark any answers as solutions - possibly because I am not the original poster, or possibly because I am so new (and/or because I'm looking in the wrong place?), but I will happily distribute Kudos, thanks.
As you said, this is because you're not the original poster. They're the only person (except moderators) who can mark a thread as "solved". But there's no restriction based on being a new user or having a low post or kudos count or whatever.
01-31-2020 07:45 AM
Thanks for the clarification. 🙂