02-25-2021 08:34 AM
I am attempting deploy an executable which uses some digital and analog I/O. My hardware is all working and my analog and temperature cards are working. I don't think I have the task created correctly to utilize the digital input card or the digital output card.
In my block diagram, I used the daq assistant to run the I/O. When the hardware is connected to my PC everything works. When connected to the deployed PC the digitals do not work. Is there something else I need to do to initiate the task on the deployed pc, and is it done in NI Max or in the block diagram of the executable?
02-25-2021 08:49 AM
Most likely, you problem is that your DIO card is not named that same between your two machines. You can fix this in MAX.
In my opinion, a better option is to not use the DAQ Assistant and use the actual DAQmx API. Then you can do things like read the port and/or channel name(s) from a configuration file to set up your task.
02-25-2021 09:32 AM
Excellent, that was the problem.
Thanks