Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

labview On Board programming

I am writting an On-Board vi in Labview. All I want to do is read the line0, line1, line2, line3 of a port on the board, and get a integer number by combining these bit values.And also I would like to know, how we can read seperately the line values on a port, and test them if it is true or False. Any help wpuld be appreciated.
0 Kudos
Message 1 of 4
(3,297 Views)
In order to be able to help, I would need further information:
Which board are you using?
Which Version of LabVIEW and NIDAQ are you using?

Ingo Schumacher
National Instruments
0 Kudos
Message 2 of 4
(3,297 Views)
The board that we are using in PXI 7344 and we r not using any DAQ to contorl this particular hardware.
Would be waiting for a response from you.
Thanks,
Barkha
0 Kudos
Message 3 of 4
(3,297 Views)
OK, I see. The driver you are using (NI-Motion) only offers functions ro read or write a complete port. That is why you have to use the read I/O Port VI to read all 8 lines.
To convert the output-cluster to an integer number, use the functions "Cluster to array" and "Boolean Array to number" out of the cluster-palette and the numeric conversion palette, respectively. Take a look inside the "Set I/O port VI" to see how this can be done.

Ingo Schumacher
National Instruments
0 Kudos
Message 4 of 4
(3,297 Views)