Hi there! I'm having the same code, I'll be ordering all FOUR sensors: 2 camshaft position sensors: 237312Y52A
2 crankshaft position sensors: 237314M50B
My symptom is exactly as described in this thread:
help-p0340-won-t-go-away-2006-infiniti- ... 76333.html
I use a scanner and I clear the code. I let the engine cool down for about 30 minutes, it'll start back up no problem and no codes. I'll keep you guys posted after I replace all sensors. I'm currently looking where to buy them for lowest price. Cheers!