08-25-2015 07:11 AM
Dear Sir,
I am reading the instrument name using NI MAX. For example TCPIP0::192.168.9.2::inst0::INSTR is the instrument name and iwant to separate the IP address from that string.
I used the string sepatare function and i gave some offset for this string, finally i separated.
Assume the IP address changes to 10.1.8.93 how do i seperate. For this again i have to give seperate offset.
Please let me know the procedure to extract the IP dynamically.
Regards,
S Nagaraju
Solved! Go to Solution.
08-25-2015 07:18 AM - edited 08-25-2015 07:19 AM
There are a few ways to do this. Here is a solution using the Search/Split String twice to find the "::" and getting the IP address.
08-25-2015 07:23 AM - edited 08-25-2015 07:24 AM
And just to make Jeff Bohrer happy, here is a solution using the Split String VI. That is a VI hidden inside of vi.lib that is not on the palettes. Check out Darren's Hidden Gems for more info on it.
08-25-2015 09:53 AM
Try this:
08-25-2015 12:34 PM
08-26-2015 05:02 AM
Thank you very much for your replays.
Regards,
S Nagaraju