Benchtop Measurement and Test
Distributed Measurement and Control
Systems Engineering Software
Perspectives showcases how NI sees what’s next in the world of test and technology.
You can request repair, RMA, schedule calibration, or get technical support. A valid service agreement may be required.
Provides support for NI data acquisition and signal conditioning devices.
Provides support for Ethernet, GPIB, serial, USB, and other types of instruments.
Provides support for NI GPIB controllers and NI embedded controllers with GPIB ports.
Hi, Could you please let me know what is the EQUIVALENT for this code. This code replace 2 number of 0s or 1s to Just one 0 or 1. The code is very very slow when the input string is very big. Is there any way to replace it with something faster.
Can you provide some numbers? How many characters are in a "very big" string? How long does it take to be "very very slow" code?
How many replacements typically occur in your string?
Do your strings ever have anything which is not a 1 or zero?
This code takes 1ms to run on a string of 60,000 characters (one continuous string of 0's and 1's). Whereas using your code, it takes about 900ms for the same string.
What do you need our team of experts to assist you with?
We'll be in touch soon!