LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

RS232 write with MagPro stimulator

I'm trying to put together a protocol using a National Instruments Labview program to control a MagPro R30 transcranial magnetic stimulator through a 9-pin serial port. I have previously been able to receive trigger signals from the MagPro in Labview, using VISA Read block, so I know that the connection and the basic setup of the VISA is correct, but I'm having more trouble sending signals to it. I have tried using the VISA Write block (with the command string as "*TRIG\n") and the VISA Assert Trigger block (using every available protocol).

 

Please let me know if you have any suggestions about this. I have also contacted the company responsible for the stimulator for advice.

 

Thank you.

0 Kudos
Message 1 of 4
(2,643 Views)

Are you sure that the command you sent was with the display in \codes mode?

 

As in \n is the line feed character as opposed to a slash and an "n" as two separate characters.

0 Kudos
Message 2 of 4
(2,640 Views)

I believe that "\n" was meant to be the termination character. I'm not sure, though - I just took that string from what the help file said that the Assert Trigger command would use for a serial port.

0 Kudos
Message 3 of 4
(2,634 Views)

The manufacturer of the stimulator has indicated that I may have been working with the wrong port, or that the stimulator may be too old to update to the necessary version. So this is probably not a Labview program at all. Thank you for help, regardless.

0 Kudos
Message 4 of 4
(2,623 Views)