LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I input this for my own VI:ob0! sc x! md y! w

Dear:

How do I program this in Labview:ob0! sc x! md y! w?

I am using PCI-MIO16-xe50 board and scxi1000 chassis, scxi1102(slot 1), type T TC connected to channel 12, but I got reading only like -0.12.

what's wrong with my configuration?

thanks a lot
0 Kudos
Message 1 of 2
(2,623 Views)
The scxi command is a "string" command that is input into the channel control for the data acquisition VI. The syntax is:

ob0! - "o"nboard channel "0" - Channel 0 of the MIO board. All of the scxi data is routed through channel 0 of the PCI-MIO board. No other channels are used.

sc(x)! - scxi chassis number (x) - This number is set in MAX. If you only have one scxi chassis, the default is 1

md(y)! - "module" in slot number y,

w - are the channels on module y you wish to address.

So, for your application, I presume your chassis id = 1 and that the TC is connected to channel 12 of the 1102 module - so, you would enter the following "text command (do NOT use the "ENTER" key)" in the channel control: ob0!sc1!md1!12.

Normally, the channel contro
l requires a numerical channel reference or a virtual channel reference (from MAX); however, for direct access to an scxi chassis, this "text" format is used.

All of the previous information presumes you are entering the string by means of a front panel control. If you are actually setting these parameters within your code, you would need to use string constants and other string functions to build the necessary inputs to the DAQ VI. Be aware that several of the DAQ VIs require the channel input to be in an array format. If this is the case and you only have a single input, simply wire your string command to the input on a single terminal of the "build array" function. Then wire that output to the channel input for you DAQ VIs.



I hope this helps.
0 Kudos
Message 2 of 2
(2,623 Views)