DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Bluescreen after pressing Stop-Button

Hi,
I've got a problem again.

My system:
DIAdem 9.1 (evaluation), MS Windows XP

My program:
I read ascii data from an measuring-instrument (force, torgue) via RS-232. I use script-DAC-Driver to do this.
While measurement I display data with DIAdem-VIEW, and after that I export as an excel-file.

My problem:
That all works fine so far, but If I start measurement in DIAdem, the script-DAC-driver waits for bytes at serial port. If my instrument does not send data (for example if I decide not to start work), I can't stop DIAdem. If I press the Stop-button, I got a bluescreen and Windows reboots.
Is there any way to do this better (without bluescreen)?

Nico
0 Kudos
Message 1 of 5
(3,940 Views)
Hi Nico,

That sounds not good. Please send me the DAC script and the DAC scheme so that I can do some tests. My email is
walter.ric@ni.com.

Best regards

Walter Rick
0 Kudos
Message 2 of 5
(3,940 Views)
Sorry, but you`re an "unknown user" at NI 😉

Here are my files again
0 Kudos
Message 3 of 5
(3,940 Views)
I could reproduce your problem and solve it. (see attached file with modifications in Procedure SFD_init)
The reason was some errors in your code, but a blue screen or a spontaneously reset is a wrong reacton of diadem

1. You have't opend the interface corectly. Use the Open -command!
Remark: The Open-command and the IsOpen-function don't work properly in case of an error. The Open -command cause a runtime error and iterrupt the DAC-plan so the IsOpen -function can not work. This error is known at least since Diadem 8.0 but it is still unsoved.

2. You have not written a handler for the case of an timeout. I've done it for you.

3. Use the Read -function only with the second parameter "mode".
Remark: The description of "mode" in DIAdem help is
wrong. The right description is:
Bit 0 stop read/write at delimeter
Bit 1 send data including the delimeter
Bit 2 received data do not contain the delimeter

4. Diadem 8.x Script-Blocks did not work in asynchron mode with Windows XP. I don't know if it's solved in DIAdem 9.1

5. Your "Taktblock" was to fast. You should't takt the scriptblock faster then it can work. A RS232 is slow!

Dr. Martin Bohm
bohm@a3m.com
Download All
Message 4 of 5
(3,939 Views)
Thank you very much!!!

That looks great. I'll have a try on monday...

Have a nice weekend,
Nico
0 Kudos
Message 5 of 5
(3,939 Views)