LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Identifying the Measurement Computing DAQ board using LabVIEW

Solved!
Go to solution

Hi,

 

Am using USB 1608FS board with LabVIEW. am trying to find the way checking the connection to card during initialization of my application. I tried using GetBoard.VI, but this gives the same answer even if i remove the card from the port. Any idea on how to detect whether the card is connected or not?

 

Thanks

Anil

Anil Punnam
CLD
LV 2012, TestStand 4.2..........
0 Kudos
Message 1 of 5
(4,574 Views)
Shouldn't you be asking Measurement Computing about their hardware and their software?
0 Kudos
Message 2 of 5
(4,572 Views)
yeah, i tried to do that also...but am waiting for answer.........as am using LabVIEW, i thought of posting here also............If someone did this, i can get information....... .........
Anil Punnam
CLD
LV 2012, TestStand 4.2..........
0 Kudos
Message 3 of 5
(4,556 Views)
Solution
Accepted by topic author Anil_Reddy

Hi Anil,

 

MC's underlying InstaCal driver allows logical board numbers to be assigned from 0 to 99.   You could call GetBoard.VI for each logical board number that you anticipate could be used, which will (as you pointed out) get the board name from InstaCal.   If the string returned is blank and the error returned is 1, then there is no board configured in InstaCal for that logical board number.   However, as you pointed out, if the physical board is not present in the system (such as a USB board previously having been configured in InstaCal but currently unplugged or unpowered, you will get error = 0 and you will still get the string name. 

 

So, to test if a board is really installed in the system, since the MC driver has no function equivalent to "is the board really present?", you should attempt to perform a physical read with the board, so call TIN.VI (temperature), AI.VI (voltage) or DIN.VI (digital). If the error code returned is = 0, then the board is present.  If the error code is 1, then the board is not present.  If the error code is some other number, then the test is somehow invalid (such as asking to perform a function that is not supported on that model board, or on a channel number or port that does not exist on the board).

  

Brent

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

Yeah, I did similar thing, am using AIN.vi to check the presence of the card...

 

Anil Punnam
CLD
LV 2012, TestStand 4.2..........
0 Kudos
Message 5 of 5
(4,507 Views)