I have been working on an autoflex code of my own for awhile now and I have been trying to get rid of the need for an XML file so I could save on file size. The option that came to mind was the labview measurement file, but I have no idea how I would get all my data written to it. I started looking around to see if there were other examples of an autoflex code and I found one from Team 857 (Attached as “LabVIEW v05.zip”). I do not understand how their code works and constantly get errors no matter what I try to do to it. If someone could explain how Team 857’s code works or how I could use a labview measurement file (or other small file) to save my data it would be greatly appreciated. I am doing this because I would like to be able to quickly start playback (It takes awhile to load once the file becomes larger).
To use my autoflex code (“Autoflex Team1736 v1.0.zip”) all you need to do is change the directory ("C:\Users\Siggy2xc\Desktop\lvSaves") in the long flat sequence at the bottom of “XML Autoflex.vi” to whatever directory you would like to save your recording to ("c:
i-rt" if you are running from the cRIO) then run “Tester.vi”
To add more inputs right-click the “Input” local variable’s border in “Read Inputs.vi” and choose open type def. ctrl+drag your controls from “Read Inputs.vi” into the type def. box and save. Then wire those controls to the bundle function.
In the 2nd sequence in the recording case structure there is “Duplicate Joystick Event.vi” which is not currently wired to anything because it was making the code ignore recording samples if they were duplicates and thus skipping them on playback. I haven’t looked into this much but I can probably figure it out on my own.
(Also please report any bugs in my code!!!)