03-15-2020 10:07 PM
Hi everyone,
I have created the vi attached below to acquire data from a magnetic cadence sensor on an exercise bike and provide a 5V DC power supply to a bluetooth heart rate monitor and acquire the heart data... This VI needs to run on a research student's personal computer that does not have LabVIEW installed... As such, I need to first build an exe of the vi, then create an installer that includes the exe file, the appropriate runtime engine, DAQmx drivers for the USB 6218 (BNC) connector block, etc so it will work...
I have built vi.exe files before for standalone scripts to process .tdms, .lmv, or .txt files from previously acquired data (so no hardware involved)... However, I cannot get the installer in this case to run... After install, the vi.exe opens but does not run... It is like it cannot find the hardware to acquire the AI or generate the AO...I have tried adding hardware configuration (.nce and .txt) files to the install to no avail...
Would anyone know of any good resources that will walk me through the process for how to build an installer for VIs that use hardware? I have googled this to death and cannot find anything that provides clear step-by-step instructions...
Please execute the sloppy vi code... I am yet to tidy it up and create subVIs, change to a state machine architecture, etc)... I just wanted to make sure the code works and is reliable first...
Thanks for any help or direction you can provide...
Solved! Go to Solution.
03-16-2020 02:15 AM
I'd start with adding proper error handling (right after straightening wires and cleaning up 😁).
A dialog that shows the (first) error encountered would clear things up.
03-23-2020 10:38 PM
Ok... Added some error handling to the DAQmx and low and behold, I had not included the DAQmx Scale to the build (**insert forehead slap emoji here!**)...
A simple fix... All working now... Thanks for your help..