05-24-2016 08:49 AM
Hi,
I am fairly new to LabVIEW, and I am trying to place a button on the front panel of a VI that is built to display graphically the voltage readings of several strain gauges. I tried using the DaqMX Bridge offset calibration SubVI initially, but it does not do the same thing as the Strain Calibration button under the device tab in MAX.
Can anyone help me do this properly? I realize it is not significantly more difficult to just do the calibration in MAX, but my supervisor is looking for the VI to be as simple as possible for the user.
Thanks!
Solved! Go to Solution.
05-24-2016 09:09 AM
You will definatley want a State Machine for this. If that button is pressed, you will need to stop your task and rebuild it using the defined calibrations and then resume.
05-24-2016 09:27 AM
05-24-2016 09:31 AM
@crossrulz,
What do you mean exactly by a state machine? I understand the concept and the issue, but as I am mainly a C++ programmer, I don't know what a lot of the functions are in LabVIEW.
Thanks so much for your reply!
05-24-2016 09:45 AM
State Machine is an architecture of code for applications. It is not a "function of LabVIEW". It is more the implementation the state diagram design for applications.
Comparing to C would be:
The code you use uses if cases with goto commands instead of a well designed switch-case implementation.....
Standard State Machine example can reviewed by creating a new project with the Project Assistant.
Norbert
06-01-2016 08:13 AM
@Hatef.fouladui
Yes, that method works. I will need to use 100 samples though. Here is what I have so far:
The boolean indicator at the end is supposed to check whether the calibration is in a certain range, which would indicate that the gage is improperly placed. I have to run through 26 channels, though, and need to identify which ones have the error. This should work, but what are your thoughts?