Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

SPI 8451 - in script mode. When VI exits?

Solved!
Go to solution

Hi,

 

I use original drivers to control the 8451 box in script mode.

 

My question is regarding the situation when I'm sending the script to the SPI box to be executed. When the VI is going to exit? At the moment the script is sent to the the box or when at the moment is sent out from the box?

 

Cheers,

 

K.

0 Kudos
Message 1 of 4
(5,400 Views)

Hi K,

 

I am having trouble understanding what you mean. By Script Mode do you mean you are using the C API? In that case, where in the system are you using LabVIEW graphical programming (a VI)?

 

Laurence

0 Kudos
Message 2 of 4
(5,383 Views)

No Laurwnce,

 

By Scripting Mode I mean  the native NI VI (see attachement please).

 

1. You prepare your commands/data to send over SPI

2. You send it

3. And my question is. Will the NI-845x SPI Run Script VI exit when the commands/data are sent to SPI box od when the commands/data are set out from the SPI box?

 

 

spi.PNG

0 Kudos
Message 3 of 4
(5,374 Views)
Solution
Accepted by topic author MimiKLM

Hi K,

 

Sorry for the confusion. I have read through the manual and it says that it returns success or error depending on how the execution went. From this fact I expect the VI must end after the command has been executed, or sent out of the box.

 

The link for the manual is here: http://www.ni.com/pdf/manuals/371746d.pdf

 

The information I mentioned is found on page 12-21, or 289 in Adobe Reader.

 

I hope this helps

0 Kudos
Message 4 of 4
(5,371 Views)