spaghetti_developer Posted November 25, 2011 Report Posted November 25, 2011 Hi guys, My last question before going to enjoy the weekend. How can I put a break on the serial bus which is long exactely 1ms? I tryed to use the set break function but it make a break which isn't less than 2ms. Actualy I wish that NI will give us the possibility to have a control of the micro seconds but, at the moment, such as everybody knows, it isn't possible! Bye. Quote
Ton Plomp Posted November 26, 2011 Report Posted November 26, 2011 For that amount of timing you need to use something like an RealTime environment. Ton Quote
crelf Posted November 28, 2011 Report Posted November 28, 2011 Right - or implement your own in FPGA, which wouldn't be too difficult... Quote
ShaunR Posted November 28, 2011 Report Posted November 28, 2011 Right - or implement your own in FPGA, which wouldn't be too difficult... Much more difficult than using a pic as a serial pass-through to just chop the break Not to mention <$10 1 Quote
crelf Posted November 28, 2011 Report Posted November 28, 2011 Much more difficult than using a pic as a serial pass-through to just chop the break I'm just sayin' - maybe the system already has an FPGA in there with a few spare gates Quote
MikaelH Posted November 29, 2011 Report Posted November 29, 2011 You can always use the VI: \vi.lib\Utility\High Resolution Relative Seconds.vi for things that needs to go faster than 1 ms second. But I don't think it will work for the for the RS232 Break command. Quote
spaghetti_developer Posted November 29, 2011 Author Report Posted November 29, 2011 Thank you guys for your support in this matter. I have solved the problem using a little trick, I'm changing the baud rate of the serial port with a less resolution then I write a 0x00 character on the bus then I change again the baud rate to the value it has to work and then I send the bytes on the bus. This allows me to send the right break on the bus which is used for synchronizing the device. But it would be nice to have the possibility to have a break which is add up to 1ms exactely! Thank you all.... Regards. 1 Quote
ShaunR Posted November 29, 2011 Report Posted November 29, 2011 I'm changing the baud rate of the serial port with a less resolution then I write a 0x00 character on the bus Sneaky...I like it Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.