LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

RS-232 signal to NI 9401

Solved!
Go to solution

Hi,

I have a strain gauge torque sensor and I use a Peekel Picas amplifier to read the torque value.

I also have an NI 9401 which has eight digital input/output channels.

 

I would like to read the Picas torque value with the NI 9401 to use the values in Labview.

Since my DAQ can only read digital signals I intend to use either the Digital I/O or the RS-232 port on the Picas device (see attachment).

 

Can anyone tell me if this is possible and how I would have to make the connection?

 

Thanks a lot

0 Kudos
Message 1 of 6
(1,002 Views)

You can't use the 9401 to transmit RS-232 communication signals. And you can't possible transmit any meaningful torque values through those digital signals. Most likely the digital IO on your instrument is meant to control some 24 to 48 V relay or PLC input to activate when a certain pre-configured torque value has been exceeded.You definitely can't read the actual torque through that. The digital inputs are probably to have some safety switch or similar operation which will kill the torque.

Rolf Kalbermatter
My Blog
0 Kudos
Message 2 of 6
(978 Views)

@trevor34 wrote:

Hi,

I have a strain gauge torque sensor and I use a Peekel Picas amplifier to read the torque value.

I also have an NI 9401 which has eight digital input/output channels.

 

I would like to read the Picas torque value with the NI 9401 to use the values in Labview.

Since my DAQ can only read digital signals I intend to use either the Digital I/O or the RS-232 port on the Picas device (see attachment).

 

Can anyone tell me if this is possible and how I would have to make the connection?

 

Thanks a lot


What do you intend to do with the torque reading?

 

You can skip the DAQ part and get a USB-RS232 adapter to directly read the values from the Picas device's RS-232 port.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 3 of 6
(972 Views)

Thanks for the replies.

I am already using the NI 9401 to read a rotary encoder. I am processing the data in Labview, and I would like to add the torque readings from the Picas to Labview as well.

 

I thought it would be possible since the Picas has a 16 bit A/D converter, but I understand the digital signal can not be read easily by the NI 9401.

 

I also have an NI USB 6009 which I think can read the analog signal from the Picas. I will therefor try to use both NI's in my Labview, one for the digital encoder signal and the other for the analog torque sensor signal.

 

If I would use a RS232-USB adapter, can I read the signal with Labview? 

 

0 Kudos
Message 4 of 6
(899 Views)
Solution
Accepted by topic author trevor34

@trevor34 wrote:

If I would use a RS232-USB adapter, can I read the signal with Labview? 

 


Yes, you can use the NI-VISA library to read from the COM port.

https://labviewwiki.org/wiki/VIWeek_2020/Proper_way_to_communicate_over_serial

 

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 5 of 6
(891 Views)

Thanks for the help so far. I am already successfully writing my encoder position as well as the derived velocity and acceleration using 'Write to measurement file'. I would like to add the torque data from the RS232 to this.

However, since the data from the RS232 is of type string, I am unable to do so. Is it possible to add this string data to the same Binary (TDMS) file?

 

I followed this tutorial: rs232 serial data acquisition using labview.

Similarly, I could use a 'Write to text file' to store the string data, but I would like to put everything into one file.

 

PS: If you have a look at my VI, can you also check why my Stop button only stops the encoder/DAQ assistant and not the entire while loop?

0 Kudos
Message 6 of 6
(850 Views)