Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

NI USB 8452 unload a script

Hello

 

I have a NI USB 8452 and I need to run several different scripts on a while loop until the user presses the stop button for the loop.

 

I load the first script and run it, then I load the second script and run it and so on.....

 

After a while I got the next error:

 

Error -301703 occurred at NI-845x I2C Script Read.vi:2640001

Possible reason(s):

NI-845x: The number of reads contained in your script exceeds the maximum number of scripts this version of the driver supports. Break your script into multiple smaller scripts.

 

 

How can I unload the first script in order to load the second script, and so on?

 

If we open and close the connection to the NI USB 8452 every time we run a different script works but slows down the measurement system.

 

Any comment is really appreciated.

 

Thanks

 

David DLC

 

 

 

 

 

 

0 Kudos
Message 1 of 3
(2,249 Views)

Hey DavidDLC,

 

Why don't you try to either create the scripts and immediately run them, or to create the scripts all at the same time and then run them all at the same time?

0 Kudos
Message 2 of 3
(2,226 Views)

Thank you for your answer.

 

Based on another post, I decided to use the i2c Basic VIs

 

David DLC

0 Kudos
Message 3 of 3
(2,223 Views)