Skip to main content

csv_file_name

Function csv_file_name 

Source
pub(crate) fn csv_file_name(asset: u32, ch_token: &str) -> String
Expand description

Builds the CSV file name for one asset and channel.

§Arguments

  • asset - Asset number, formatted by subjects::pad_asset.
  • ch_token - Channel token from the subject, for example ch03.

§Examples

csv_file_name(1, "ch03")    -> "labjack_001_ch03.csv"
csv_file_name(1456, "ch11") -> "labjack_1456_ch11.csv"