07-07-2011 12:33 PM
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.
07-07-2011 12:40 PM
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.
07-07-2011 01:04 PM
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.
07-08-2011 09:49 AM
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.