LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Configuration File VIs give refnums that are not refnums

I am currently using LabVIEW6.1 and have little trouble with this refnum business. Configuration File VIs give refnums that are not refnums. I check this by using the comparison function "NOT A Number/Path/Refnum?" . The same thing happen when I cast a numeric to refnum using "data log file refnum" as the data type.
Thanks,
tc phan
0 Kudos
Message 1 of 4
(2,796 Views)
Configuration File VIs give refnums that are for other Configuration File VIs only. The refnum is created by type casting a numeric.
These refnums are incompatible with the File IO refnums for various other file operations.
0 Kudos
Message 2 of 4
(2,796 Views)
Config File refnums are not actual file refnum to the config file but a refnum to config data in memory. You can't use it for file operation. "NAN/P/R" will always return TRUE.
To test if a config file refnum is valid, use "Not a Config File Refnum.vi".


LabVIEW, C'est LabVIEW

Message 3 of 4
(2,796 Views)
Thanks alot! Jean-Pierre.
regards,
tc phan
0 Kudos
Message 4 of 4
(2,796 Views)