LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help with different terminal types and collating data across a state machine

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

Download All
0 Kudos
Message 1 of 2
(105 Views)

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…)

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 2
(100 Views)