11-20-2023 12:42 PM
Hello,
I'm trying to implement a State Machine for a VI that ramps voltage, holds for a specified time and takes a resistance from a strain gauge. It also includes steps like holding the voltage for a longer period of time before measuring (creep). I want the VI to be scalable so I can add as many ramp and hold cases as I require.
I understand because the loop is outputting data I will need to collate across the state machine but I'm having trouble understanding how to connect the different VISA terminal types, as per the mass of errors. Each state records data and I want to collate this linearly in order of measurement, so in the end I'll have an excel file with voltage in one column and resistance in the other. Time is not recorded, but if there was an easy way to add a time column and way to record this I'd really appreciate further help.
I'd appreciate insights into what I need to implement to ensure it flows - new to LabVIEW so please go easy!
Thanks
11-20-2023 12:49 PM
Hi glni,
@glni wrote:
I understand because the loop is outputting data I will need to collate across the state machine but I'm having trouble understanding how to connect the different VISA terminal types, as per the mass of errors. Each state records data and I want to collate this linearly in order of measurement, so in the end I'll have an excel file with voltage in one column and resistance in the other. Time is not recorded, but if there was an easy way to add a time column and way to record this I'd really appreciate further help.
In one case you connect a scalar VISA reference to a case tunnel, in the other case it is an array of references!?
Why does the 2nd case create an array of references from a scalar reference input?
The same with the error wire: one state with a scalar error, the other with an array of errors…
You need to use the same datatype in each state!
(Hint: learn to use shift registers in all loops…)